开云体育

Date

Locked Re: Edit Turnout window does not save the Continuing Route Turnout State #layouteditor

 

I found it in my panel file and was able to fix it, but if you could please address this in the next version.

Thanks!

On Tue, May 12, 2020 at 3:36 AM Keith Ruberson via <keithruberson=[email protected]> wrote:
Gents,

It appears in JMRI version 4.19.6 that Edit Turnout window does not save the Continuing Route Turnout State when done is selected. I would change it in the xml file if i knew where to look.

Thanks,

Keith Ruberson


Locked Edit Turnout window does not save the Continuing Route Turnout State #layouteditor

 

Gents,

It appears in JMRI version 4.19.6 that Edit Turnout window does not save the Continuing Route Turnout State when done is selected. I would change it in the xml file if i knew where to look.

Thanks,

Keith Ruberson


Locked Re: Error on XML File should I be concerned?

 

开云体育

James,

On 12 May 2020, at 9:45 AM, Dave Heap via <dgheap@...> wrote:

In 2019 I changed functionLabels and soundlabels from fixed-length arrays to HashMaps to allow for planned expansions. But I forgot to update "locomotive-config.xsd" to reflect the changes.

As a result, direct XML validation of roster.xml will fail if any ESU Generation 5 decoders are in the current roster. But everything works fine.

Thanks for finding this. A fix is in the works at?.

Dave in Australia


Locked Re: Can I change the decoder type after I create a entry

 

On Mon, May 11, 2020 at 10:23 AM, Jamos Bond wrote:
It seemed to do so automatically I see no errors on the pages.
Errors are not? a required action or the rule. Sometimes things go right? and the full CV page is read. ?
The more complex the decoder, the more possibility of? a ' fail to read'

Marc?


Locked Re: Can I change the decoder type after I create a entry

 

On Mon, May 11, 2020 at 07:02 AM, Jamos Bond wrote:
I have another BLI Heavy Pacific I used rolling thunder (prolly should of used steam) and all function names are blank on throttle. They do have the same functions is there a way to change the decoder type?
You simply used the wrong definition.

Rolling Thunder definition does not have throttle function names simply because it does not use them.? This definition is to be used? to setup the receiver box once
it is attached to the DCC system using the provided cable for the DCC signal.? Nothing to do with the engine.

Rolling Thunder related CV's as they apply to the Paragon3 decoders (Diesel, Steam, Steam w/depleting coal, smoke)? are in the Paragon3 definition.

That Rolling Thunder definition should indicate? RECEIVER ONLY? Much confusion as it is.? Not the first time people get it wrong.

Marc


Locked yard vs classification #operationspro

 

How does OpPro differently use yard tracks and classification tracks?
Michael Boyle


Locked Re: Getting an Error 308 on new setup. #digitrax #pr4

 

Royce,

In addition to Marc's suggestion to update to a newer version of JMRI, if you're trying to use the PR4 as a stand-alone programmer you should get rid of the PTB-100. It's not needed with the PR4 and anecdotal evidence indicates it actually prevents the PR4 from reading some makes/models of sound decoders.

HTH,
Steve
"Breezlys"


Locked Re: Getting an Error 308 on new setup. #digitrax #pr4

 

JMRI 3.10 is rather dated.

The Digitrax PR4, contrary o the PR3, prefers Direct Byte mode while the PR3 worked when in Paged mode.? Changes were added to later versions of JMRI regarding this preference.

So I suggest you try and use the PR4 in Direct Byte.

Marc


Locked Re: Classification yards #operationspro

 

The car has to be on a C/I track for the restriction to be in place.? Look at your C/I tracks, and those cars could have restrictions on them. Again, don't use them and you won't have an issue.

Dan?


Locked Re: Error on XML File should I be concerned?

 

Bob,

On 12 May 2020, at 9:00 AM, Dave Heap via groups.io <dgheap@...> wrote:

I'm not seeing this problem at all with HEAD of Master.

Sound Labels 33 and 34 are valid in the code, needed for the decoder definition and are loading fine for me. I can't see where the schema error is happening.
Found the problem:

