¿ªÔÆÌåÓý

Date

Locked Connect JMRI to Loconet through WIFI

 

Hello,
I have JMRI running on a Lenovo Yoga with Win10 installed.? My controller is a Digitrax Zephyr extra ACS51 with a Digitrax LNWI.? I currently control my layout with Engine Driver installed on an Android Phone and it works well.? My Question is can JMRI connect to loconet through tcp using the LNWI as the adapter instead of the PR4 for example?? If I connect my laptops wireless to the Digitrax LNWI signal and start JMRI with my connection set to Loconet over TCP, it connects and both Service Mode Programmer and Operations Mode Programmer show Green and Online.? When I try to read the the decoder on my locomotive or the controller op switches it just gives me a time out talking to command station error (306).

Ive looked on forums and through the messages here and cannot find exactly this issue.? Am I just trying to do something with JMRI that hasn't been programed into it.? I just thought that's why the Loconet over tcp option was there?

Thanks for any feed back,
Much appreciated
Shag


Locked Re: Layout Editor Track Layout

 

Only slightly off topic but the story of the development of the map for the London underground transit system which culminated in 1933 with a layout diagram style that is now used by virtually all public transit systems in the world is worth a read. See wikipedia or?https://londonist.com/2016/05/the-history-of-the-tube-map . It covers all the issues being discussed here of being understandable (seeing what relates to what and how), readable (having room for indicator lights and labels) and scaling (fitting geography and varying densities into a finite panel size).

Jan


Locked Re: Layout Editor Track Layout

 

Wayne,
I have my layout in both LE and CPE. It took me a while to fully understand the differences. It took a lot of help and patience from people on this forum answering my questions to figure it out. (Thanks to Ken, Dave and others). I finally got it cleared up in my mind when I thought of LE as a wiring diagram for a circuit where all the pieces must link to each other for it to work. Cannot drop a turnout into LE without it physically connecting (on the panel) to the rest of the track. Connecting it makes it part of the "circuit".? With everything connected, you now have a circuit that allows all the pieces (turnouts, signals, etc) to work together. ? Meanwhile, in PE/CPE, nothing needs to be physically connected on the panel unless you want it to look that way for your viewing. Each individual piece operates according to the parameters you assign to that piece. You can drop a turnout anywhere then click on it and watch it change without it being directly connected to anything on the panel. However, you can connect all the pieces together behind the scenes with scripts and Logix to make a change to one item impact another. Example...WHEN turnout #20 changes from closed to thrown, THEN light #88 changes color to green or red or whatever per the rules you set up in Logix. In effect, PE/CPE is also a circuit but it relies on the rules, scripts and Logix behind the scenes...not on the face of the panel.
I built my layout in LE first but I don't care for the way it looks since I don't have physical control panels on my layout and I rely on JMRI panels (on an iPad) to operate everything. Instead, I built my panels in CPE and I like them much better for control panel viewing on an iPad. If you get real creative, you can build your CPE panel in all sorts of colors. On mine, when I change a turnout, the track color for the useable route changes to blue while the unusable route turns to red. This allows me to look at my iPad panel and quickly see what route is open depending on existing turnout settings. Not very prototypical but it fill my needs as a single operator.? I will keep my LE panel up to date but I do not plan to jump into more advanced JMRI features such as blocks and signals where the LE panel is needed.


Locked Re: Jython Script output problem #timetable-tool

 

Iain,

Good to hear that things are coming together.

Here is a little help on the start time sort.

The data manager sort is based on the program requirements and is usually the name, station distance or stop sequence.

The following change sorts the train list by start time:

# for train in trains:
for train in sorted(trains, key = lambda t: t.getStartTime()):

The ¡°sorted¡± method takes a list and creates a new list that has been sorted. In this example, the new list is transient and feeds the ¡°for train in¡± phrase. The ¡°key=¡° provides an alternate key. Since a ¡°train¡± is a Java object, Python does not know how to get a value for the key. The ¡°lamda¡± keyword indicates that an anonymous function will provide the value with the function being "t: t.getStartTime()".

