¿ªÔÆÌåÓý

Date

Locked Re: BD20 block detection

 

I'd say that is because your sensors are still reading AIU 4 (NS48 to NS61).

You'd see that in the NCE Command Monitor.

Non-existent AIU sensors report as occupied.

You are going to have to delete and recreate those sensors.
--
Dave in Australia

On 8 Nov 2018, at 6:22 PM, Richard_vanRaay via Groups.Io <richard_vanraay@...> wrote:

Now to make things more fun all the sensors are showing active! All blocks show occupied. The lights on the AIU are all correct, only the Layout shows faulty.
Slowly, slowly,


Locked Re: BD20 block detection

 

Also all good.
--
Dave in Australia

On 8 Nov 2018, at 6:05 PM, Richard_vanRaay via Groups.Io <richard_vanraay@...> wrote:

2018-11-08 18:03:51,432 usbdriver.UsbDriverAdapter INFO - NCE USB COM4 port opened at 9600 baud [main]
2018-11-08 18:03:51,587 nce.NceConnectionStatus INFO - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0]


Locked Re: BD20 block detection

 

¿ªÔÆÌåÓý

See below:

On 8 Nov 2018, at 6:01 PM, Richard_vanRaay via Groups.Io <richard_vanraay@...> wrote:

Thanks Dave, Jim and Ken. I have all wiThrottle and laptop going now. I lost the plastic cover that went over the jumpers and am left with 8 steel rods sticking out of the circuit board.

Don't worry about that now. You are working with the current setup.It would have actually been 4 separate jumper shunts. They are easily obtainable:
<>

I don't know how to copy your post Dave but;
All JMRI preferences are as you said except serial port which is ttyUSB0 and that is the only one that works.

ttyUSB0?would be on your?Raspberry Pi

COM4 would be on your?Windows laptop.


Baud rate is 9600
NCE show all cabs shows 2, 3, 8 and 9, 3 being the ProCab, USB, AIU and AIU.

Fantastic. That's exactly what we wanted to see. (Pro Cab would actually be 2 and USB 3.)
I will post a console log now just because I can, and will turn off and restart Power Cab then start JMRI and look again at the consol log looking for V7.3.0.

I can see it below?

All preferences are always staying on NCE. I have not seen them change for months and am checking them often.

Good. Keep doing so when you are changing things or having problems.

LED's are not stuck on the USB interface.

Excellent.

I am still unsure whether it is a V6 or V7.

Definitely a V7

Thanks men. Thanks a lot. I'd buy you a beer or when your in Tassie drop in for one.

Didn't realise you were from Tassie (my side of the pond). My cousin from Hobart was visiting a few weeks ago and we were discussing fine IPAs (our favourite beers).

His father (my uncle from Hobart) died a few weeks ago. If you are from Hobart region you may have seen the media coverage. He was a very well known Salvation Army Officer who for many years had visited the Hobart pubs every Friday night.

I have turned off Start up Panel just because I could.

Good idea while testing.

2018-11-08 17:45:38,363 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main]
2018-11-08 17:45:38,405 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Toshiba laptop\JMRI\log\messages.log [main]
2018-11-08 17:45:38,407 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Toshiba laptop\JMRI\log\session.log [main]
2018-11-08 17:45:38,423 apps.Apps???????????????????????????? INFO? - PanelPro version 4.12+Rb6a9bb1 starts under Java 1.8.0_151 on Windows Vista x86 v6.0 at Thu Nov 08 17:45:38 AEDT 2018 [main]
2018-11-08 17:45:39,388 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f558d63 [main]
2018-11-08 17:45:40,694 node.NodeIdentity???????????????????? INFO? - Using jmri-dNQe-cAGbhNiaaacjEYECc-3f558d63 as the JMRI Node identity [AWT-EventQueue-0]
2018-11-08 17:45:41,052 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main]
2018-11-08 17:45:41,705 usbdriver.UsbDriverAdapter??????????? INFO? - NCE USB COM4 port opened at 9600 baud [main]
2018-11-08 17:45:41,923 nce.NceConnectionStatus?????????????? INFO? - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0]

