¿ªÔÆÌåÓý

Date

Locked Re: 4.13.4 Unable to update signal masts

 

Steve,

? ? I've uploaded a photo of what I see on my computer to the Photo Section under JMRI.

? ? Maxing form window shows no button.

Roger


Locked Re: Deleting Blocks

 

Richard,

Do you have blocks assigned to track components on a Layout Editor panel? If so, the blocks are re-created during panel loading.

Dave Sand

On Oct 27, 2018, at 4:56 AM, Richard_vanRaay via Groups.Io <richard_vanraay@...> wrote:

I have tried more than a dozen times to delete all the blocks from Tools/Tables/Blocks but they always come back ?
I am pressing every save button I can see. I go File/Store and tried both options. I save the Panels. I renamed the panels.
I am going to start again so don¡¯t mind getting rid of every Block.


Locked Re: Understanding JMRI file sharing and structure

 

Dave,

Very nice description.

The profile: section is not quite complete. ?The modifications below are based on a new setup based on 4.12.


Dave Sand



On Oct 27, 2018, at 4:49 AM, Dave Heap <dgheap@...> wrote:

Settings Location (portable name = "settings:")
This is the only fixed location and is determined by the underlying operating system type and your logged-in-username. It's a known place the JMRI?program can always look and find essential settings files that tell it where everything else is located.
The following files/folders are always located here:
nodeIdentity.xml
This file contains a unique nodeIdentity string that is generated the first time JMRI uses this?Settings Location, doesn't change and serves to distinguish?between other possible Settings Locations (such as under another username, on a different operating system partition or another computer).
profiles.xml
This file lists the name of every Profile Folder known to this instance of JMRI and its location. It also has a list of all paths you wish to search for profiles?and which path is the default for newly-created profiles. "settings:" is always searched but it doesn't have to be the default.
log
This folder contains the session.log and messages.log files, plus several previous versions of these files.
DecoderProConfig3.properties
PanelProConfig2.properties
SoundProConfig2.properties
These files are created the first time each of the apps are run and simply contain three pieces of information:
- The name of the Profile Folder last used by this app.
- Whether you want the app to autostart with the last-used Profile Folder
- How long to display the Profile Selector box if you choose not to autostart.
Other files/folders
The following?may?be present, but do not have to be:
- ?Various Profile Folders you have created. From V4.13.4 on, newly-created Profile Folders will have a ".jmri" extension.
- ?Your User Files - panels etc.
-?Your "roster" folder?and its (recreatable) roster.xml file.

Profile Location (portable name = "profile:")
This folder is the one chosen by the Profile Selector mechanism for the current JMRI session.
The following files/folders are?always located here:

The ¡°profile¡± folder at the profile: location contains the ¡°profile.xml" and ¡°profile.properties" files and one or more node specific folders that start with "jmri-¡°.
The node specific folders contain local versions of profile.xml, profile.properties and user-interface.xml. ?The user-interface.xml file contains information on window size and positions, column widths, etc.

ProfileConfig.xml
profile.properties
profile
This folder contains node-specific folders with overrides for?ProfileConfig.xml and?profile.properties as well as user-interface.xml (window positions,?column widths, etc.).
Other files/folders
Other specific preference folders (throttle, etc.)
The following?may?be present, but do not have to be:
- ?Your User Files - panels etc.
- Your "roster" folder and its (recreatable) roster.xml file.

User Files Location (portable name = "preference:")
This location contains:
- ?Your User Files - panels etc.
The following?may?be present, but does not have to be:
- Your "roster" folder and its (recreatable) roster.xml file.
You are free to change the User Files Location as you like (Preferences->File Locations).

Roster Location (portable name = "roster:")
This location contains:
- Your "roster" folder and its (recreatable) roster.xml file.
By default the Roster Location is the same as (and follows) the User Files location unless you explicitly set a different location.
You are free to change the Roster Location as you like (Preferences->Roster->Roster->Location Set/Reset).

