开云体育

Date

Locked Re: Full timetable automation - AutoDispatcher 2 - abstraction - documentation - scripting

 

James,

To answer one of your original questions, the full documentation for AutoDispatcher2 is in the group’s file area in the AutoDispatcher folder.

The current version supports JMRI 3.6 but appears to work up to 4.4. Beyond that, the sample panel xml files fail to load. I was able to hack the python file to at least load and compile on 4.13.3ish.


I have an idea for a JMRI timetable that is integrated with Dispatcher.

The basic concept is a tree structure with top level nodes being the “trains" and 1 or more leaf nodes which are “stops”. A train node includes the transit that is assigned to the train along with some other details. A separate transit is created for each train which defines the route for the train. A transit section is assigned to each stop node where time related actions take place. At minimum a train will have one stop node which is actually the first section in the transit. Based on the section lengths between stops, train speed, scale and fast clock speed, the arrival and departure times are calculated for each stop. A new action is added to Dispatcher to “wait until <clock time>”. This action is added or updated by the timetable code.


Dave Sand


Locked Re: Preferences are not saving under PR3 mode

 

开云体育

Jay,

Everything you say below is working as designed.?

When you set the preferences to internal, whether you save them or not, that is telling JMRI to only communicate with itself. There is no communication outside the PC. This setting lets me for example test things when I am away from the layout. What I ‘send’ is played back by JMRI.?

David Klemm
8 Plus
?


From: 32501057420n behalf of
Sent: Monday, August 20, 2018 12:54
To: [email protected]
Subject: Re: [jmriusers] Preferences are not saving under PR3 mode
?
Hi Steve,
In the JMRI Pref's the jmri-managers.defaults are set to Loconet.
It is set to Loconet, PR3 Standalone, Com15.
If I change the prefs to Loconet to internal & save & restart, they reset to internal.
If I do not restart it stays at Loconet, but I can't program anything.
Dick, sorry, it is the latest at 4.13.2 Java 1.8.0_161.
Like stated earlier, when I change it to my DCS240, it works fine.
My computer is on the other side of a wall from my layout.
Hence the PR4.
Jay


Locked Re: Consist number to roster file

 

Thanks!!!!!!!


Locked Re: Preferences are not saving under PR3 mode

Jay
 

Hi Steve,
In the JMRI Pref's the jmri-managers.defaults are set to Loconet.
It is set to Loconet, PR3 Standalone, Com15.
If I change the prefs to Loconet to internal & save & restart, they reset to internal.
If I do not restart it stays at Loconet, but I can't program anything.
Dick, sorry, it is the latest at 4.13.2 Java 1.8.0_161.
Like stated earlier, when I change it to my DCS240, it works fine.
My computer is on the other side of a wall from my layout.
Hence the PR4.
Jay


Locked Re: Consist number to roster file

 

Hi ?
Duplicate the roster entry for the lead and then edit the name & dcc address and
save, just dont write it to the loco.
Steve G.

---------- Original Message ----------
From: paxton58@...
Date: August 20, 2018 at 10:07 AM


Is there a way add the consists numbers to the roster file to call up the
throttle?



Locked Jython script debugging in JMRI

 

The community is very helpful in providing example Jython scripts to do a variety of useful functions. Of course, all scripts need to be modified for local circumstances and that is where I start to have a problem. Is there any capability within JMRI to help me in debugging my scripts? I’m just learning Jython and it seems that every time I make a minor change, something breaks and the script just hangs. I’m using Notepad++ for editing and sometimes even find that my indentation gets changed when I load a script into the JMRI script entry window. ?Eventually, I trace these problems back to a misspelled variable or method name or a forgotten type conversion or some other equally “obvious” problem, but it sure would be helpful to have a tool for doing syntax (and perhaps some semantic) checking for JMRI scripts. ?I know there are dozens of tools out there, but is there a commonly used “simple” one, perhaps like there is In the Arduino IDE? ?Any suggestions would be appreciated.
?
Jerry?

___________________________________
jerryg2003@...


Locked Re: Preferences are not saving under PR3 mode

 

? ? Jay didnt say he used the SAVE button in preferences.? Maybe this is his problem.

Roger


Locked Re: Preferences are not saving under PR3 mode

 

You’ve probably already done this, but I had a similar issue yesterday setting up my PR3. Check to make sure that the PR4 is on the right COM port on the PC. Go into Device Manager, Ports on the PC and see what COM port it’s connected to, then check Connections in DecoderPro and make sure it’s the same.?


Locked Consist number to roster file

 

Is there a way add the consists numbers to the roster file to call up the throttle?


Locked Re: automat.AbstractAutomaton WARN - Waiting changes capacity exceeded; not adding java.beans.PropertyChangeEvent[propertyName=State; oldValue=1; newValue=4; propagationId=null; source=MS+N260E6;-N260E6] to queue [AWT-EventQueue-0]