This is the NCE USB telling JMRI (and us) that it is a V7 board with all jumpers removed. All good.

Dave in Armidale


Locked Re: BD20 block detection

 

Now to make things more fun all the sensors are showing active! All blocks show occupied. The lights on the AIU are all correct, only the Layout shows faulty.?
Slowly, slowly,
?


Locked Re: BD20 block detection

 

2018-11-08 18:03:48,180 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main]
2018-11-08 18:03:48,242 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Toshiba laptop\JMRI\log\messages.log [main]
2018-11-08 18:03:48,243 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Toshiba laptop\JMRI\log\session.log [main]
2018-11-08 18:03:48,258 apps.Apps???????????????????????????? INFO? - PanelPro version 4.12+Rb6a9bb1 starts under Java 1.8.0_151 on Windows Vista x86 v6.0 at Thu Nov 08 18:03:48 AEDT 2018 [main]
2018-11-08 18:03:49,154 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f558d63 [main]
2018-11-08 18:03:49,746 node.NodeIdentity???????????????????? INFO? - Using jmri-dNQe-cAGbhNiaaacjEYECc-3f558d63 as the JMRI Node identity [AWT-EventQueue-0]
2018-11-08 18:03:50,460 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main]
2018-11-08 18:03:51,432 usbdriver.UsbDriverAdapter??????????? INFO? - NCE USB COM4 port opened at 9600 baud [main]
2018-11-08 18:03:51,587 nce.NceConnectionStatus?????????????? INFO? - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0]
2018-11-08 18:03:53,534 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files\JMRI\ [main]
2018-11-08 18:03:53,536 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\Toshiba laptop\JMRI\My_JMRI_Railroad\ [main]
2018-11-08 18:03:53,543 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\Toshiba laptop\JMRI\My_JMRI_Railroad\ [main]
2018-11-08 18:03:53,550 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\Toshiba laptop\JMRI\ [main]
2018-11-08 18:03:53,551 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\Toshiba laptop\ [main]
2018-11-08 18:03:53,553 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Users\Toshiba laptop\JMRI\My_JMRI_Railroad\ [main]
2018-11-08 18:03:54,131 server.WebServer????????????????????? INFO? - Starting Web Server on port 12080 [WebServer]
2018-11-08 18:03:55,924 server.WebServer????????????????????? INFO? - Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=4.1} [WebServer]
2018-11-08 18:03:56,617 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main]
2018-11-08 18:04:01,000 withrottle.FacelessServer???????????? INFO? - Published ZeroConf service for 'richard's railroad._withrottle._tcp.local.' on 192.168.1.15:12090 [WiThrottleServer]
2018-11-08 18:04:01,001 withrottle.FacelessServer???????????? INFO? - Creating new WiThrottle DeviceServer(socket) on port 12090, waiting for incoming connection... [WiThrottleServer]
2018-11-08 18:04:01,022 consisttool.ConsistFile?????????????? INFO? - Consist file does not exist.? One will be created if necessary. [WiThrottleServer]
2018-11-08 18:04:01,027 withrottle.FacelessServer???????????? INFO? - Creating new WiThrottle DeviceServer(socket) on port 12090, waiting for incoming connection... [WiThrottleServer]
2018-11-08 18:04:01,283 withrottle.DeviceServer?????????????? INFO? - Received Name: Richard's iPad [Thread-22]


Locked Re: BD20 block detection

 

Thanks Dave, Jim and Ken. I have all wiThrottle and laptop going now. I lost the plastic cover that went over the jumpers and am left with 8 steel rods sticking out of the circuit board.
I don't know how to copy your post Dave but;
All JMRI preferences are as you said except serial port which is ttyUSB0 and that is the only one that works.
Baud rate is 9600
NCE show all cabs shows 2, 3, 8 and 9, 3 being the ProCab, USB, AIU and AIU.
I will post a console log now just because I can, and will turn off and restart Power Cab then start JMRI and look again at the consol log looking for V7.3.0.
All preferences are always staying on NCE. I have not seen them change for months and am checking them often.
LED's are not stuck on the USB interface. I am still unsure whether it is a V6 or V7.
Thanks men. Thanks a lot. I'd buy you a beer or when your in Tassie drop in for one.
I have turned off Start up Panel just because I could.

