Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
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). |
Torgrim,
On 26 Dec 2019, at 9:31 AM, Torgrim Gjelsvik via Groups.Io <torgrimg@...> wrote: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. 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. That's correct. Check the JMRI system console for any error messages. Dave in Australia |
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 |
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:
|
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 |
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:-- Bob Jacobsen rgj1927@... |
¿ªÔÆÌåÓý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
|
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. Leo P On Tue, Dec 24, 2019, 4:25 PM WHurry <Wttr@...> wrote:
|
Locked
Cannot operate turnouts from Layout
#layouteditor
System consists of Power House Pro-R, PB5, and a stand-alone Loconet. 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. |
Locked
Re: Running a python script in JMRI
#scripting
Tim,
I see where you are now.....? This is a good undertaking..... Inobu |