Bob Mercer
 

Thanks Bob,

unfortunately I'm too poorly at the moment to try the fix. Will have a go asap.

Bob M


Locked Re: Newish Hattons MD4 decoder

 

Thanks Dave

I knew there had to be something else but I think it would have taken a long time, if ever, before I twigged that one.

Cheers

Fraser


Locked Re: Preferences are not saving under PR3 mode

 

Jay,
I'm puzzled by your JMRI version number. It doesn't match anything I have seen.

Dick :)

On 08/19/2018 11:31 PM, Jay wrote:
I was trying to program some engines tonight.
It didn't work.
My setup is Win 10 Pro box hooked to a PR4, JMRI 13.4, & Java 8
I looked under prefs, defaults. They were all on internal.
I changed them back & JMRI restarted. They were still on internal.
4 times that was tried to no avail.
I changed it over to my DCS240, no issues.
What is going on?

Jay


Locked Re: Preferences are not saving under PR3 mode

 

Sorry, hit Reply too soon.
Jay,
It's possible that your Preferences are being saved, but then changed again on startup. Same result to you, but it would be helpful to know which is happening, to help find a solution.
Those settings are saved in a file called profile.properties, in a folder called profile, inside your "Profile Location". You can find "Profile Location" using the Help, Locations menu item.
Look in that file for several lines starting with "jmri-managers.defaults.". Those lines should end with "LocoNet", not "Internal".
Save your changes, close JMRI and look at the file. That'll tell you how the Preferences were set when saved.
If you then open JMRI and the Defaults have changed, we'll know it's happening on startup, and not the save. That may help us debug the problem.
--SteveT


Locked Re: Preferences are not saving under PR3 mode

 

Hi Jay,?
It's possible that your Preferences are being saved, but then changed agi


Locked Re: inventory function

 

开云体育

Phil
You'll have to dig in the online help, but I believe there's also a method to import an existing inventory from a spreadsheet, if that helps.
Blair

Is there a way to use JMRI for an inventory of my Motive power, Rolling stock, and/or Structures?
Thanks,
Phil



Locked Re: Newish Hattons MD4 decoder

 

You have to go to Actions->Recreate Decoder Index so the change in Version IDs is propagated to the Decoder Index file.

Dave in Australia

On 20 August 2018 at 17:34, FRASER SMITH <fraser@...> wrote:
In the hope that it was similar to a previous version of the MD4 I opened the Hattons decoder definition and saw that the low and high version ID were set to 21 and changed the low ID to 7, saved the file and tried again but the same result. Choosing the defined MD4 allows programming to work OK. Is there anything else that needs to be changed to get this to auto identify as I have a good few more to do?


Locked Re: inventory function

 

Phil,
I'm by no means an expert in JMRI,
And I'm sure others will chide in.
The locomotive roster in decoder pro can inventory your motive power.?
And if you open panel pro>operations >cars, you can enter all of your rolling stock.?
HTH...John


On Sun, Aug 19, 2018 at 1:30 PM, Philip K. Works
<pkworksone@...> wrote:
Is there a way to use JMRI for an inventory of my Motive power, Rolling stock, and/or Structures?
Thanks,
Phil


Locked Newish Hattons MD4 decoder

 

Hi

I have just installed a recently purchased Hattons decoder into a loco. They still call it MD4 but it is quite different to the previous ones I have used as the green wire, as well as the usual purple wire, is not connected to the 8 pin plug. On finding the decoder type it identifies the manufacturer as Hattons but the version ID of 7 comes up as not defined. In the hope that it was similar to a previous version of the MD4 I opened the Hattons decoder definition and saw that the low and high version ID were set to 21 and changed the low ID to 7, saved the file and tried again but the same result. Choosing the defined MD4 allows programming to work OK. Is there anything else that needs to be changed to get this to auto identify as I have a good few more to do?

Thanks

Fraser


Locked Re: Preferences are not saving under PR3 mode

 

What's the error log say?? Where are you trying to write to?


On Sun, Aug 19, 2018, 20:31 Jay <[email protected]> wrote:
I was trying to program some engines tonight.
It didn't work.
My setup is Win 10 Pro box hooked to a PR4, JMRI 13.4, & Java 8
I looked under prefs, defaults. They were all on internal.
I changed them back & JMRI restarted. They were still on internal.
4 times that was tried to no avail.
I changed it over to my DCS240, no issues.
What is going on?

Jay


Locked Preferences are not saving under PR3 mode

Jay
 

I was trying to program some engines tonight.
It didn't work.
My setup is Win 10 Pro box hooked to a PR4, JMRI 13.4, & Java 8
I looked under prefs, defaults. They were all on internal.
I changed them back & JMRI restarted. They were still on internal.
4 times that was tried to no avail.
I changed it over to my DCS240, no issues.
What is going on?

Jay