2018-11-08 17:45:38,363 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main]
2018-11-08 17:45:38,405 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Toshiba laptop\JMRI\log\messages.log [main]
2018-11-08 17:45:38,407 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Toshiba laptop\JMRI\log\session.log [main]
2018-11-08 17:45:38,423 apps.Apps???????????????????????????? INFO? - PanelPro version 4.12+Rb6a9bb1 starts under Java 1.8.0_151 on Windows Vista x86 v6.0 at Thu Nov 08 17:45:38 AEDT 2018 [main]
2018-11-08 17:45:39,388 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f558d63 [main]
2018-11-08 17:45:40,694 node.NodeIdentity???????????????????? INFO? - Using jmri-dNQe-cAGbhNiaaacjEYECc-3f558d63 as the JMRI Node identity [AWT-EventQueue-0]
2018-11-08 17:45:41,052 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main]
2018-11-08 17:45:41,705 usbdriver.UsbDriverAdapter??????????? INFO? - NCE USB COM4 port opened at 9600 baud [main]
2018-11-08 17:45:41,923 nce.NceConnectionStatus?????????????? INFO? - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0]
2018-11-08 17:45:43,740 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files\JMRI\ [main]
2018-11-08 17:45:43,743 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\Toshiba laptop\JMRI\My_JMRI_Railroad\ [main]
2018-11-08 17:45:43,749 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\Toshiba laptop\JMRI\My_JMRI_Railroad\ [main]
2018-11-08 17:45:43,760 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\Toshiba laptop\JMRI\ [main]
2018-11-08 17:45:43,761 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\Toshiba laptop\ [main]
2018-11-08 17:45:43,761 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Users\Toshiba laptop\JMRI\My_JMRI_Railroad\ [main]
2018-11-08 17:45:45,050 server.WebServer????????????????????? INFO? - Starting Web Server on port 12080 [WebServer]
2018-11-08 17:45:45,886 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main]
2018-11-08 17:45:46,234 server.WebServer????????????????????? INFO? - Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=4.1} [WebServer]
2018-11-08 17:45:53,104 withrottle.FacelessServer???????????? INFO? - Published ZeroConf service for 'richard's railroad._withrottle._tcp.local.' on 192.168.1.15:12090 [WiThrottleServer]
2018-11-08 17:45:53,105 withrottle.FacelessServer???????????? INFO? - Creating new WiThrottle DeviceServer(socket) on port 12090, waiting for incoming connection... [WiThrottleServer]


Locked Re: Adding new "info" field to the Cars and Loco tab in Oospore

 

¿ªÔÆÌåÓý

That level of modification to the script is trivial. Go to Help->Locations->Open Scripts Location.Make a copy of the file called??and put it somewhere you can easily find it (Maybe your User Files Location).

Open your copy of??in a text editor. You'll find a section like:
# Write the header
# Make sure that the headers match the detail!!
def writeHeader(csvFile):
? ? # Write the header line
? ? # Entries from the Basic roster entry
? ? csvFile.write("RosterID")
? ? csvFile.write("RoadName")
? ? csvFile.write("RoadNumber")
? ? csvFile.write("Manufacturer")
? ? csvFile.write("Owner")
? ? csvFile.write("Model")
? ? csvFile.write("Address")
? ? csvFile.write("Is Long?")
? ? csvFile.write("Speed Limit")
? ? csvFile.write("Comment")
? ? csvFile.write("Decoder Family")
? ? csvFile.write("Decoder Model")
? ? csvFile.write("Decoder Comment")

(Then a bit further down)