Scripts Location (portable name = "scripts:")
This location defaults to the "jython" sample scripts folder located within your JMRI Program Location. You should?never?store user-created files?anywhere within your Program Location, they are likely to be lost in a JMRI upgrade.?
If you are creating your own scripts you may wish to change the Scripts Location (Preferences->Locations).

Program Location (portable name = "program:")
This location is set when JMRI is installed and can only be changed when installing the software.
You should?never?store user-created files anywhere within your Program Location, they are likely to be lost in a JMRI upgrade.

User Files Location defaults and implications
Depending when you first installed JMRI on your computer, the default User Files Location will differ:
- Before the advent of Profiles (JMRI V3.8),the default?User Files Location was the same as the Settings. This arrangement stayed in place with the?upgrade.
- After the implementation of Profiles (JMRI V3.8),the default User Files Location for new installations is the same as the Profile Location.

Implications of User Files Location with Profiles
- If you create a new profile,?User Files Location = Profile Location. This means the profile will have an initially-empty set of User Files.
- If you create a copy of a profile that has User Files Location within the Profile Location, the new profile will have a new private copy of User Files from?the source profile. The two sets will be unconnected and changes to one will not affect the other.
- If you create a copy of a profile that has User Files Location anywhere on the computer outside the Profile Location, the new profile will share User?Files with the source profile. So changes will be seen by both profiles.

Implications of?Separating User Files Location and ?Roster Location
If you separate User Files Location from Roster Location (as documented above), you can implement differing sharing/separation of the two, e.g. a?single roster shared between two different layouts (each with its own profile).

Sharing User Files between Computers
Since User Files can be relocated completely outside of the user's JMRI file system, sharing of User Files between computers is easy:
Use of simple file sharing or using a local NAS or other file server:
This approach seems appealing at first sight. However there are considerable disadvantages and risks.
- The host computer or server must always be on line when using JMRI on any computer.
- Use of JMRI on a laptop away from home or Internet access will not be possible.
- JMRI is not designed for simultaneous file access. The risk of file corruption is very high.
- Recovery from a file corruption may be difficult or impossible unless a very comprehensive incremental backup strategy is in use and even the there is?likely to be some data loss.
See the link below for further information on issues with simple file sharing:?
Use of a cloud-synced sharing solution:
Note that in this context we are?not?talking about a Cloud Server approach where your files only exist on a remote server. We?are?talking about a?service such as Dropbox, Google Drive, OneDrive where full local copies exist on each computer and each copy is kept in sync with the central Cloud?copy.
There are considerable advantages with this approach.
- Only one computer needs to be switched on at a time.
- Use of JMRI on a laptop away from home or Internet access is fine. The file changes will be synced next time you are connected.
- These services generally do not usually use simultaneous file access. The risk of file corruption is much lower.?
- Recovery from unintended file changes is much easier. For example Dropbox keeps every saved change you have made in the past 30 days (even if?you only have one computer) and allows easy reversion.
We tend to talk about Dropbox because that is the one that seems to be most used by JMRI developers and users, some of whom have been doing so?for many years. For more information and setup instructions (also applicable to competing services) see:
<>

?Sharing Profiles between Computers
In the same way that User Files can be relocated completely outside of the user's JMRI file system and shared between computers, so can entire?Profiles. In Preferences->Config Profiles->Search Paths you can add a search path in a synced/shared location and set that to be the default for newly-created profiles. It's then simply a matter of manually moving each Profile Folder from the Settings Location to your new shared folder. When you first?use a shared profile on a different computer JMRI creates a node-specific folder for storing overrides of settings (see above) that are machine-specific?(e.g. COM port names).

I have been using both of shared User Files (a "JMRI" folder in my Dropbox folder) for many years and a shared Profiles (a "JMRI Config Profiles" folder?in my Dropbox folder) for more than a year now (and tweaked some JMRI code to improve node differentiation) across more than a dozen?machines/virtual machines, running Mac, Windows and Linux.

