开云体育

Date

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


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

 

Google?USBDeview? from Nirsoft.?
It's free software that allows you really manage your USB ports/devices better than Windows.?


Locked Re: Auto routing a reverse loop

Robert Schworm
 

This sounds like a reasonable approach for a reversing Loop Schumacher the switch using Logix and blocks.? However how do you match reversing the polarity of the TCC signal on the rails?


Locked PR4 configuring for Standalone LocoNet #pr4 #loconet

 

I need some help please, not sure if this is a digitrax question of JMRI. ?I have an MRC Command station which is connected via a wireless dongle to JMRI, in Windows 10. This controls the Points/Turnouts from PanelPro.??The connection is on Com 3, all good.

I then installed a PR4 and configured it to Com port 4 with a plan then to configure a standalone LocoNet with BDL168s for block detection.?

I then upgraded JMRI to 4.18.??after this I now find the PR4 is on Com port 3 same as the MRC Wireless interface.??If I connect the PR4 before booting up then I get a conflict message. If I connect it up after JMRI has started then it shows as Com 3.??I cannot change it.

I have uninstalled the Sound loader S/W, disabled the PR4, removed it from the Device Manager which was also showing it as Com3.

Any ideas please.

I also noted that I can’t configure the PR4 it correctly. In JMRI. It only allows me to select under command station Type: “PR4 Standalone Programmer”, there is no option for “Stand alone Loco Net” I am hoping that is related to the first problem?


Locked Re: Classification yards #operationspro

 

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 Re: Ops: problems importing cars #operationspro

 

PS
thanks Dan B., Ken C., Greg B., and others for the help years ago on the conversion of my database
Matt Greenwood


Locked Re: Ops: problems importing cars #operationspro

 

It has been several years, but if I remember right when my data base was imported from RailOp to JMRI it was done through Note Pad or Onenote or something simular. We were importing over 4000 cars the problem was I had over 200 cars that would not import it was not caused by JMRI it was because I had extremly minor errors that comma dilimeted would not accept fixed the errors and everything worked out beautiful ever since
Matt Greenwood


Locked Re: Win XP and JMRI 4.18 #windows-xp #4-18

 

Java has been updated to 151 per the recommendation on the JMRI help page for Windows XP.

Dave Sand


----- Original message -----
Subject: Re: [jmriusers] Win XP and JMRI 4.18
Date: Sunday, May 10, 2020 8:57 PM

Interesting.
Did you update the java?


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

 

It seemed to do so automatically I see no errors on the pages.


On Mon, May 11, 2020, 10:22 AM whmvd <vandoornw@...> wrote:
Yes, you should care about the errors on reading, because if you let them be, your roster will not have a correct idea of the data that's in the decoder. Just re-read the failed ones until OK.

Wouter

On Mon, 11 May 2020 at 12:55, Jamos Bond <jambri@...> wrote:
thanks, picked steam this time instead of rolling thunder and it shows all the function names on read. should I care about the errors on reading?


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

 

Yes, you should care about the errors on reading, because if you let them be, your roster will not have a correct idea of the data that's in the decoder. Just re-read the failed ones until OK.

Wouter


On Mon, 11 May 2020 at 12:55, Jamos Bond <jambri@...> wrote:
thanks, picked steam this time instead of rolling thunder and it shows all the function names on read. should I care about the errors on reading?


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

 

The problem from JMRI's point of view is that the very reason for the different decoder types is that they do not use the same settings. It's completely self-defeating to think of it like that. If there is a way of migrating pictures, then it would be good if someone else chimes in. But I don't think that in itself is much work...

Wouter


On Mon, 11 May 2020 at 12:32, Jamos Bond <jambri@...> wrote:
Yes i use my NCE cab to read all my sheets. I wish i could dup it and it ask for a decoder type so I do not have to type in all the program data and pics.


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

 

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.

Bob

> On May 11, 2020, at 6:50 AM, Jamos Bond <jambri@...> wrote:
>
> Added screen shot below
> /g/jmriusers/photo/246752/0?p=Created,,,20,2,0,0
> _._,_._,_

--
Bob Jacobsen
rgj1927@...







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

 

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.

Bob

On May 11, 2020, at 6:50 AM, Jamos Bond <jambri@...> wrote:

Added screen shot below
/g/jmriusers/photo/246752/0?p=Created,,,20,2,0,0
_._,_._,_
--
Bob Jacobsen
rgj1927@...