¿ªÔÆÌåÓý

Date

Locked Re: Cannot operate turnouts from Layout #layouteditor

 

Initially, there was no observable activity on the Loconet when using the panel icon or via the table. I started by creating a NCE turnout (NTxxx). ?I modified the Loconet turnout (LTxxx) to have the NTxxx as a secondary turnout. ?That allowed me to make changes to the actual turnout via the panel icon with partial success. ?Depending on how the feedback was set up for the LTxxx and the NTxxx turnouts (different combinations of Monitoring and Direct), there was no successful combination of feedback settings that was 100% successful. ?

While observing the Loconet activity, sometimes the following message would appear: ?¡°Request Command Stations Op Switches (or DCS210/DCS240 check for multiple command stations on Loconet).

?I currently have a DCS240 provide the Loconet for the layout. ?(This was recommended to me when I initially started and have been told by others that this was bad advice.) ?Until I decide to replace the DCS240, is there something I could change (DCS240 CVS?) in the meantime)?

Bill R


Locked Re: Accessory command not sent from SPROG II #sprog

 

Torgrim,

On 26 Dec 2019, at 9:31 AM, Torgrim Gjelsvik via Groups.Io <torgrimg@...> wrote:

I don't know the interfaces her, between JMRI, SPROG driver and SPROG hardware.
But I guess the SPROG driver is a generic ftdi driver,
That depends on your SPROG and Operating System types. Some use FTDI, my SPROG IIv3 reports as a generic modem-class device and in the case of macOS at least, uses inbuilt Apple drivers. But your problem isn't in that area.

and what I see in the SPROG console is what JMRI sends to the USB port.
I'd also be looking at the JMRI system console for any error messages.

I pulled out the scope and probed the DCC signal - the hardware keeps the frequency going in both cases.
The messages sent from JMRI are inserted into the idle stream.

In the erroneous state, the only thing that is sent is the signal decoder packets when I change a signal mast.
When pushing a turnout, *nothing* comes in the SPROG console, meaning JMRI sends nothing?
Even if the turnout changes on screen.
It sounds like JMRI thinks the SPROG is not in command station mode, or some other issue like inconsistent states.

There are some different code paths for Signal commands sent to SPROG versus Turnout Commands sent to SPROG.



In the functioning state, JMRI keeps continuously sending "decoder idle packets", (FF 00 FF), mixed with signal and turnout packets.
That's correct.

Check the JMRI system console for any error messages.

Dave in Australia


Locked Re: Accessory command not sent from SPROG II #sprog

 

Yes, the SPROG connection *is* configured as "SPROG command station".
?
I don't know the interfaces her, between JMRI, SPROG driver and SPROG hardware.
But I guess the SPROG driver is a generic ftdi driver, and what I see in the SPROG console is what JMRI sends to the USB port.
?
I pulled out the scope and probed the DCC signal - the hardware keeps the frequency going in both cases.
The messages sent from JMRI are inserted into the idle stream.
?
In the erroneous state, the only thing that is sent is the signal decoder packets when I change a signal mast.
When pushing a turnout, *nothing* comes in the SPROG console, meaning JMRI sends nothing?
Even if the turnout changes on screen.
?
In the functioning state, JMRI keeps continuously sending "decoder idle packets", (FF 00 FF), mixed with signal and turnout packets.
?
I have now installed v 4.18, and the symptoms are now not so consistent.
The error state now comes more randomly, and it can take longer before it appears.
?
?
Torgrim
?


Locked Re: Anyone with an example of using simple server?

 

David P,

That sounds like a great way, but you are not using simple server, but the
LCC bus as the distribution method. At least you say all the computers are
on the LCC bus and not a single JMRI computer connected to the layout and
the other computers talking to it.

I'm looking for examples of using the JMRI simple server method and how to
correctly setup the sensors and turnouts at the remote computer. I've got
some sensors working but not well, there seems odd delays and such. So I'm
looking for a running example to poke into so I can confirm if I'm doing
some of it wrong.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


Locked Re: Anyone with an example of using simple server?