Portable File Access in JMRI
The success of file and profile sharing in JMRI is very dependent on the use of our Portable File Access specification in XML files.
Briefly, this consists of pseudo-URL prefixes (portable names mentioned above) that replace machine-specific directory paths in file specifications with a?set of prefixes relative to known JMRI and machine locations. These are expanded by the local JMRI instance to create a machine-specific file?specification. The component separators are standardised as "/" and converted locally.
For more information see:
<http://jmri.org/help/en/html/doc/Technical/FileNames.shtml>
For a full list of prefixes, see:
<http://jmri.org/JavaDoc/doc/jmri/util/FileUtil.html#getExternalFilename-java.lang.String->

Summary
I apologise for the verbosity of this document, but I've drawn together a lot of information and personal knowledge of how JMRI code works in these?areas (some of which is not well documented).
Some may think this document is worth converting to html and adding to the JMRI help pages, where it can be fine-tuned, corrected and updated as?need be. I'd like to do or but I'm afraid don't have the time to do so.

Time to get back to family priorities...

E&OE

Dave in Australia


Locked Re: Understanding JMRI file sharing and structure

 

That's very helpful Dave and allows me, and I'm sure many others, to understand JMRI's internal structure for information storage. Understanding that is often key to avoidung problems and sorting them out when they occur. Thank you very much.

I'd be happy to turn this into an html document but as I have never done this for the JMRI site I'd need help - and the helper may find it simpler to do the conversion themselves! Any offers?

Jan Carr


Locked Re: Understanding JMRI file sharing and structure

 

Dave....THANKS !
This is a big help. Now I understand why the same roster shows up in different profiles. That was a key confusion point for me and made me fearful that editing info under one profile would impact info I see in a different profile.
I think it would be great to add this info to the JMRI help pages and then let it grow with time.
Paul D


Locked Re: Dispatcher, Signal Mast definitions (BR-2003) and speeds

 

Thanks Steve!
got it working!
adjusting the Loco speed correction in create auto train to the ¡°green¡± 45 value (if I make normal be 50, I set loco correction to 50) and all values match up to the specified speeds. Works a charm!!
all block and turnout speeds are being followed now.

the only draw back is now 25% has become 13% but I understand why, being hard coded. Happy to deal with that for now.

Maybe a way around it is choosing a ¡°stopping speed¡± in dispatcher options by way of drop down list, as you would a block/turnout speed?
--
Thanks
Mitch


Locked Re: 4.13.4 Unable to update signal masts

 

Hi Roger
The buttons are there at the bottom, try maximizing the form. Or is the form too
big for a small screen?
Steve G.

---------- Original Message ----------
From: Roger Merritt <merritt_roger@...>
Date: October 27, 2018 at 11:56 AM


All,

Windows 10 running JMRI 4.13.4

? ? ?Dont know if this a bug or not.? Dont see an update button for adding
sensors or turnouts when Editing a Signal Mast.

Roger



Locked 4.13.4 Unable to update signal masts

 

All,

Windows 10 running JMRI 4.13.4

? ? ?Dont know if this a bug or not.? Dont see an update button for adding sensors or turnouts when Editing a Signal Mast.

Roger


Locked Re: BD20 block detection

 

I'm already out of my depth. Not to worry. Learning to make it work is part of the fun. For instance, I have as yet no clue how I'll get from a layout with simulated hardware to the proper thing without redoing it all. Finding out is going to be a nice puzzle, and I'm sure it can be done. Another thing is the AIU addressing that's mentioned in this post. The '[x:y]' notation. No idea. I'll find out when I get to it (not there yet). You are now officially ahead of me.

This group is indispensible, I know that much. And now and again, I can give a tiny little something back. Hopefully more as I go along. That'd be good.

Wouter


On Sat, 27 Oct 2018 at 13:23, Richard_vanRaay via Groups.Io <richard_vanraay=[email protected]> wrote:
This was in reply to one of your earlier posts. There is a lot I didn¡¯t really get when you were al helping but now reading back it makes a lot more sense.


Locked Re: UK 3 aspect signal with feather using NCE PowerCab and TrainTech signal

 

This one seems to have dropped off the front page without any response.? Just for the record I am using JMRI 4.12 (I usually keep off "latest versions" lest they be buggy).

Are there no UK BR-2003 feather users out there?? I don't think this has anything to do with NCE or TrainTech.? I have connected the computer to my layout and everything else works - including 11 points/turnouts/switches and 4 * 3 aspect signals.