In 2019 I changed functionLabels and soundlabels from fixed-length arrays to HashMaps to allow for planned expansions. But I forgot to update "locomotive-config.xsd" to reflect the changes.

As a result, direct XML validation of roster.xml will fail if any ESU Generation 5 decoders are in the current roster. But everything works fine.

I'll push through a fix.

Dave in Australia


Locked Re: Error on XML File should I be concerned?

 

开云体育

James and Bob,

On 12 May 2020, at 12:19 AM, Jamos Bond <jambri@...> wrote:

I'm worried if I upgrade jmri with that error I would get a blank roster due to that error. Can't I just modify the XML file to remove that entry?

On Mon, May 11, 2020, 10:16 AM Bob Jacobsen <rgj1927@...> wrote:
Thanks.? It’s saying that the num field in the sound label description can only go to 28, and it found 33? (not a particularly clear message though).

That check happens as the file is read, before the rest of the code processes it.? If 33 is actually something that the rest of the code can handle, you can run the jython/TurnOffXmlValidation.py script in the JMRI startup options. That’ll turn off this check.

I don’t know whether that 33 value will cause downstream problems, though.

I'm not seeing this problem at all with HEAD of Master.

Sound Labels 33 and 34 are valid in the code, needed for the decoder definition and are loading fine for me. I can't see where the schema error is happening.

James, what version on JMRI do you have?

Dave in Australia


Locked Re: Classification yards #operationspro

 

开云体育

Phil

By any chance do you know how jmri marks a car to prevent it from being picked up by a train using the same route that dropped it off. ?Is there a way for me to examine my car database ?or other place to see which are so restricted.

Tony




On May 11, 2020, at 11:51 AM, Phil in gorgeous Young Harris via groups.io <philabernathy@...> wrote:

?Identical content (or change anything you want), but a different name.? JMRI will not allow you to have two Routes with the same name.

Phil


Locked Getting an Error 308 on new setup. #digitrax #pr4

 

Afternoon,

?

I'm just setting up JMRI on my layout, (N Gauge-not that it matters.)? My system is as follows:

?

Zephyr 50

PR4

PTB-100

Jmri Version 3.10.1-r28327

??? Java 1.6.0_37

Configuration

??? Digitrax

??? LocoNet PR3

??? Com4???

??? PR3 Stand-alone

?

PR4 has a blinking Green, Solid Red and Blue indicators

PTB-100 has a steady Green and after trying to read from a decoder I see a flashing Yellow

?

Problem, keep getting an Error 308

?

Have tried a Soundtraxx Tsunami installed in an Atlas 2-8-8-2 and an Atlas S2 with ESU Factory installed.

Both failed.

?

Any Ideas what my issue is?

?

Thanks

?

Best Regards

Royce Lacey

804-400-5766

?


Locked Re: List of cars with location unknown #operationspro

 

Go to locations pick your location edit location (mine is called missing cars) edit track, tools, show cars, that should give you the list you want
Hope this helps
Matt Greenwood


Locked List of cars with location unknown #operationspro

 

I would like to produce a list of cars that I have flagged as "Location Unknown" without printing the entire car roster.
Your help, please.

Ken


Locked Re: Ops: problems importing cars #operationspro

 

Thank you Dan,

Certainly the wrong rabbit hole was what i followed.

My apologies.

Cliff


Locked Re: Ops: problems importing cars #operationspro

 

Maybe you miss understood what I said, all JMRI versions before 3 months ago could read a variable length input field for importing car and locos.? One of our developers broke it by mistake with the goal of making the code cleaner and more readable, now fixed.? Fix will be in version 4.19.7.

Dan


Locked Re: PR4 configuring for Standalone LocoNet #pr4 #loconet

 

The BDL168 can 'terminate' a stand-alone LocoNet.

Option Switch 11 (Thrown) -- Allow this BDL168 to be the master.
Option Switch 12 (Thrown) -- Allow this BDL168 to terminate LocoNet.





Ross

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of billybob experimenter
Sent: Monday, May 11, 2020 2:53 PM
To: [email protected]
Subject: Re: [jmriusers] PR4 configuring for Standalone LocoNet

Howard,