? ? ? ? csvFile.write(entry.getComment())
? ? ? ? csvFile.write(entry.getDecoderFamily())
? ? ? ? csvFile.write(entry.getDecoderModel())
? ? ? ? csvFile.write(entry.getDecoderComment())

All you need to do is add extra line(s) to each of those two spots, modified with your custom field name(s). A simple copy and paste of the last line in the list is best because Jython/Python is very fussy about spaces and indentation.

It should look something like this:

? ?csvFile.write("Decoder Model")
? ? csvFile.write("Decoder Comment")
? ? csvFile.write("MyField")

(Then a bit further down)

? ? ? ? csvFile.write(entry.getDecoderModel())
? ? ? ? csvFile.write(entry.getDecoderComment())
? ? ? ? csvFile.write(entry.getAttribute("MyField"))

- Save the modified file.
- In DecoderPro Actions->Run Script... Pick your modified file.
- Wait a while (depending how big your roster is) and it should eventually ask where to store the "roster.csv" file it has created.
- If it doesn't work, upload your modified script to the "Problems Being Worked On" folder in the Files area of this list and someone will debug it for you.

Dave

--?
Dave in Australia

On 8 Nov 2018, at 12:15 PM, Paul Davidson <pdavidson@...> wrote:

Thanks but that is getting in too deep for me. I am not familiar with scripts nor how to implement your suggestion. Perhaps some future JMRI upgrade will address my request to expand the cars file.


Locked Re: Dispatcher - SML - auto-allocation problem

 

Hi Mitchell
As far as I can tell the only thing that I can see is that there is a stopping sensor that never gets fired for 50037 so it rolls on into the crossover. Try removing the stopping sensors from the sections.
I tried emailing you last week but it was returned as undeliverable.
Steve G.


On November 5, 2018 8:28:00 AM EST, "Mitchell via Groups.Io" <mitchell.scott93@...> wrote:
Hi Steve,

TI re-built my SML and sections manually, and the same result occurs.

Did you get a chance to look through my panel file?

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


Locked Re: Adding new "info" field to the Cars and Loco tab in Oospore

 

Dave,
Thanks but that is getting in too deep for me. I am not familiar with scripts nor how to implement your suggestion. Perhaps some future JMRI upgrade will address my request to expand the cars file.
Paul D


Locked Re: System Console not showing block "triggers"?

 

Bob Jacobsen

SensorLog.py - does EXACTLY what I was looking for! Thank you very much!!

Wain


Locked Re: System Console not showing block "triggers"?

 

Dave -?