Dave Sand

On Dec 18, 2018, at 10:42 AM, Iain <iain@...> wrote:

Dave,

I have spent some time with your program and have come to understand it.

It's about 20 years since I last wrote programs and the facilities of the languages have changed dramatically. I would never have worked out how to get input via rolling selection lists.

I have made a couple of changes in order to get raw times and times in Excel format (that is where the time is a fraction of 1 or 1*(time in mins/1440). I am now looking at getting trains sorted by start times (ultimately by a specified station departure time) in order to produce "printed" timetable data.

It's all very interesting, and I am glad I have a decent editor which keeps me clear on required indentations!

Thanks for getting me started.


Locked Re: EngineDriver & ESP32/ESP8266

 

Steve,
My RPi 3B+ arrived last night (thank you Amazon!) and I have just installed your image, using Etcher) successfully. I have a few questions, which I think would be useful for other users so I am not PMing you.
1) Can I use Linux/Raspbian commands (e.g. apt-get update ¡­. or similar) to update the JMRI software, if so, can I also select the current test version rather than a production version?
2) Best way to load roster data from my Laptop/desktop environment??
3) What is the value of enabling BT, can I use BT for ED?
4) What are the pros and cons of AP service as opposed to being on a home network?

BTW the installation was a breeze, kudos for making it so easy. My PR3 was recognized immediately and the AP service worked so I was able to connect ED without a problem. Now to move everything to my layout and test ;-)

TIA, regards and seasons greetings
Stefan


Locked Re: Jython Script output problem #timetable-tool

 

Dave,

I have spent some time with your program and have come to understand it.

It's about 20 years since I last wrote programs and the facilities of the languages have changed dramatically.? I would never have worked out how to get input via rolling selection lists.