The PR4 itself does not have a "Standalone LocoNet interface" mode feature, so JMRI does not give a PR4 "Standalone LocoNet" configuration.
But you _can_ cheat.

You will need to carefully set up JMRI for your Standalone LocoNet. Create a JMRI connection, and configure it as a PR4, and "lie" about the command station type -simply define it as any of the command station types. Make sure that your connection's "Defaults" settings (i.e. Edit->Preferences->Defaults) do _not_ select the LocoNet connection for "Throttles", "Power Control", "command station", "service programmer", "Ops Mode Programmer" or "Consists".

Then don't bother to use any of the JMRI operations via the LocoNet connection which rely upon a command station - "slot monitor", LocoNet-based throttles, "configure command station", and probably some others which escape me at the moment. You don't actually have a command station on your standalone LocoNet, so those operations won't do anything useful.

(All of this assumes that you have resolved the hardware-related issues associated with a Standalone LocoNet. These are described at .

At a minimum, you will need to provide some sort of power on the RailSync signals on the LocoNet cable. The PR4 will NOT be able to communicate on LocoNet without this external power source. See for information on providing this power source. If you are _NOT_ using any LocoNet device which requires a valid low-power version of the DCC track signal on RailSync, you simply need to provide an appropriate DC voltage. This is described at .

If you are using a BDL16x-series device, or any other device which _requires_ an active, low-power version of the DCC track signal for proper operation, then you cannot simply power the RailSync wires with a DC power supply. Instead, follow the information at . Perhaps the recommendations for connecting to the NCE booster bus found there can be used for your DCC system. Someone with knowledge of that DCC system will have to give advice on that aspect.

How do you know if you can get by with a simple DC power supply or if you will need the low-power DCC track signal? See the table at the beginning of the "Hardware Considerations" section, found at .

And, you will need to provide "LocoNet Data Signal Termination". See . If you happen to be using any of several different LocoNet device types, you may find that you can configure one of those devices to provide LocoNet Data Signal Termination. If you don't get this feature for free with one of your devices, you can purchase one of the other devices listed in the web link. That page also includes a link to a "do-it-yourself" version if you are handy with small electronic project assembly.

COM port numbering issues in Windows are an entirely different challenge. I will not attempt to take on that battle.

Regards,
Billybob


Locked Re: Ops: problems importing cars #operationspro

 

Variable length data records in CSV files are somewhat common, if not universally so. I am not a Java programmer but I have been involved with computers and software for longer than I would like to admit.

It is likely that the major changes involving the change to the JAVA CSV library now distributed with JMRI, effective with version 4.19.3 (as of 2020-01-28) has caused some problems in transition.

In a script that I wrote for Sam that use the previously available library, variable length data records were allowed. Non-trivial changes had to be made to accommodate the new library.

On Sun, May 10, 2020 at 02:38 PM, Dan Boudreau wrote:

The code has been modified by one of the other JMRI programmers, and is a bit broken.? I found that I could import his files if I added 10 extra commas to each line.? The original code accepted variable length input fields, but now the code is hardwired to search and expect 18 fields.

But it took me several hours to find and verify that any legacy data files with variable length data records, could still be read with the modified script.

In part, some of the original script looked like:

import com.csvreader        # Allow us to read CSV formatted text files
# http://javacsv.sourceforge.net/com/csvreader/CsvReader.html 
~ ~ ~
class ManageTurnoutListeners(jmri.jmrit.automat.AbstractAutomaton):
~ ~ ~
    def ReadTurnoutFile ( 
                self,
                turnoutFileName
            ) :
        # https://docs.oracle.com/javase/7/docs/api/java/io/File.html
        tempInputFile = java.io.File(turnoutFileName)
~ ~ ~
        # Check if file exists
        if tempInputFile.exists() :
            # It does, so load it
            tempCsvFileReader = com.csvreader.CsvReader( turnoutFileName )

            # Read the headers
            tempCsvFileReader.readHeaders()
~ ~ ~
            while (tempCsvFileReader.readRecord()):

                # Read the record details
                ColumnCount = tempCsvFileReader.getColumnCount()

But the similar snippet in the revised script indicates what eventuality passed for the no longer available getColumnCount() function.

import org.apache.commons.csv   # Read CSV formatted text files  Updated for 4.19.3ish
###!    http://commons.apache.org/proper/commons-csv/user-guide.html
~ ~ ~
class ManageTurnoutListeners(jmri.jmrit.automat.AbstractAutomaton):
~ ~ ~
    def ReadTurnoutFile ( 
                self,
                turnoutFileName
            ) :
        # https://docs.oracle.com/javase/7/docs/api/java/io/File.html
        tempInputFile = java.io.File(turnoutFileName)
~ ~ ~
        # Check if file exists
        if tempInputFile.exists() :
            # It does, so load it
            ###!   https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVParser.html 
            tempCSVParser = org.apache.commons.csv.CSVParser.parse(
                        tempInputFile, 
                        java.nio.charset.StandardCharsets.UTF_8, 
                        org.apache.commons.csv.CSVFormat.DEFAULT.withFirstRecordAsHeader().withCommentMarker('#')
                    )
~ ~ ~
            ###! tempCsvFileReader.readHeaders()
            ###! https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVRecord.html
            for record in tempCSVParser.getRecords():
                # Type ( record ) == List
~ ~ ~
                # Read the record details
                ###! ColumnCount = tempCsvFileReader.getColumnCount()
                ColumnCount = record.size()

As is evident, with the org.apache.commons.csv library, the script code that eventually did provide the record column count was a bit more convoluted than I would have preferred.

Perhaps some similar revision to the Java code that reads CSV files could also be considered.

Both versions of the script were uploaded to either the Files/ProblemsBeingWorkedOn or else the Files/Script Examples folder at one time but are not there now. If requested, a new copy could be uploaded. The revised script contains a lot of comments as to what was changed for the new library.

This note got too long.

Cliff in Baja SoCal


Locked Re: PR4 configuring for Standalone LocoNet #pr4 #loconet

 

Howard,

The PR4 itself does not have a "Standalone LocoNet interface" mode feature, so JMRI does not give a PR4 "Standalone LocoNet" configuration.
But you _can_ cheat.

You will need to carefully set up JMRI for your Standalone LocoNet. Create a JMRI connection, and configure it as a PR4, and "lie" about the command station type -simply define it as any of the command station types. Make sure that your connection's "Defaults" settings (i.e. Edit->Preferences->Defaults) do _not_ select the LocoNet connection for "Throttles", "Power Control", "command station", "service programmer", "Ops Mode Programmer" or "Consists".

Then don't bother to use any of the JMRI operations via the LocoNet connection which rely upon a command station - "slot monitor", LocoNet-based throttles, "configure command station", and probably some others which escape me at the moment. You don't actually have a command station on your standalone LocoNet, so those operations won't do anything useful.

(All of this assumes that you have resolved the hardware-related issues associated with a Standalone LocoNet. These are described at .

At a minimum, you will need to provide some sort of power on the RailSync signals on the LocoNet cable. The PR4 will NOT be able to communicate on LocoNet without this external power source. See for information on providing this power source. If you are _NOT_ using any LocoNet device which requires a valid low-power version of the DCC track signal on RailSync, you simply need to provide an appropriate DC voltage. This is described at .

If you are using a BDL16x-series device, or any other device which _requires_ an active, low-power version of the DCC track signal for proper operation, then you cannot simply power the RailSync wires with a DC power supply. Instead, follow the information at . Perhaps the recommendations for connecting to the NCE booster bus found there can be used for your DCC system. Someone with knowledge of that DCC system will have to give advice on that aspect.

How do you know if you can get by with a simple DC power supply or if you will need the low-power DCC track signal? See the table at the beginning of the "Hardware Considerations" section, found at .

And, you will need to provide "LocoNet Data Signal Termination". See . If you happen to be using any of several different LocoNet device types, you may find that you can configure one of those devices to provide LocoNet Data Signal Termination. If you don't get this feature for free with one of your devices, you can purchase one of the other devices listed in the web link. That page also includes a link to a "do-it-yourself" version if you are handy with small electronic project assembly.

COM port numbering issues in Windows are an entirely different challenge. I will not attempt to take on that battle.

Regards,
Billybob