David Parks
 

¿ªÔÆÌåÓý

Ken

?

My answer is LCC specific.? We had originally planned to use an Ethernet network for the functionality described, but found that OpenLCB works flawlessly.? .All our computers (11 in total with 16 screens) are connected via the CAN network (LCC).? We have separated all logix that is for display only from the CTC functional logic.? Each computer has a JMRI Configuration panel that selectively enables various clusters of the CTC logix.? Thus the CTC logic can be executed in a local computer with the CTC display or any other computer as we wish.? This allow for us to configure the layout for any combination of tower control or central CTC control.? When all logic is executed in a central CTC computer we use a modern style display similar to Cats in look and function.? The modern style CTC takes up less space and has considerably less work load for the operator than the old style CTC panels used with the Towers.

?

We can thus blend any configuration of operator controlled CTC and trains with autonomous trains using JMRI Warrants.? We are planning to eventually replace the old style computer CTC touch-panel displays with hardware CTC.

?

David Parks

Los Altos, CA


Locked Anyone with an example of using simple server?

 

I have a layout computer and have been dispatching via a TeamViewer
connection. I'd like to make a CTC panel on another computer that would
control that computer instead of running everything on the layout computer.

Is there an example of a server and client computer somebody could point me
to? Seeing examples usually works better than the docs.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


Locked Re: Running a python script in JMRI #scripting

 

Am 24.12.2019 um 20:54 schrieb tim_p1964@...:
comments appreciated as to any methods of loading the files from the sound directory automatically and determining their lengths would be helpful?
Tim,

Here is a short example of how this could be done.

import time
import jmri

buffer = audio.provideAudio("IAB1")
buffer.setURL("program:resources/sounds/Crossing.wav")
length = 1000.0 * buffer.getLength() / buffer.getFrequency() / 1000.0
print "Clip length in seconds:", length
source = audio.provideAudio("IAS1")
source.setAssignedBuffer("IAB1")
source.play()
time.sleep(length)
source.rewind()
source.play()

Klaus


Locked Re: Running a python script in JMRI #scripting

Randall Wood
 

Here is the Jython code the Northern Virginia Model Railroaders (NVMR) club uses to synthesize speech in JMRI running on Windows 10:

msg = sensors.getSensor(readySensorSystemName).comment scrollArea.setText(scrollArea.getText() + msg + "\n")

this is where you select the voice synthesizer (speak, espeak, or nircmd)

if snSpkChgCheckBox.isSelected(): #pid = java.lang.Runtime.getRuntime().exec(["speak", msg]) #pid = java.lang.Runtime.getRuntime().exec(["C:\Program Files (x86)\eSpeak\command_line\espeak", msg]) pid = java.lang.Runtime.getRuntime().exec('nircmd speak text "' + msg + '" -2 100') pid.waitFor()

nircmd is from and synthesizes msg and plays it through speakers directly


Locked Re: Cannot operate turnouts from Layout #layouteditor

 

Bill R,

Key is confirming it works from the turnout table in JMRI. If for some
reason that isn't working, the panel will clearly not work. Using the
command monitor for the connection will also help to confirm the message is
being passed out.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


Locked Re: Running a python script in JMRI #scripting

 

Hi Tim,

If you can convert this (one answer below the accepted one in the link? below) into a jython script you'd be home and dry, I think. Otherwise, you might consider creating it as a library 'as is' and calling it from jython. Or maybe someone involved in JMRI development could take it upon them to do this as an exported support routine so the standard scripting could get at it.


Wouter


On Tue, 24 Dec 2019 at 19:54, <tim_p1964@...> wrote:
Hi all

this is what Iv'e ended up at:

# Simple script to setup audio objects

import time
import jmri