If I define a Logix with a sensor I can manually cause the necessary Accessory command to go out to the NCE bus, and the signal feather on the signal lights/goes dark as appropriate.? BUT nothing shows on the on the Layout Panel (the 5 lights don't go dark) and Clicking on the feather on the Layout Panel has no effect whatsoever.

Perhaps this doesn't matter? All the other aspects change on the panel


Locked Re: Dispatcher Auto Active Train Fails to Pause

 

I've also tested this problem with 4.13.4 and find the pause action in the Transit to not work.? Loco goes to 25%, then stays at that speed for the duration of transit.? Does not terminate either.

Roger


Locked Re: General Announcement: Possible release of JMRI USS CTC software.

 

I too am in favor of you contributing it.

But if you want to take an intermediate step, we can have Jenkins build installers from your branch so that people can easily download and try it. ?That'll get you some feedback early.

Bob


Locked Re: General Announcement: Possible release of JMRI USS CTC software.

 

If it helps the newbe to JMRI such as myself to get things up and running quicker with less frustration then by all means add it in.? I'm 63 and just in the last 2 years got back into the hobby and building a new Model railroad so my days are limited and I need any and all shortcuts? lol


Locked Re: BD20 block detection

 

This was in reply to one of your earlier posts. There is a lot I didn¡¯t really get when you were al helping but now reading back it makes a lot more sense.


Locked Re: BD20 block detection

 

Now I understand the first paragraph of this post and a bit more. ?


Locked Re: BD20 block detection

 

I'm learning too, Richard. My "knowledge" is more from having read and digested lots and lots about JMRI/NCE over the past ten years than from hands-on experience. Much of it written by the very same guru Dave who¨¦ helping uou along.

I'm currently ithe proud owner of a complete and working roster, and of one layout editor panel and three panel editor panels that I'm playing with using the simulator. Just a loop with three passing sidings (so six turnouts) is all. Virtual signalling done. Now scripting my heart out with python/jython that I'd not encountered before. Learning curve not as steep as I thought it would be; doing things I thought would take weeks within days. ALl good.

I'll be reaching the early stages of panic that you're now recovering from pretty soon as I get the hardware out (powercab 1.65b, NCE-USB, AIU - sound familiar? :-) ). Eventual goal is a garden layout with a Power Pro, mixing automatic trains (no ideas on how, yet) with manually driven ones, but my steps are going to be tiny - on purpose.

I used to be a lot further than this, but my umpteenth windows crash has now made me say goodbye to windows forever (NEVER EVER will I install that again, glory be!) and Dropbox helpfully landed me with the bug that means it can lose you any selection of your files - in my case, everything panel-related, though the roster was still there).

IMPORTANT HINT: do NOT rely on Dropbox as a backup tool. It's not as safe and all-remembering as its reputation allows people to assume. It's a truly great service, and for my usage free as well, so I'm not moaning, but I should have known better than to put 100% trust in it. Ah well. Live and learn.

Most of all: have fun on average! There will be frustration along the way, but loads of enjoyment, too!

Wouter


On Sat, 27 Oct 2018 at 12:18, Richard_vanRaay via Groups.Io <richard_vanraay=[email protected]> wrote:
I am really pleased with the progress today, thanks for everything. When I changed the jumpers on the AIU to 8 it was not recognised so I put it back to 4.?
There are 14"addresses in sensors from NS ,48 to NS57. This occured automatically after I cleared all the crap I had put in beforehand then again put in 4:1.
There are now 6 blocks working really well. The track has to be clean as you said Dave.
Tomorrow I will try to put in another few blocks and see how it goes.
I can't thank you enough Dave, Ken and Wouter. I don't pretend to understand everything that you have helped me with but l certainly learnt a lot, not the least patience .
I have a lot to do and a long way to go . 10 steps forwards and 9 steps back.


Locked Re: BD20 block detection

 

From ,NS48 to NS61.


Locked Re: BD20 block detection

 

