Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: JMRI / Digitrax PR3Extra & Windows 10
I had posted my experience of adding JAVA, JMRI 14.4 and a PR3 to my wife's 64 bit HP machine just last night. Her HP had never seen JAVA, JMRI or the PR3. I removed the posts as I felt it would not help Chuck, but simply prove it all works.?
Steve's firmware update was the better recommendation. My experience was NO TROUBLE AT ALL installing the JAVA.JMRI, PR3. But my PR3 was running the latest firmware as I have a habit of installing the latest available to my devices. Early on Win10 64 bit had a driver to support serial (PR3) type devices,? but it was buried in the Win10 Install. Installing the driver was a workout. But Microsoft eventually updated WIN10 and it would handle it (PR3) in stride. So if your Win10 has never seen an update, yes you had issues and had to follow the DIgitrax instructions in detail.? If your Win10 install is current and with all the fixes and updates, from Microsoft, applied, there should be no issue at all.? My experience proved it to me. I am awaiting a PR4 this week. I will report back my findings when I get my hands on it. Marc |
Locked
Re: Using Two Different Computers
开云体育Craig, On 15 Jan 2019, at 6:08 AM, Craig Snyder <csnyder1@...> wrote: My main JMRI computer is a laptop connect to a NCE USB card. ?I have added a turnout table that has 16 entries with matches my Tam Valley Octopus controllers. So the turnout System Names will start with "NT..." ?I have started to work on creating panels to utilize the turnout tables. ?Rather than continue to design my panels on the laptop I would rather use my desktop computer that has multiple monitors connect to it. ?When I save the current panel that I am working, have not attached the turnouts just yet, I don't see the table information being saved. ?Is there a different file being created? Your turnouts will be saved into the panel. But opening the panel will not make the tables visible. Suggest you set "Open Turnout Table" as an action in Preferences->Startup. It will be populated when you open your panel. You can also automatically open the panel file as a startup action. I want to be able to move between the two computers without have to go out an buy another NCE USB card. You will need a connection with the same system prefix, usually "N" for an NCE system, otherwise your table will show load errors. The most suitable connection type is NCE Simulator; it has the same default prefix of "N". You can try just copying the profile between computers as Ken has suggested and modifying it, but I think you will have better success if you create a clean NCE Simulator profile on the desktop, then set up and share a separate User Files area, preferably using a file syncing solution such as Dropbox <> rather than Sneakernet**. This will also make it trivial to have multiple profiles on each computer (say a real and simulator on the laptop), all sharing the same data (panels and tables, roster, etc.). Dave **<> -- Dave in Australia |
Locked
Re: DCC++ Audrino current detection and block detection and colour light signalling. DIY Style
Hello Martin,
?
I am French and I read your message in the group "[jmriusers] DCC++ Ardrino current detection and block detection and colour light signalling. DIY Style".
?
Me neither I do not want to use a solution with bus Can or other.
?
I really like your solution because it's easy!
?
There are some questions please:
?
- How do you connect D7-D11 to JMRI?
?
- How is the addressing of the sensor done? I do not see in the code. Example for my turnout decoders I use the addressing in the code of each Uno (1 Uno for 6 Turnouts):
"Accessory [0] .address = 31; // DCC address of the switch ", and in JMRI the DCC ++ address of the switch = 31.
?
My layout is simple so I make it simple.
?
Thank you for your answers and help
|
Locked
Re: Continued ECoS Issues...think I am near a solution. It is the ECoSDetector RC 4 ports
So the “you are buying an open system…that you can extend…” that ESU advertises is BS? Good to know…the last link on that page has the protocol. I just didnt read all the way down before :)
toggle quoted message
Show quoted text
Ok next question…is there an example of an ideal model for how the Railcom/fully implemented someone can share? If it is the z21, can someone share more details of what is possible/done? For example there is nothing in my RailCom IDs section and that also seems odd. I guess I’ll start with getting some of the basics right. I am testing the port count code right now and scratching my head how to make it work right…I guess if I assume there are only 3 ECoS Link Devices in existence that is ok, but people will have to know this for the future. On Jan 12, 2019, at 13:09, Bob Jacobsen <rgj1927@...> wrote: |
Locked
Re: OPPS
Only two track types change car loads, spurs and staging.? Which one is modifying your car's load?
Here's the link to the help: Dan |
Locked
Re: Turnouts (not) updating on Panel
Hi Steve,
Ah so it is actually an issue with JMRI, does the panel icon update from the "feedback" column?? i am in no mad rush with my panel / development, my next task is to get a much simplified panel working with a level of automation, getting a loco to run back and forth. Though I guess rather then creating a sensor with the same ID I could use the end events events created by the CAN_Mio module as "feedback" sensors. for the Turnouts? (or i just wait a bit? :) ) Thanks for your help in debugging this, is much appreciated. Tim |
Locked
Siglet advice
#scripting
Hi,
I'm a new forum member and wonder if somebody could answer a question on scripting for me?please.
I've been familiarising myself with JMRI scripting so that I can use it to control points and signals on a new O-gauge layout. One of the things I'd like to do is change a 3-aspect signal (SIG) to red, yellow and green as a train exits from block A (see diagram below) and passes through successive blocks. ?
? ? ? ? ? ? ? ? ? ? ? SIG
------Block A------>? ------Block B------>? ------Block C------>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SenB? ? ? ? ? ? SenC1? ? ? ?SenC2
?
Block B is prototypically quite short but is long enough to hold a maximum length train and will have an occupancy sensor (SenB).
Block C is only around 30cm long but will have a sensor (SenC1).
After block C is the layout fiddle yard. This has no sensors.
?
To compensate for the short length of block C, I've 'extended' it with a second, internal sensor (senC2). My siglet marks this as occupied when senC1 indicates a train has entered block C.
?
Because there is no block D, a separate class starts a 30-second timer once it sees block C is occupied - this is to simulate a train passing through and exiting the block. When the timer expires, SenC2 is marked as INACTIVE which triggers the siglet to change the signal back to green.
?
Now to my question. I've based the code below on the JMRI scripting examples and past forum posts. It seems to work but I suspect it's not best practice as SenC2 is used as both an input and output by the siglet (and the siglet does fire unnecessarily when it changes the state of SenC2 to ACTIVE). Is there a better way of achieving what I'm trying to do? Any advice or suggestions welcomed. Best regards, Ian import java
import java.beans
import jarray
import jmri
import time
?
class FiddleYardTimer(jmri.jmrit.automat.AbstractAutomaton) :? ?
? ? def init(self):? ? ? ?
? ? ? ? self.sC2 = sensors.getSensor("SenC2")? ? ? ? ? ? ? ?
? ? ? ? return
?
? ? def handle(self):? ? ?
? ? ? ? self.waitSensorActive(self.sC2)? ? ? ??
? ? ? ? self.waitMsec(30000)? ? ? ?
? ? ? ? self.sC2.setState(INACTIVE)
? ? ? ? return True
?
class SigletExample(jmri.jmrit.automat.Siglet) :
? ? def defineIO(self):? ?
? ? ? ? self.sB = sensors.getSensor("SenB")
? ? ? ? self.sC1 = sensors.getSensor("SenC1")
? ? ? ? self.sC2 = sensors.getSensor("SenC2")
? ? ? ? self.sig = signals.getSignalHead("Sig")
? ? ? ? self.setInputs(jarray.array([self.sB, self.sC1, self.sC2], jmri.NamedBean))
? ? ? ? return
?
? ? def setOutput(self):
? ? ? ? colour = DARK
? ? ? ? if (self.sB.knownState == ACTIVE and
? ? ? ? ? ? ? self.sC1.knownState == INACTIVE):
? ? ? ? ? ? colour = RED
? ? ? ? elif (self.sB.knownState == INACTIVE and
? ? ? ? ? ? ? self.sC1.knownState == ACTIVE and
? ? ? ? ? ? ? self.sC2.knownState == INACTIVE):
? ? ? ? ? ? self.sC2.setState(ACTIVE)
? ? ? ? ? ? colour = YELLOW
? ? ? ? elif (self.sB.knownState == INACTIVE and
? ? ? ? ? ? ? self.sC1.knownState == INACTIVE and
? ? ? ? ? ? ? self.sC2.knownState == INACTIVE):
? ? ? ? ? ? colour = GREEN
? ? ? ??
? ? ? ? if colour != DARK:
? ? ? ? ? ? self.sig.appearance = colour
? ? ? ? return
?
ft = FiddleYardTimer()
ft.start()
?
s = SigletExample()
s.start()
|
Locked
Re: How to request a new JMRI feature to support LCC?
You can also mirror the turnout via it's 'also throw switch' option and add a bunch of lcc (virtual) switches in JMRI. If you ever switch the turnouts over, you already have addresses for them, as added benefit. On Mon, Jan 14, 2019, 11:27 Bob Jacobsen <rgj1927@... wrote: For each LocoNet turnout that you want to mirror over, you can do it with a logix: |
Locked
Re: Using Two Different Computers
Craig,
I think what you want to do is use the desktop computer to edit the panel offline from the layout? If that's right, you would: 1. copy the profile directory from the layout computer to the desktop. 2. edit the preferences to change from the physical connect to the 'simulator' for that system type. 3. Save and restart. Now you should have the panel and all the underlying tables. Note: everything starts up as 'unknown' for the state. So using tools like scripts to set turnouts to CLOSED and sensors to INACTIVE will make the panels look better. If that's not what you are hoping for, just clarify what you are after. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: Turnouts (not) updating on Panel
Hi Tim,
Thanks for the panel, have been able to re-produce locally. The issue is with Direct ( and delayed ) Turnout Feedback not working. You can see this in the turnout table by ticking show feedback information, also ticking query state actions to simulate the CAB event message. ? ? When set from turnout table or LE, feedback status is correct ? ? When turnout is set from CanMessage heard by CbusTurnout, the main turnout value changes, however the feedback value does not change. ? ? Layout Editor uses the feedback value to display the turnout state While I go through the code and see what's up, there is a cheeky work-around which I wouldn't normally recommend. ? ? Create a sensor with exactly the same address as the turnout. ? ? Make the turnout feedback "1 sensor" and assign the Sensor1 slot the newly created sensor with the same address. ? ? It's a cludge work-around and won't do your system any good long-term, but may get you out of a pickle if you've got an urgent need! I'll write-up on Github and do a bit if digging, Steve. |
Locked
Re: RPi-JMRI image updated
On Mon, Jan 14, 2019 at 07:41 AM, Dave wrote:
alter the code you have done so that it comes up as ttyACM0 instead of? ttyUSB0No time anymore todat to test it, but it's probably a matter of creating a symlink in the autodetect script like:?ln -s /dev/ttyUSB0 /dev/ttyACM0 |
Locked
OPPS
I have been working with operations pro, getting info entered. Routes are move well for awhile stop make some adjustment and continue for a bit, stop and so.
Just recently I made a few adjustments and now I have my Hopper grain/Airslide? showing up in areas with a defualt L<LOAD> When they should have a specific load or be moving around empty, I don't have these cars switching to a load status for these cars its empty or a specific load. I have it narrowed down to a point its switching to load, but I'm not understanding the why. or what I need to be looking for to correct it. Thanks |
Locked
Re: How to request a new JMRI feature to support LCC?
There is a tool that comes close to this. It is under the 'OS Tools' item
and is a 'Follower'. If it was generalized to work as anything following anything, it would cover the bill. Right now it only works for turnouts to follow a sensor or some restrictive mapping. So if it could work for watching turnouts, sensors, lights, blocks, and then drive the same or longer list, it would work. It would also make it handy for anyone else with multiple systems and needing to have something on one system follow something on another system. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: How to request a new JMRI feature to support LCC?
For each LocoNet turnout that you want to mirror over, you can do it with a logix:
*) Create a OpenLCB turnout in JMRI (_not_ an internal one) with the event IDs you want. *) Configure a Logix so that when the LocoNet turnout goes THROWN, it sets the OpenLCB Turnout THROWN, etc. Alternately, you could use a script to do lots of them. The CombineTurnouts.py sample script less you set up each one with just a line of code (it’s meant to handle more complicated cases, but it can do one to one just fine) Bob On Jan 14, 2019, at 10:08 AM, Paul Davidson <pdavidson@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: Saving files / RasPi / TightVNC
Bob H,
toggle quoted message
Show quoted text
The first thing to understand is that most everything within a PanelPro session is stored in a single file. ?Think of this file as a book. ?There is a page for turnouts, another one for sensors, etc. ?When you create a panel, that is another page. There are lots of places to save data. ?I recommend that you use the Panels >> Open Panels… and Panels >> Save Panels… menu items from the main PanelPro menu. After you start PanelPro, you need to load a panel xml file using the Open Panels… menu item. ?As mentioned, if you go to Preferences >> Startup and select Open File… you can have the selected xml file automatically loaded during start up. To add an entry to start up:
Dave Sand On Jan 14, 2019, at 12:2 3 PM, Bob Hall <Olmanhall@...> wrote: |
Locked
Using Two Different Computers
My main JMRI computer is a laptop connect to a NCE USB card.? I have added a turnout table that has 16 entries with matches my Tam Valley Octopus controllers.? I have started to work on creating panels to utilize the turnout tables.? Rather than continue to design my panels on the laptop I would rather use my desktop computer that has multiple monitors connect to it.? When I save the current panel that I am working, have not attached the turnouts just yet, I don't see the table information being saved.? Is there a different file being created?? I want to be able to move between the two computers without have to go out an buy another NCE USB card.
|
Locked
Re: How to request a new JMRI feature to support LCC?
David,
I have 60 turnouts so converting from DCC Loconet controlled turnouts over to LCC controlled turnouts is not economically feasible. I know how to set up the signal logic in JMRI and have already experimented with it. However, I prefer to set up the logic in the LCC nodes. This is about more than signals. It is about creating this bridge between any DCC network and the LCC network. I know I am not a JMRI programmer but (on the surface to me) it seems like a straight forward task for someone who maintains the Logix section of JMRI. Currently, I can set up Logix to set a conditional to evaluate a turnout then set a sensor as active/inactive according to the turnout position. instead of setting a sensor, let me create an Event ID and set it to active/inactive and let me insert a HEX code from within the range I have assigned. I know the devil is in the details but this capability is desperately needed as a bridge between the DCC and LCC world....even if/when someone creates a hardware bridge.? -- Paul Davidson Washita & Santa Fe RR N scale:? Southern Oklahoma circa late 70's |
Locked
Re: JMRI / Digitrax PR3Extra & Windows 10
Before you switch to a PR4, be aware that it is also not 100% reliable. We have a number of group members who are having problems making the PR4 work with Win10, as well as a bunch for whom it does work.
I had some issues when I first started with my PR3, but after a few tries and re-installing the drivers it now works VRY reliably Stefan -- Stefan Bartelski Home layout: The Blue Ridge Line, an HO representation of the L&N Etowah Old Line from Etowah to Elizabeth, set in 1986 9under construction) Modular Layout: Shoofly module of the Country RRoads Modular group |
Locked
Re: How to request a new JMRI feature to support LCC?
David Parks
Paul
I believe what you are asking for is a Loconet to LCC gateway to be built into JMRI.? It would certainly be a useful tool, but I don't think it will sole your Signal conversion problem.? When I converted from Loconet to LCC I converted the Turnouts first, then the Sensors and finally the Signal Masts.? The signal logic is still mostly in JMRI and will not be moved to the nodes until some future node firmware from RR-Cricuits makes that possible.? It is now theoretically possible for some elementary signal logic to be wholly contained in the RR-Circuits LCC nodes.? However, you will find that for the time being JMRI Logix is a much easier alternative, even if someone should develop the Loconet to LCC general purpose Gateway.? If you should decide to convert the Turnouts to LCC that data will become available to the nodes directly without the gateway.? I'm not depreciating the value of the proposed gateway, just suspecting that for the immediate future you will still need to use the JMRI Logix to compute the necessary Signal Aspects. David PARKS Los Altos, CA |
Locked
Re: Saving files / RasPi / TightVNC
No, I did not have the Start Menu properly set up but I'm still stuck. My attempts to save my Turnout Table and Route Table are all failing, Java says it can't find them. ?I didn't see an Open Panel command but I do see Open File. I tried adding that to the Startup /home/pi/JMRI_UserFiles/Turnout List. Turnout List is an xml. file. Nothing. Starting from scratch, what is the proper way to save a Turnout Table and a Route Table created in PanelPro and make the proper entries in the Startup Menu so they can work with WiThrottle? ?Please do not assume knowledge on my part.?
|
to navigate to use esc to dismiss