from javax.vecmath import Vector3f
fileorder=[5, 4, 1, 3, 7, 6, 0, 0, 0, 0]
filetime = {5: 2.6, 4: 0.5, 1: 0.6, 3: 0.8, 2: 1.4, 6: 1.5, 7:1.5}
for plloop in range(0, len(fileorder)):
??? filechk = fileorder[plloop]
??? if filechk != 0:
??????? # Create the first Audio Source object
??????? filepointer = "IAS" + str(fileorder[plloop])
??????? source1 = audio.provideAudio(filepointer)
?
??????? # Assign Audio Buffer to this Audio Source
??????? filepointer = "IAB" + str(fileorder[plloop])
??????? source1.setAssignedBuffer(filepointer)
???????
??????? # Start playing the first Audio Source
??????? source1.play()
??? print
??????? delay = filetime[fileorder[plloop]]
??? print(delay)
??????? time.sleep(delay)

it requires the manual loading of audio files into the JMRI audio buffers, when the script is then run it reads the file order list which is easily set with software sets up the audio source and buffers and then starts playing the files. the delay between one file and the next is set in the dictionary entry. Again these values have been manually arrived at.

So in theory once all the sound files are loaded in the buffers and timings determined for the dictionary it will work.

comments appreciated as to any methods of loading the files from the sound directory automatically and determining their lengths would be helpful?


Tim


Locked Re: Cannot operate turnouts from Layout #layouteditor

 

I omitted the fact that the Tam Valley accessory booster is used to power a number of DCC Specialties Jack Wabbits? that power the Tortoise machines.? The Tam Valley booster has its own power supply.? The Tam Valley booster is connected to the booster bus and output from the Tam Valley booster is connected to a bus that is connected to all of the Jack Wabbits.

Bill R


Locked Re: Running a python script in JMRI #scripting

Randall Wood
 

There is a club in Virginia that has Jython scripts send text to an external speech synthesizer. I¡¯ll see if I can find a version of the script they use.


Locked Re: JMRI and CMRI

 

¿ªÔÆÌåÓý

Jay:

CMRINet IS Dr Chubb¡¯s protocol, you use it when use your SMINIs, SUSICs etc. ?Bruce and the late Chuck Catania took the spec Bruce published and extended it and then we, as the CMRI SIG, submitted it as NMRA Layout Control Spec S ?9-10. So the classic nodes, cpNode, the Arduino CMRI Library and a bunch of home brew systems all ¡±Speak¡± CMRINet. ?You can mix and match all of these nodes any way you like. (Of course each node needs a unique address).?

JMRI uses the CMRINet protocol and it knows about SUSIC, SMINI and cpNodes. Check out Chuck¡¯s excellent configuration and management tools for CMRINet on JMRI under ¡°CMRI¡± on the panel pro control panel.?

Seth Neumann


On Dec 24, 2019, at 8:13 PM, Jay Beckham <james@...> wrote:

?What does the CMRInet Protocol have to do with using JMRI with traditional CMRI hardware e.g. SMINI, SUSIC, and other CMRI hardware?? Is that only applical to CPNode and/or LCS?? The subject came up in JMRI Hardware Support - Chubb C/MRI writeup.
Thanks


Locked JMRI and CMRI

 

What does the CMRInet Protocol have to do with using JMRI with traditional CMRI hardware e.g. SMINI, SUSIC, and other CMRI hardware?? Is that only applical to CPNode and/or LCS?? The subject came up in JMRI Hardware Support - Chubb C/MRI writeup.
Thanks


Locked Re: Accessory command not sent from SPROG II #sprog

 

First, make sure that the JMRI connection is configured to ¡°SPROG Command Station¡±.

There might also be people on the SPROG list who can help with this: /g/sprog-dcc

Bob

On Dec 23, 2019, at 9:52 AM, Torgrim Gjelsvik via Groups.Io <torgrimg@...> wrote:

I am using the Layout editor to control signals and turnouts through an SPROG II.
Only signal decoders (NCE light-it) and accessory decoders (DCCconcepts AD1-HP) are connected to the DCC signal.
I also use MERG Cbus for occupancy detection.

Initially, after poweron, the system enters a state where accessory commands are not sent when changing a turnout.
The USB led on the SPROG II is then dark, and when changing a signal there is a short flash and the signal decoder changes.
Pushing a turnout on the panel moves the turnout on the screen, but there is no LED flash and the actual turnout does not move.