I have made a couple of changes in order to get raw times and times in Excel format (that is where the time is a fraction of 1 or 1*(time in mins/1440).? I am now looking at getting trains sorted by start times (ultimately by a specified station departure time) in order to produce "printed" timetable data.

It's all very interesting, and I am glad I have a decent editor which keeps me clear on required indentations!

Thanks for getting me started.


Locked Layout Editor Tooltip Bug

 

JMRI version: 4.13.5
Java version:?1.8.0_171
MacOS: Version 10.13

When working with Layout Editor panels, I noticed that many of the objects, like Signal Masts, had the ability to set the tooltip.? But no matter what tooltip you set, the only text that is shown is the system name.? ?I saw that the tooltip was being saved in the xml file.? This annoyed me enough that I downloaded the code and started up a debugger.? I found that the method showToolTip in?jmri.jmrit.display.layoutEditor.LayoutEditor always sets the toolTip text to the name string.? Shouldn't it test to see if the text is not null prior to over writing it with the name string?? When I introduce this change, it seemed to work.? Thought you might like to know.? Not sure if this is the place to report this.

Thanks
Jack


Locked Re: Script occasionally missing the change of state of a sensor

 

If you open the JMRI Sensor table and watch, do you see the sensor changing status when the problem happens?

The AIU inputs are polled by the command station, so really short inputs can be missed. So the first thing to track down is whether the problem is getting the into into JMRI, or whether it¡¯s getting to JMRI getting lost.

Bob

On Dec 18, 2018, at 7:11 AM, d.uttley via Groups.Io <d.uttley@...> wrote:

JMRI PanelPro 4.12+Rb6a9bb1
Java 1.8.0_131
NCE Procab V1.3
MAC Mini running OSX 10.9.5.
I have modified a script based on Bob Jacobsen¡¯s ¡°AutomatonExample.py¡±.
There are four sensors, three track based (IR), to detect a vehicle moving over them, the other a push button to start the script loop. The USB to serial connection has a length of about 10 feet, with the adapter mounted in the middle of that run.
All works fine controlling a tram (streetcar) negotiating what in essence is a triangular route with stops and direction reversal at each apex. All sensors are connected to an NCE AIU which sends the state of the sensors to the control bus and hence to JMRI. Occasionally (maybe once in every 10 or so runs), it appears that the state change of a sensor is missed, despite it being reported correctly on the AIU. This causes the tram to miss a ¡°stop¡± command - not at all desirable, as we now have a runaway tram! Also, at times it appears that the stop command is delayed somewhat causing the tram to overrun its intended stop location.
Any ideas as to the cause?
Thanks.
Derek
--
Bob Jacobsen
rgj1927@...


Locked Re: Layout Editor Track Layout

 

Don,

Layout Editor supports levels so you can place your sensor icons on top of the track.

The old method of using multiple track segments with the same block assignment and one segment hidden still works but is no longer necessary.

Dave Sand

On Dec 18, 2018, at 8:49 AM, Don Weigt <dweigt47@...> wrote:

On my physical control panels, I've always placed LED indicators for train photodetectors along the centerline of the track. This divided the line representing the track into many small segments, with the LEDs between. I had 24 photodetectors spaced along each of two blocks (27 feet/8m) in a hidden staging area. With DCC and these detectors, I previously staged two or three trains on each long block. I'm reconstructing my railroad in our new home. It will use the same hidden staging area.

I'm just learning how to use Layout Editor. This conversation makes it seem I won't be able to represent my track and photodetectors the same way with LE, that I will need to have the sensor indicators alongside the track symbol, not in it. If interrupted by sensor indicators, each of those blocks would be shown as 24 short line segments separated by indicators. I think that graphic representation would require each short segment to be connected to a pair of end points. If so, could multiple segments of that sort be assigned to the same block? Or, is there a workaround? Could I name them 1a, 1b, 1c, and so on, and have them share power control and a single current based occupancy detector?

Don Weigt


Locked Script occasionally missing the change of state of a sensor

 

JMRI PanelPro 4.12+Rb6a9bb1
Java 1.8.0_131
NCE Procab V1.3
MAC Mini running OSX 10.9.5.
I have modified a script based on Bob Jacobsen¡¯s ¡°AutomatonExample.py¡±.
There are four sensors, three track based (IR), to detect a vehicle moving over them, the other a push button to start the script loop. The USB to serial connection has a length of about 10 feet, with the adapter mounted in the middle of that run.
All works fine controlling a tram (streetcar) negotiating what in essence is a triangular route with stops and direction reversal at each apex. All sensors are connected to an NCE AIU which sends the state of the sensors to the control bus and hence to JMRI. Occasionally (maybe once in every 10 or so runs), it appears that the state change of a sensor is missed, despite it being reported correctly on the AIU. This causes the tram to miss a ¡°stop¡± command - not at all desirable, as we now have a runaway tram! Also, at times it appears that the stop command is delayed somewhat causing the tram to overrun its intended stop location.
Any ideas as to the cause?
Thanks.
Derek


Locked Re: Layout Editor Track Layout

 

On my physical control panels, I've always placed LED indicators for train photodetectors along the centerline of the track. This divided the line representing the track into many small segments, with the LEDs between. I had 24 photodetectors spaced along each of two blocks (27 feet/8m) in a hidden staging area. With DCC and these detectors, I previously staged two or three trains on each long block. I'm reconstructing my railroad in our new home. It will use the same hidden staging area.

I'm just learning how to use Layout Editor. This conversation makes it seem I won't be able to represent my track and photodetectors the same way with LE, that I will need to have the sensor indicators alongside the track symbol, not in it. If interrupted by sensor indicators, each of those blocks would be shown as 24 short line segments separated by indicators. I think that graphic representation would require each short segment to be connected to a pair of end points. If so, could multiple segments of that sort be assigned to the same block? Or, is there a workaround? Could I name them 1a, 1b, 1c, and so on, and have them share power control and a single current based occupancy detector?

Don Weigt


Locked Re: Jython Script output problem #timetable-tool

 

Dave,

Thank you again very much for that.

I'll try to do some testing later today/tomorrow.

Your program will, I am sure, enable me to produce variations should that be necessary.


Locked Re: Jim Thompson

 

¿ªÔÆÌåÓý

Is this the James Thompson from Reed City?



Sent from my Verizon, Samsung Galaxy smartphone


-------- Original message --------
From: Bob Jacobsen <rgj1927@...>
Date: 12/17/18 8:40 PM (GMT-05:00)
Subject: [jmriusers] Jim Thompson

Passing along some unfortunate news.

Bob

It is with great regret to inform you that James (Jim) Thompson has passed away very suddenly on Dec 5th.? If you could let your group know this and then remove him from the group, it would be greatly appreciated.
?
Your Truly,
Holly Thompson (daughter)


--
Bob Jacobsen
rgj1927@...




Locked Jim Thompson

 

¿ªÔÆÌåÓý

Passing along some unfortunate news.

Bob

It is with great regret to inform you that James (Jim) Thompson has passed away very suddenly on Dec 5th.? If you could let your group know this and then remove him from the group, it would be greatly appreciated.
?
Your Truly,
Holly Thompson (daughter)


--
Bob Jacobsen
rgj1927@...




Locked Test version 4.13.7 of JMRI/DecoderPro is available for download

 

Test version 4.13.7 of JMRI/DecoderPro is available for download.

This is hopefully the last in a series of test releases that will culminate in a production release later this week. We'd appreciate feedback on whether or not this release works for your layout.

If you are currently using JMRI 4.9.6 or earlier, we strongly recommend that you first update to JMRI 4.12 and make sure that's running OK before updating to this test release. There have been a number of changes in serial port support, panel file format and configuration options since those earlier releases, and moving to the stable JMRI 4.12 release is a good way to work through any possible problems.
<>

If you use JMRI on Linux or Mac and are updating from JMRI 4.7.3 or earlier, there¡¯s a necessary migration step. (Not needed on Windows) Please see the JMRI 4.12 release note for details: <>

For more information on the issues, new features and bug fixes in 4.13.7 please see the release note:
<>

Note that JMRI is made available under the GNU General Public License. For more information, please see our copyright and licensing page.
<>

The download links, along with lots of other information which we hope you'll read, can be found on the release note page:
<>

Bob
--
Bob Jacobsen
rgj1927@...


Locked Corrupted menus in Circuit Builder

 

The Circuit Builder option in Panel Editor does not work properly. When selected, the pull down menus display with jumbled characters, as though two lines are superimposed. The application is corrupted. None of the submenus can be activated. Please see ¡°screen shot 121618¡± in Photos .

?

The problem occurs in an existing control panel file, and a new one also. I tried reinstalling the current JMRI v. 4.12+Rb6a9bb1, and then installing v. 4.13.6+Rcb07def, but with the same result. The JMRI InstallTest ran okay. I do not know how to verify the checksum of the installation files; perhaps the application is corrupt. The Java edition is v. 8.0.191, the latest. I also reset the computer. Is there a solution to this problem?


Locked Re: Jython Script output problem #timetable-tool

 

Iain,

I have uploaded the TimeTableExport.py file to my folder in ProblemsBeingWorkedOn:

/g/jmriusers/files/ProblemsBeingWorkedOn/dsand/TimeTableExport.py

The generated CSV file will be located in your user files location (panels, roster, etc.) with the name TimeTableExport.csv. This file can be imported into a spreadsheet program for additional processing.


Dave Sand

On Dec 17, 2018, at 12:36 PM, Dave Sand <ds@...> wrote:

Iain,

The 24/0 wrap is caused by not having a defined wait time that spans the 24 to 0 time period. As indicated in the help document, this is required to prevent strange issues like you see.

For your data output you need to think of a 5x50 grid. You need to account for every cell in the grid. If a train does not have a stop at a station, that grid cell needs to be ¡°empty¡±. Since there are arrive and depart times, maybe the grid is 5x100. The other thing to keep in mind is that some trains run from station 1 to station 5 AND other trains run from station 5 to station 1.

The easiest solution is to export the data using a CSV (comma separated values) file. This is actually on my TODO list.

In the meantime, I will create a python version. The rows will be station and train arrive and depart times are the columns.


Dave Sand



On Dec 17, 2018, at 11:42 AM, Iain <iain@...> wrote:

Dave,

I have spent many hours entering my data into Timetable for the Ullapool - Lochinver segment. That is 5 stations and some 50 or so trains. I have put the data file into the problems list if you want to look at it. The graph output is interesting in that the 24hr to 0hr wrap-round goes right across the page.

I have taken your code fragment and produced this:

import java
import jmri

# Get the Timetable data manager
tdm = jmri.jmrit.timetable.TimeTableDataManager.getDataManager();


for stop in tdm.getStops(0, station.getStationId(), False):
train = tdm.getTrain(stop.getTrainId())
print train, stop.getArriveTime()

Which lists for one station (Lochinver) the UNSORTED arrival (and departure by coincidence) time of all trains at that station.

What I need is to produce an output (table/matrix) something like:
station 1 station 2 station 3 station 4 station 5
train 1 arr dep arr dep
train 2
train 3
etc

Which when inverted would produce a timetable for the line. I don't need the station names of course.

There is a snag since there are more trains between stations 1 and 2 than the other stations. I am not sure how that gets dealt with?

If I wanted to graph it I would need to output station-no train time pairs for the y/x axes:

train1 station-no arr-time station-no dep time station-no arr-time station-no dep time etc......
train2
train3
etc.



Locked Re: setting up version 4.12

 

I can't remember in which version we dropped 19,200 support and forced JMRI to 9600. Maybe Perry was using a very old version.
--
Dave in Australia

On 18 Dec 2018, at 7:16 AM, Ken Cameron <kcameron@...> wrote:

The other speed have been proved to overrun the command station. Jim even
proved this a couple of years ago and so we dropped the other speeds as they
will lead to dropped command bytes if the command station gets busy. By
design, the command station should always be able to service the uart within
the time of one 9600 byte.


Locked Re: Layout Editor Track Layout

 

A lot how you want to use a panel determines which editor is the better fit.
Having more than one pane, using different editors, isn't unusual. Some use
drawings or even photos as background and then just place a few things, like
signals, over them. The key thing about Layout Editor is that it builds a
database of what connects to what or what is placed next to what. Other
tools then use that information. Example: if you use signal masts, there is
a signal mast logic builder that will use that information for creating
logic to drive them.

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


Locked Re: Accessary Numbering System

 

Whurry,

Yes, JMRI uses a separate prefix to differentiate items on one physical connection from items on another physical connection. They are separate ¡°System Name¡±s, so they are treated entirely separately from the JMRI perspective.

For example, an NCE throttle can control Switch 12. A Digitrax throttle can control Switch 12. The NCE throttle operates the ¡°Switch machine¡± associated with the DCC track signal sourced by the NCE command station. The Digitrax throttle operates the ¡°switch machine¡± associated with the DCC track signal sourced by the Digitrax command station, or associated with a LocoNet device that acts upon control messages to ¡°Switch 12¡±. The two physical devices are typically not cross-connected, so each system controls its own resources.

In some cases, the JMRI user may force a direct relationship between an NCE object and a Digitrax object of the same number. Making this direct relationship requires some special configuration in JMRI (Logix or scripting or other ¡°tricks¡±). I think it is rare for a JMRI user to implement such schemes, but I¡¯m sure we¡¯ll hear it if it is more common than I think.

Digitrax command stations can support ¡°Turnout¡± numbers between 1 and 2044, but Digitrax throttles generally can only access turnouts between 1 and 999. Any LocoNet turnout address greater than 999 can not be directly accessed by a Digitrax throttle. (This is intentional, as it prevents user control of ¡°signals¡±.)

Digitrax numbering can be difficult to get your hands around, to say the least. Digitrax ¡°addressing¡± and its effects on JMRI are discussed more completely in the JMRI help page for LocoNet ¡°addressing¡±: .

Regards,
Billybob