I am really pleased with the progress today, thanks for everything. When I changed the jumpers on the AIU to 8 it was not recognised so I put it back to 4.?
There are 14"addresses in sensors from NS ,48 to NS57. This occured automatically after I cleared all the crap I had put in beforehand then again put in 4:1.
There are now 6 blocks working really well. The track has to be clean as you said Dave.
Tomorrow I will try to put in another few blocks and see how it goes.
I can't thank you enough Dave, Ken and Wouter. I don't pretend to understand everything that you have helped me with but l certainly learnt a lot, not the least patience .
I have a lot to do and a long way to go . 10 steps forwards and 9 steps back.


Locked Re: Dispatcher Auto Active Train Fails to Pause

 

Hi Paul
I will try and get to this today.
Steve G.


On October 25, 2018 6:54:11 AM EDT, paul@... wrote:
Hi Steve,

Do the changes in 4.14.4 have any impact this? ?I've retested it on this release and there's some good news and not so good. ?Pause now appears to work on a single block automatically generated 'safe' section which is brilliant, but only if the action is set to happen without delay. ? I expect that the previous workaround of editing out the facing signal in the xml or generating the section manually will still work. ?I'll check and confirm.

Regards

Paul

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Locked Re: Dispatcher, Signal Mast definitions (BR-2003) and speeds

 

Hi Mitchell.
The max speed for the line is 45. A green signal will be 45/45 = 100% throttle. This will be adjusted to 50% by the max speed limit. The max speed in auto train set up is percentage of throttle. So normal, medium and slow all make 50% throttle. Try using the factor to keep a limit on top speed, then the other speeds will be proportionally slower. We need to do some fixing with the 25%, it's currently hard coded.
Steve G.


On October 25, 2018 9:04:56 AM EDT, "Mitchell via Groups.Io" <mitchell.scott93@...> wrote:
Hello again.. I've just tested the lastest Jenkins build. 4.13.5.

Here are my warrent settings whole using BR-2003 SML

ASPECT SPEED NAME TO VALUE MAPPNG
Normal = 45.0
Medium = 35.0
Slow = 25.0
Restricted = 15.0
RestrictedSlow = 25.0
Stop = 0.0


HEAD APEARANCE TO SPEED NAME
Red = Stop
Flashing Red = Restricted
Green = Normal
Flashing Green = Medium
Yellow = Slow
Flashing Yellow = Medium
Lunar = Restricted
Flashing Lunar = Restricted

I wiped my transits, sections and SML, saved, and re-autogenerated + rebuilt transits hoping it would catch on. SML shows speed values that MATCH the included block/turnout speeds (So the SML is recognsing the speed name to speed values)

However, a train set with a max speed limit of 50% in auto trains is staying at 50% unless it is passing a yellow signal to a red signal, and slows to 25% until stop sensor OR in final block before red.
The stopping behaviour is normal, but it still won't respect any block speeds that the SML is indicating.
SML might show max speed is Medium/35 but still shows a green apsect, not a yellow, and the train stays at the max speed set in auto-trains creation rather than slowing to 35.

I feel like this is to do with, as you mentioned:

"If you are using a loco that is NOT speed profiled, OR you have not checked the
box "Use Speed Profile" in "Activate New Train"-> "Run Train Automatically" then
it it does some further processing. When the first train runs, so adjusting this
value takes a JMRI restart, it finds the maximum speed for the line. That means
it looks at each aspect used by the signalling system, not every aspect defined
by warrants, and gets the "Maximum Speed" value. If that tests results in 0.0,
then it looks up "Maximum" in the Aspect names, if that fails then it uses 100.
This becomes 100% throttle. The throttle is set to "New Speed" / "Maximum
Speed". This is then adjusted firstly by "Default Maximum Speed", and then "Loco
Speed Correction"."

If I'm applying that to my issue, does that mean the aspects in the signalling system is not referencing any of the information in the warrants table?
Or in other words, that the auto-active trains is igorning all the block and and SML speeds and getting speeds directly from the signal system XML and then applying the maximum allowed speed (50%) over the top of that?


--
Sent from my Android device with K-9 Mail. Please excuse my brevity.