I have to set power OFF and restart JMRI once to enter a state where the turnouts will work.
In this state the USB led flashes continuously, sending FF 0 FF, and the accessory commands are sent in-between when pushing a turnout icon.
Signals work fine in this state also.

Also, if I leave the DCC power ON and then quit JMRI, it will enter the wrong state on restart.

Using ver 4.17.7 on windows 7.
--
Bob Jacobsen
rgj1927@...


Locked Re: Setting up routes #routes

 

¿ªÔÆÌåÓý

To me, it doesn¡¯t make any difference to the order that things throw other than the appearance of them falling into place one after another. ?If you are running at trains that close to the turnouts before you throw them, you need to slow things down. ? :-)

Thomas Cain
Indianapolis, IN
atsf93@...
See my?
NEW website?and layout?at: ?
Modeling the Eastern Illinois?Santa Fe from the Prototype

On Dec 24, 2019, at 9:04 PM, Wayne via Groups.Io <rwsnyder2002@...> wrote:

Ok Clay, ???. Congrats you did it, lol.

i haven¡¯t done routes in either Digitrax or JMRI so it¡¯s a learning curve. I looking to do them in JMRI that¡¯s why I¡¯m asking here. So far I¡¯ve got the East end of my staging yard hooked up and made my turnout tables. Is the a separate table for routes? Or does it matter the order of turnout entry?

Wayne
_._


Locked Re: Setting up routes #routes

 

Ok Clay, ???. Congrats you did it, lol.

i haven¡¯t done routes in either Digitrax or JMRI so it¡¯s a learning curve. I looking to do them in JMRI that¡¯s why I¡¯m asking here. So far I¡¯ve got the East end of my staging yard hooked up and made my turnout tables. Is the a separate table for routes? Or does it matter the order of turnout entry?

Wayne


Locked Re: Cannot operate turnouts from Layout #layouteditor

 

Premis: I do not have a Tam Valley booster.

Open the turnout table, then change one turnout with the throttle and watch if the table changes for that turnout. If it does, then click the Close/Thrown button and see if the turnout throws. If yes, the definition of the icon needs to change. If not, the problem may be with the Tam Valley boster and how it is known? by JMRI via the NCE station.?

Leo P

On Tue, Dec 24, 2019, 4:25 PM WHurry <Wttr@...> wrote:

System consists of Power House Pro-R, PB5, and a stand-alone Loconet.

To unload the PB5 booster, I installed a Tam Valley accessory booster to power the turnout Tortoise machines.? Upon power up of the layout including the Tam Valley accessory booster, operation of the layout was normal. ?

The PB5 booster load was reduced as expected.? I can operate the turnouts via the throttle as well as the local push buttons.? The changes made to the turnouts via these two methods (throttle and local push buttons) were properly indicated the layout panel.?

As a loco travelled on the layout, the block occupancy was being properly indicated.

However, I can no longer operate the turnouts by clicking on the turnout icons.

What do I need to do to recover turnout operation via the layout turnout icons?

Merry Christmas

Bill R


Locked Cannot operate turnouts from Layout #layouteditor

 

System consists of Power House Pro-R, PB5, and a stand-alone Loconet.

To unload the PB5 booster, I installed a Tam Valley accessory booster to power the turnout Tortoise machines. ?Upon power up of the layout including the Tam Valley accessory booster, operation of the layout was normal. ?

The PB5 booster load was reduced as expected. ?I can operate the turnouts via the throttle as well as the local push buttons. ?The changes made to the turnouts via these two methods (throttle and local push buttons) were properly indicated the layout panel.?

As a loco travelled on the layout, the block occupancy was being properly indicated.

However, I can no longer operate the turnouts by clicking on the turnout icons.

What do I need to do to recover turnout operation via the layout turnout icons?

Merry Christmas

Bill R


Locked Re: Running a python script in JMRI #scripting

 

Tim,

I see where you are now.....? This is a good undertaking.....

Inobu