That is the exact message I was referring to.? I understand what Steve Young is saying about the massive amount of text being dumped into the system console should I turn that feature on, so I am going to look into the suggestion by?Bob Jacobsen (

Thanks all who replied!? It's been a while since I've put in new track with sensors, especially when no one documented which sensor went with which section of track :P

Regards,'
Wain


Locked Re: Adding new "info" field to the Cars and Loco tab in Oospore

 

¿ªÔÆÌåÓý

Make a custom version of??(distributed in the Scripts Location), adding your own custom fields.

It will create a CSV file for import into Excel.

--?
Dave in Australia

On 8 Nov 2018, at 9:53 AM, Paul Davidson <pdavidson@...> wrote:

I could not get it to export to a Excel sheet.


Locked Re: Adding new "info" field to the Cars and Loco tab in Oospore

 

Dave,
I got that to work and could use a space in the data field but not in the column heading. Once a new column was created, I could insert new data for any roster entry directly in the new column. Overall, it is a bit clunky and has very limited flexibility. I could not get it to export to a Excel sheet.
The theory is great....any user could add any columns they wanted without messing up any JMRI activity. However, it would need to be a bit more user friendly and have a way to export and/or print out the file. Would need some menu options that were more straight forward about adding columns.
Paul D


Locked Re: Adding new "info" field to the Cars and Loco tab in Oospore

 

Select any roster entry. Using the "Labels & Media" button* you will find a Roster Media pane.

In the Custom Roster Attributes text window, select the "..." Name in the last line. Type in your new attribute name and a Value. "Save to Roster" and quit JMRI.

Next time you open JMRI, there will be a new Column you can choose to display or not (right-click on the headings row).

* Preferences->Roster->Programmer->Format: Advanced will make the Roster Media pane visible every time you open a roster entry.

I can't find a way to embed a space in the Name field (two word heading).
--
Dave in Australia

On 8 Nov 2018, at 8:33 AM, Paul Davidson <pdavidson@...> wrote:

Sounds like it might work. I am running version 4.13.4 but I do not find any menu option to add columns under DecoderPro. How is it done? I would like to try that out and experiment with it.


Locked Re: Adding new "info" field to the Cars and Loco tab in Oospore

 

Bob,
Sounds like it might work. I am running version 4.13.4 but I do not find any menu option to add columns under DecoderPro.? How is it done? I would like to try that out and experiment with it.
Paul D


Locked Re: Injecting a delay between turnout operations

 

I have had this problem with some Digikeijs decoders that cannot handle having several commands sent at full speed.

In the turnout table you can set how many times a command is given and the interval between them with the Edit Auto setting at the far right.?
Click on edit auto set a time and number of tries, give it a name and click ok. For each different time you need a different name. Once set this name can be selected for other decoders in the drop down to the left of Edit Auto. Note that must NOT be set to OFF when setting a time in Auto Edit, there are some default times already set that can be used.

For each decoder output I've set a different delay, with 50ms between them, i.e 100ms for the 1st, 150ms for the 2nd, 200ms for the 3rd and two tries.
This works 99% of the time for me, but experiment if it doesn't for you. Although thinking about it now, times which do not overlap would be better as the second 100ms will be at the same time as the first 200ms etc. and might explain the odd missed command. Note each decoder can have the same delays as the problem is in the decoder.
If the turnouts are controlled through Logix you can set a delay before an output signal is set, but that has to be done for every Logix for each output command, where as the turnout table needs doing once per output.

Signals changing before the route being set need interlocking between turnouts and signals. If you have feedback from the turnouts I use Logix to wait until the turnout is in position before changing signals.?
With no feedback I delay the signals until the route selection has happened and then put a delay in the Logix output commands for the signals.
This works well on our modular layout where both methods are used.

Mike Ruby


Locked Re: System Console not showing block "triggers"?

 

Wain,

Are you referring to the "Sensor ACTIVE came out of nowhere, no neighbors active for block" message?

If so, that appears to have been changed to a ¡°debug¡± message with PR #4928.

The method that Steve Young posted will make it visible.

Dave Sand

On Nov 7, 2018, at 2:05 PM, Wain Schroeder <niaw1@...> wrote:

JMRI (Panel Pro) used to log an entry as a block detected activity, or the deactivation of a block. This was very useful when attempting to trouble should a block detection problem arise, of block identification was being done on a new section of track. I just noticed that these messages are no longer being registered in the system console log. Has this "feature" been removed from JMRI or just moved to anther log file somewhere?

Using Panel Pro 4.12 +Rb6a9bb1 with Java version 1.8.0_191 on Win10.

Thanks in advance,

Wain Schroeder

Clinton Central Model Railroad


Locked Re: System Console not showing block "triggers"?

 

Wain,

It only would show when a block went active and no other block connecting to
it were already active. This would point to errors when there were gaps in
the blocks.

Last I looked, it was still doing this.

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


Locked Re: BD20 block detection

 

On Wed, Nov 7, 2018 at 12:12 PM, Dave Heap wrote:
Go to Preferences->Defaults. It's almost certain one or more items will have "Infernal" selected instead of NCE! This will be the cause of your woes.
That was it, thanks!


Locked Re: System Console not showing block "triggers"?

 

Hi Wain,

In your main JMRI program folder find default.lcf
Open this file with a text editor and at the bottom add?
log4j.category.jmri.Block=DEBUG

Your log files will grow at a massive rate so comment out when you're done,
if this was active by default it'd be difficult to see the wood from the trees in the logs,

Steve.