¿ªÔÆÌåÓý

Date

Locked Re: Probem with feedback from MGP sensor.

 

Anders and Bosse,

If some of the expected LocoNet messages do not appear, then there is nothing that I can contribute to help solve this problem. If it can be shown that the expected LocoNet messages are present but JMRI is not acting upon them properly, then I may be able to contribute.

Regards,
Bob


Locked Re: Probem with feedback from MGP sensor.

 

Hej Billybob,

No, the problem is not about the Turnout messages around address 1xx. The turnout feedback is OK.
The problems are with track occupancy sensor message with addresses 2xx (and 4xx).

If you look in the log from the "loconet interface connection" (Monitor LocoNet JMRI),
there are a lot of sensor messages.

The next log, "Monitor Z21LocoNet JMRI",? are for the same messages but for the Z21-JMRI connection, but there the Sensor messages are not visible!
These are logs from the same loconet but coming to JMRI through two different interfaces.

Everything looks as expected when the messages came through the "loconet interface connection" but not when they came through the Z21-JMRI connection.
Somewhere between LocoNet and the JMRI log, the sensor messages for 2xx are lost.
These are perfectly normal LocoNet sensor messages as in "[B2 64 60 49]? Sensor L2S202 () is Low."

mvh/anders



Den 2019-08-05 kl. 16:03, skrev billybob experimenter:

Bosse,

Please confirm that JMRI is having problems with the L2T112 item? That would make sense to me, as JMRI sees L2T112 as a LocoNet "turnout" item (as specified by the "T" in the system name). LocoNet Turnout items cannot be interpreted by JMRI as "Sensor" items, and JMRI cannot interpret LocoNet turnout messages for the purpose of receiving block occupancy information.

If you are indeed having difficulties with L2T112, then the solution will likely be to configure the MGP device so that the input that generates the L2T112 message is using different LocoNet messaging and generating L2Snnn messaging. How to re-configure the device will be very specific to the MGP device, and I have no direct experience in reconfiguring those devices.

Note that LocoNet devices sometimes "pair" two inputs for the purposes of reporting "exact" feedback of turnout position. When using LocoNet "Exact" feedback, each of two paried inputs is connected to a "microswitch", and each of the switches is activated physically by opposite ends of the turnout point throw. A specific type of LocoNet messaging is used when "exact" feedback is configured.

If you configure the LocoNet device to report via "exact" feedback messaging but are using only one of the inputs (as "single-sensor" feedback reporting), then the other input of the pair will generally _also_ use that messaging type. If you use that other input for some other purpose, like occupancy detection, you will likely get the "exact" feedback message type.

Many software packages make it difficult to make use of information found in "exact" feedback messages for purposes other than turnout position feedback. JMRI is one of those packages which do not (easily) allow interpretation of LocoNet "exact" turnout messaging for anything other than turnout position reporting.

If you are implementing "single-sensor" turnout position feedback using "exact" turnout position LocoNet messaging, then it would be better to configure the MGP so that the inputs are treated as "general sensors", and simply configure JMRI's L2Txxx turnout's feedback to be sensitive to one of the "L2Syyy" messages. With that configuration, the "L2Syyy" would be for turnout position feedback and "L2S(yyy+1)" could be used for other purposes, such as a block occupancy input.

With your MGP device properly configured to report via general sensor LocoNet messaging, it is necessary to configure JMRI properly. Any JMRI turnout which uses two microswitches to report "exact" feedback via general sensor LocoNet messaging needs to be configured for JMRI "two sensor" feedback. Any JMRI turnout which uses one microswitche to report "exact" feedback via general sensor LocoNet messaging needs to be configured for JMRI "one sensor" feedback.

Regards,
Billybob






Locked Re: Probem with feedback from MGP sensor.

 

Bosse,

Please confirm that JMRI is having problems with the L2T112 item? That would make sense to me, as JMRI sees L2T112 as a LocoNet "turnout" item (as specified by the "T" in the system name). LocoNet Turnout items cannot be interpreted by JMRI as "Sensor" items, and JMRI cannot interpret LocoNet turnout messages for the purpose of receiving block occupancy information.

If you are indeed having difficulties with L2T112, then the solution will likely be to configure the MGP device so that the input that generates the L2T112 message is using different LocoNet messaging and generating L2Snnn messaging. How to re-configure the device will be very specific to the MGP device, and I have no direct experience in reconfiguring those devices.

Note that LocoNet devices sometimes "pair" two inputs for the purposes of reporting "exact" feedback of turnout position. When using LocoNet "Exact" feedback, each of two paried inputs is connected to a "microswitch", and each of the switches is activated physically by opposite ends of the turnout point throw. A specific type of LocoNet messaging is used when "exact" feedback is configured.

If you configure the LocoNet device to report via "exact" feedback messaging but are using only one of the inputs (as "single-sensor" feedback reporting), then the other input of the pair will generally _also_ use that messaging type. If you use that other input for some other purpose, like occupancy detection, you will likely get the "exact" feedback message type.

Many software packages make it difficult to make use of information found in "exact" feedback messages for purposes other than turnout position feedback. JMRI is one of those packages which do not (easily) allow interpretation of LocoNet "exact" turnout messaging for anything other than turnout position reporting.

If you are implementing "single-sensor" turnout position feedback using "exact" turnout position LocoNet messaging, then it would be better to configure the MGP so that the inputs are treated as "general sensors", and simply configure JMRI's L2Txxx turnout's feedback to be sensitive to one of the "L2Syyy" messages. With that configuration, the "L2Syyy" would be for turnout position feedback and "L2S(yyy+1)" could be used for other purposes, such as a block occupancy input.

With your MGP device properly configured to report via general sensor LocoNet messaging, it is necessary to configure JMRI properly. Any JMRI turnout which uses two microswitches to report "exact" feedback via general sensor LocoNet messaging needs to be configured for JMRI "two sensor" feedback. Any JMRI turnout which uses one microswitche to report "exact" feedback via general sensor LocoNet messaging needs to be configured for JMRI "one sensor" feedback.

Regards,
Billybob


Locked Re: Probem with feedback from MGP sensor.

 

Hi Billybob
You can call me Bosse.
?
My setting is Roco, Roco Z21 in Preferences now I have added Digitrax, BT Locobridge
and goes towards the bluetooth interface to MGP servers and sensors on the advice of Anders and then it works.
?
I send with 3 different logs from JMRI that are taken at the same time?
when a locomotive passes the blocks.
?
Regards Bosse
?
?
Monitor LocoNet JMRI
?
13:24:24.252: [A0 02 24 79]? Set speed of loco in slot 2 to 36.
13:24:26.008: [B2 65 50 78]? Sensor L2S203 (B1-B2) is High.? (BDL16 # 13, DS11; DS54/DS64/SE8c # 26, AuxB/A2/DS03).
13:24:26.971: [B2 64 60 49]? Sensor L2S202 (2-East) is Low.? (BDL16 # 13, DS10; DS54/DS64/SE8c # 26, SwiA/S1/DS02).
13:24:36.486: [B2 48 51 54]? Sensor L2S401 (2-West) is High.? (BDL16 # 26, DS1; DS54/DS64 # 51, AuxA/A1).
13:24:37.115: [B2 65 40 68]? Sensor L2S203 (B1-B2) is Low.? (BDL16 # 13, DS11; DS54/DS64/SE8c # 26, AuxB/A2/DS03).
13:24:41.149: [B2 65 70 58]? Sensor L2S204 (G1-G2) is High.? (BDL16 # 13, DS12; DS54/DS64/SE8c # 26, SwiB/S2/DS04).
13:24:41.149: [B1 6F 70 51]? Turnout L2T112 () Switch input is Closed (input off).
13:24:41.701: [B2 48 41 44]? Sensor L2S401 (2-West) is Low.? (BDL16 # 26, DS1; DS54/DS64 # 51, AuxA/A1).
13:24:47.750: [B2 64 70 59]? Sensor L2S202 (2-East) is High.? (BDL16 # 13, DS10; DS54/DS64/SE8c # 26, SwiA/S1/DS02).
13:24:48.170: [B2 65 60 48]? Sensor L2S204 (G1-G2) is Low.? (BDL16 # 13, DS12; DS54/DS64/SE8c # 26, SwiB/S2/DS04).
13:24:53.953: [B2 65 50 78]? Sensor L2S203 (B1-B2) is High.? (BDL16 # 13, DS11; DS54/DS64/SE8c # 26, AuxB/A2/DS03).
13:24:54.495: [B2 64 60 49]? Sensor L2S202 (2-East) is Low.? (BDL16 # 13, DS10; DS54/DS64/SE8c # 26, SwiA/S1/DS02).
13:25:04.006: [B2 48 51 54]? Sensor L2S401 (2-West) is High.? (BDL16 # 26, DS1; DS54/DS64 # 51, AuxA/A1).
13:25:04.575: [B2 65 40 68]? Sensor L2S203 (B1-B2) is Low.? (BDL16 # 13, DS11; DS54/DS64/SE8c # 26, AuxB/A2/DS03).
13:25:08.651: [B2 65 70 58]? Sensor L2S204 (G1-G2) is High.? (BDL16 # 13, DS12; DS54/DS64/SE8c # 26, SwiB/S2/DS04).
13:25:08.651: [B1 6F 70 51]? Turnout L2T112 () Switch input is Closed (input off).
13:25:09.192: [B2 48 41 44]? Sensor L2S401 (2-West) is Low.? (BDL16 # 26, DS1; DS54/DS64 # 51, AuxA/A1).
13:25:15.218: [B2 64 70 59]? Sensor L2S202 (2-East) is High.? (BDL16 # 13, DS10; DS54/DS64/SE8c # 26, SwiA/S1/DS02).
13:25:15.658: [B2 65 60 48]? Sensor L2S204 (G1-G2) is Low.? (BDL16 # 13, DS12; DS54/DS64/SE8c # 26, SwiB/S2/DS04).
13:25:21.429: [B2 65 50 78]? Sensor L2S203 (B1-B2) is High.? (BDL16 # 13, DS11; DS54/DS64/SE8c # 26, AuxB/A2/DS03).
13:25:21.969: [B2 64 60 49]? Sensor L2S202 (2-East) is Low.? (BDL16 # 13, DS10; DS54/DS64/SE8c # 26, SwiA/S1/DS02).
13:25:31.509: [B2 48 51 54]? Sensor L2S401 (2-West) is High.? (BDL16 # 26, DS1; DS54/DS64 # 51, AuxA/A1).
13:25:32.047: [B2 65 40 68]? Sensor L2S203 (B1-B2) is Low.? (BDL16 # 13, DS11; DS54/DS64/SE8c # 26, AuxB/A2/DS03).
13:25:33.619: [A0 02 22 7F]? Set speed of loco in slot 2 to 34.
13:25:33.732: [A0 02 0B 56]? Set speed of loco in slot 2 to 11.
13:25:33.828: [A0 02 00 5D]? Set speed of loco in slot 2 to 0.
13:25:33.952: [A0 02 00 5D]? Set speed of loco in slot 2 to 0.
?
Monitor Z21LocoNet JMRI
?
13:24:24.506: [A0 02 24 79]? Set speed of loco in slot 2 to 36.
13:24:41.513: [B1 6F 70 51]? Turnout LT112 () Switch input is Closed (input off).
13:25:09.528: [B1 6F 70 51]? Turnout LT112 () Switch input is Closed (input off).
13:25:34.539: [A0 02 22 7F]? Set speed of loco in slot 2 to 34.
13:25:34.539: [A0 02 0B 56]? Set speed of loco in slot 2 to 11.
13:25:34.539: [A0 02 00 5D]? Set speed of loco in slot 2 to 0.
13:25:34.539: [A0 02 00 5D]? Set speed of loco in slot 2 to 0.
?
Monitor XpressNet JMRI
?
13:24:24.610: [EF 00 03 04 24 00 00 00 00 CC 00 00 00 00 00 00 00]? ?EF 00 03 04 24 00 00 00 00 CC 00 00 00 00 00 00 00
13:25:33.635: [EF 00 03 04 22 00 00 00 00 CA 00 00 00 00 00 00 00]? ?EF 00 03 04 22 00 00 00 00 CA 00 00 00 00 00 00 00
13:25:34.636: [EF 00 03 04 0B 00 00 00 00 E3 00 00 00 00 00 00 00]? ?EF 00 03 04 0B 00 00 00 00 E3 00 00 00 00 00 00 00
13:25:34.638: [EF 00 03 04 00 00 00 00 00 E8 00 00 00 00 00 00 00]? ?EF 00 03 04 00 00 00 00 00 E8 00 00 00 00 00 00 00
13:25:34.638: [EF 00 03 04 00 00 00 00 00 E8 00 00 00 00 00 00 00]? ?EF 00 03 04 00 00 00 00 00 E8 00 00 00 00 00 00 00
?


Locked Re: DCS52, Loksound Select, JMRI Eror 308 during identify decoder

 

¿ªÔÆÌåÓý

Dave,


Thanks, I will verify this tonight, and see how it goes. Hopefully all will be resolved once I am in Direct Mode.


Regards


James

On August 4, 2019 at 10:51 PM Dave Heap <dgheap@...> wrote:

James,
?
?

On 5 Aug 2019, at 12:10 PM, James Koretsky < jameskoretsky@...> wrote:

Can CV's be read in Direct Mode, and is this true for all decoder brands, trying to idiot proof how to do this, without having to switch between paged and direct mode?

?


Almost (if not) all modern decoders support Direct mode programming (read/write). Direct mode is very much faster and (for many DCC systems and decoders) gives more reliable results. JMRI is coded to know what mode(s) each decoder definition supports.

Most modern DCC systems support Direct mode. JMRI is coded to know what mode(s) each system supports) and in many cases the list has been ordered to prioritise the fastest.

Trying to read a modern ESU decoder in Paged mode can take an hour or more depending on DCC system. A V4/Select has ~1,000 CVs and a LokSound 5 has ~2,000 CVs.

Dave in Australia


?


Locked Re: Probem with feedback from MGP sensor.

 

¿ªÔÆÌåÓý

OK,
so JMRI accepts the track occupancy feedback when it comes through a plain LocoNet interface, but not when it goes though the Z21 and then over to JMRI.
Something strange either in Z21 or the JMRI-Z21 code.

I read a submitter that TC silver had to recalculate the feedback after a formula when it was INPUT-REP but not when it was SW_REP could there be such a problem?
Don't think so.
TC-silver uses the Digitrax way of looking at addresses, with the addresses split up as a "card address" + "input number".
The address you work with in the decoders and see in the logs are the plain LocoNet addresses.
If there would be a "address mapping problem" in Z21, then you would probably still see a message in the logs, but then with the mapped address.

Hope someone can understand what happens when the message goes the Z21->JMRI way.

mvh/anders


Den 2019-08-05 kl. 08:54, skrev bossevest@...:
Hello Anders.
?
I wrote the wrong address on "SW_REP: address 201 state: closed" should be 112.
My setting was Roco, Roco Z21 in Preferences now I added Digitrax, BT Locobridge.
I got another tab in table sensors named LokoNet where I put my sensors.
Now I get the feedback "INPUT_REP: address: 202 state: LO" in Monitor LocoNet in JMRI.
Now the blocks in JMRI also work.
When I look at the logs Z21XpressNet, X21LocoNet and LocoNet then only the Loconetlog responds when I run into a block.
I read a submitter that TC silver had to recalculate the feedback after a formula when it was INPUT-REP but not when it was SW_REP could there be such a problem?
Thank you for the tip about going on Bluetooth? now it works.
?
Regards.
Bosse


Locked Dcc4pc simulator or lack thereof

 

I might be overlooking something but I can't find a setting to create a dcc4pc connection using simulated hardware. I haven't yet purchased any dcc4pc hardware and was wanting to create a version of my layout with simulated hardware to get a feel for how it might work before committing to a purchase. Thanks

Matthew Chambers, CBT, NR0Q


M Chambers Communications Engineering LLC
Contract Broadcast Engineer & 2-Way Radio Sales & Service

Excuse my typos, I sent this email from my Samsung Galaxy Tab A Tablet


Locked Re: Probem with feedback from MGP sensor.

 

Hello Anders.
?
I wrote the wrong address on "SW_REP: address 201 state: closed" should be 112.
My setting was Roco, Roco Z21 in Preferences now I added Digitrax, BT Locobridge.
I got another tab in table sensors named LokoNet where I put my sensors.
Now I get the feedback "INPUT_REP: address: 202 state: LO" in Monitor LocoNet in JMRI.
Now the blocks in JMRI also work.
When I look at the logs Z21XpressNet, X21LocoNet and LocoNet then only the Loconetlog responds when I run into a block.
I read a submitter that TC silver had to recalculate the feedback after a formula when it was INPUT-REP but not when it was SW_REP could there be such a problem?
Thank you for the tip about going on Bluetooth? now it works.
?
Regards.
Bosse


Locked Re: Probem with feedback from MGP sensor.

 

¿ªÔÆÌåÓý

Hej Bo and others
I have no answer to what is wrong but some more info to those that know JMRI and perhaps Z21:

You have Z21 as an interface between JMRI and the LocoNet.

On the LocoNet you have a track occupancy that can be seen on LocoNet but not in JMRI ("INPUT_REP: address: 202 state: LO" - that is "B2 64 60 49" ).

Other messages, like feedback from a turnout ("SW_REP: address 201 state: closed", that is "B1 48 71 77") works well.

The track occupancy feedback seems to get stuck in the Z21 and not seen by JMRI,
? or it is transformed to a format not accepted by JMRI ( but then it should be seen on the JMRI log - or? ).

There is no problem with that type of occupancy detector when the LocoNet is connected directly to JMRI though an interface like the Bluetooth interface or LocoBuffer USB.
In that case and with the JMRI "Monitor LocoNet", the log for "INPUT_REP: address: 202 state: LO" looks like:
? "[B2 64 60 49]? Sensor L2S202 () is Low.? (BDL16 # 13, DS10; DS54/DS64/SE8c # 26, SwiA/S1/DS02)"

One thing comes to my mind.
Is the examples that you have, a turnout with address 201 and a track occupancy with address 202, correct?
If so you probably have both turnouts and track occupancy using the same addresses 200-204?
That works normally on a stand alone LocoNet, but can Z21 handle it when transforming it to what ever format that is used between Z21 and JMRI?

Bo, have you tried to connect JMRI directly to LocoNet through e.g. the Bluetooth interface and if so, can JMRI then see all the messages?

mvh/anders


Den 2019-08-04 kl. 14:59, skrev bossevest@...:

Hi.
I have JMRI PanelPro - Z21 - MGB sensor (loconet). All feedback works except the feedback from the sensor when a locomotive passes the block.
The feedback that does not arrive I can see the log on the loconet where the sensor is located but not in the log on JMRI Z21LocoNet or Z21XpressNet
The feedback name is: INPUT_REP: address: 202 state: LO
"SW_REP: address 201 state: closed" goes well.
Is that the address I have to recalculate?
Any experience with the above problems?
?


Locked Re: DCS52, Loksound Select, JMRI Eror 308 during identify decoder

 

¿ªÔÆÌåÓý

James,

On 5 Aug 2019, at 12:10 PM, James Koretsky <jameskoretsky@...> wrote:

Can CV's be read in Direct Mode, and is this true for all decoder brands, trying to idiot proof how to do this, without having to switch between paged and direct mode?


Almost (if not) all modern decoders support Direct mode programming (read/write). Direct mode is very much faster and (for many DCC systems and decoders) gives more reliable results. JMRI is coded to know what mode(s) each decoder definition supports.

Most modern DCC systems support Direct mode. JMRI is coded to know what mode(s) each system supports) and in many cases the list has been ordered to prioritise the fastest.

Trying to read a modern ESU decoder in Paged mode can take an hour or more depending on DCC system. A V4/Select has ~1,000 CVs and a LokSound 5 has ~2,000 CVs.

Dave in Australia


Locked Re: DCS52, Loksound Select, JMRI Eror 308 during identify decoder

 

¿ªÔÆÌåÓý

Dave,


I will test Monday night when I get back to the system, using Direct Mode and making the preference changes as well.


Can CV's be read in Direct Mode, and is this true for all decoder brands, trying to idiot proof how to do this, without having to switch between paged and direct mode?


Two of the units tested, were N Scale, and there is no V5 in an N Scale package from what I understand, the drop in N Scale decoders will remain Selects for now. The Scaletrains unit is a rivet counter unit, so it should have a select in it, the Kato unit is a select per the instructions sheet and labeling of the box. The HO Scale Rapido SW1200RS, is a select from my understanding, I don't believe it's a V4, and while it's reasonably new, the production build is probably to old to be a V5, as I don't think that they were available at that point in time, but I will confirm on Monday.


None of the 3 locomotives tested, have keep-alives, based.on removing them from track power and headlights turning off immediately.


I will also try the test you did with track power to see if it does the same thing.


Regards


James



On August 4, 2019 at 6:52 PM Dave Heap <dgheap@...> wrote:

James,
?
?

On 5 Aug 2019, at 3:57 AM, James Koretsky < jameskoretsky@...> wrote:

It gets through reading CV8 and CV7, and then goes on to reading Set SI and Set PI before it comes up with Stopping due to error: No Acknowledge from Locomotive (308).

?


It sounds like a DCC system-specific issue, or a loco-specific issue.

Try turning off the caching options in Preferences->Roster->Programmer. (Enable Show CV numbers in tooltips but turn the rest off).

I assume the loco doesn't have a keep-alive?

Don't assume a Select, ScaleTrains also used the ESU Essential Sound Unit (a cut-back 5) and may now be using the 5. JMRI knows about identifying all these.

Just now doing ?some tests with my test decoders, I found that one Select I had been recently identifying correctly was having trouble (indicated by switching to Paged mode). Switched decoder tester to track power, made coupler activation noises and then went silent. Switched back to Program Track and all was well. Seemed as if decoder was trying to use program track power to activate coupler sound (ESU decoders remember function states) and upsetting CV reading! First time I've seen that particular problem.

Always use Direct mode with all ESU decoders, despite some OEMs' advice to the contrary.

Dave in Australia




?


?


Locked Re: Probem with feedback from MGP sensor.

 

bossevest,

(Is that a "friendly name"? If not, please provide us something to call you.)

Below is information about LocoNet messaging and JMRI. I have _zero_ experience and knowledge about Z21, so cannot help at that level.

Please provide the hexadecimal values related to one of the problematic LocoNet messages. Without seeing the actual hexadecimal LocoNet message information, I cannot tell exactly what type of message is being used, and so cannot predict how JMRI's LocoNet functionality is likely to react.

There are at least two types of LocoNet messages that you could be seeing. The exact message type used will impact what JMRI can do with the message. The "General Sensor" LocoNet message form can be used as a source for JMRI "occupancy" information (among other things). The "Switch feedback" is only used by JMRI for switch point position information.

It is likely that the MGP device can be re-configured to generate the "correct" LocoNet message type. If that is done, then you should be able to easily configure JMRI so the JMRI block follows the MGP "general sensor". Exactly how that can be done is something that I do not have a good answer to, as I have not done any work with MGP's devices acting as sensor inputs.

A skilled programmer _might_ be able to implement code to see a "switch feedback" LocoNet message and interpret it as containing "general sensor" information, and update a JMRI sensor based on that interpreted information. Such a mechanism would be needed for each case where the "wrong" type of message is being sent. It seems like a poorer solution than the MGP device re-configuration.

Regards,
Billybob


Locked Re: Where to put shutdown.py script and how to use it? #scripting

 

¿ªÔÆÌåÓý

Dave,

Thank you for the response, I¡¯ll try this out and report back.

Thank you,

Jasen

Jasen


On Aug 3, 2019, at 3:39 PM, Dave Sand <ds@...> wrote:

Jason,

- Copy ShutDownExample.py to your user files location. ?See Help >> Locations for the actual path.
- Edit your private copy with a text editor. ?Avoid NotePad if using Windows. ?I use WordPad.
- Add a line after the "def execute(self):" line:
? ? ? ? turnouts.getTurnout(¡¯turnout name¡¯).setCommandedState(THROWN)
- Replace turnout name with the user or system name for the turnout that controls the funicular. ?Keep the quotes around the name.
- Make sure that the added line has the same number of leading spaces as the following lines.
- Go to Preferences >> Start Up
- Select Add >> Run script¡­
- Navigate to your user files location and select the shutdown script.
- Save your preferences change and restart.

The script will start when you start JMRI. ?It will then wait until JMRI is stopped, at which time it will send the turnout command.


Dave Sand




On Aug 3, 2019, at 2:11 PM, Jasen Krueger via Groups.Io <jasenk2@...> wrote:

Hi all,

I¡¯m wanting to set a turnout to throw when I shutdown JMRI. I¡¯m using a turnout control to turn on and off an automated funicular and when I shutdown I?want it to default to ¡°THROW¡± so it stops running even if the Arduinos still have power.

I see an example ?¡°ShutDownExample.py¡± but I don¡¯t understand where it should go and how to activate it since there is only a Start Up¡± in preferences.

Any help is much appreciated!

Thank you,

Jasen


Locked Re: Java heap error. Solved?

 

David,

On 5 Aug 2019, at 8:45 AM, David Klemm <davidklemm7511@...> wrote:

The local decoder file and decoder index.xml cause the bug. I pulled them into a quarantine folder on the desktop and it fired up okay. Seems to work without putting them back, internet said it would. Just dump both before updates to avoid.
In most cases, good advice. Any "decoders" folder and the "decoderIndex.xml" found in User Files Location are best quarantined, they often indicate installation of between-releases updates, with possible issues after a new release.

Dave in Australia


Locked Re: DCS52, Loksound Select, JMRI Eror 308 during identify decoder

 

¿ªÔÆÌåÓý

James,

On 5 Aug 2019, at 3:57 AM, James Koretsky <jameskoretsky@...> wrote:

It gets through reading CV8 and CV7, and then goes on to reading Set SI and Set PI before it comes up with Stopping due to error: No Acknowledge from Locomotive (308).


It sounds like a DCC system-specific issue, or a loco-specific issue.

Try turning off the caching options in Preferences->Roster->Programmer. (Enable Show CV numbers in tooltips but turn the rest off).

I assume the loco doesn't have a keep-alive?

Don't assume a Select, ScaleTrains also used the ESU Essential Sound Unit (a cut-back 5) and may now be using the 5. JMRI knows about identifying all these.

Just now doing ?some tests with my test decoders, I found that one Select I had been recently identifying correctly was having trouble (indicated by switching to Paged mode). Switched decoder tester to track power, made coupler activation noises and then went silent. Switched back to Program Track and all was well. Seemed as if decoder was trying to use program track power to activate coupler sound (ESU decoders remember function states) and upsetting CV reading! First time I've seen that particular problem.

Always use Direct mode with all ESU decoders, despite some OEMs' advice to the contrary.

Dave in Australia




Locked Re: Java heap error. Solved?

 

¿ªÔÆÌåÓý

Another member was at the club today and found something while googling the issue and here is what I got from him. ?

The local decoder file and decoder index.xml cause the bug. ?I pulled them into a quarantine folder on the desktop and it fired up okay. ?Seems to work without putting them back, internet said it would. ?Just dump both before updates to avoid.

David Klemm





On Aug 4, 2019, at 14:10, David Klemm <davidklemm7511@...> wrote:

Dave/Ken;

My hunch last night was confirmed today. ?I started up DP and after a bit I attempted to go to get the log file and still got an error. ?I uploaded a screen shot of the error in the folder David K under problems being worked on.

I did go to the roster folder and it has 1195 entries. ?Though about half would be duplicates as they have a .bak extension. ?I know that there are a lot of Lok Sound decoders in there as well. ?I don¡¯t believe there are photographs. ?I forgot to look at the amount of RAM on the PC before I left.

David Klemm





On Aug 4, 2019, at 01:29, Dave Heap <dgheap@...> wrote:

David K,

On 4 Aug 2019, at 12:15 PM, David Klemm <davidklemm7511@...> wrote:

What I meant earlier was after starting DP, I clicked on an entry and then open programmer. Things stall and then the error.?

That's a further clue.

Were you opening one of the new LokSound 5 decoder models? These need 512MB of Java Heap Space (over 2,000 CVs and around 10,000 individual settings to configure and display) and some low-memory machines can't provide this much heap space.

The problem is likely to be worse if you combine this with large roster image files.

Dave in Australia







Locked Re: Java heap error

 

¿ªÔÆÌåÓý

Dave/Ken;

My hunch last night was confirmed today. ?I started up DP and after a bit I attempted to go to get the log file and still got an error. ?I uploaded a screen shot of the error in the folder David K under problems being worked on.

I did go to the roster folder and it has 1195 entries. ?Though about half would be duplicates as they have a .bak extension. ?I know that there are a lot of Lok Sound decoders in there as well. ?I don¡¯t believe there are photographs. ?I forgot to look at the amount of RAM on the PC before I left.

David Klemm





On Aug 4, 2019, at 01:29, Dave Heap <dgheap@...> wrote:

David K,

On 4 Aug 2019, at 12:15 PM, David Klemm <davidklemm7511@...> wrote:

What I meant earlier was after starting DP, I clicked on an entry and then open programmer. Things stall and then the error.

That's a further clue.

Were you opening one of the new LokSound 5 decoder models? These need 512MB of Java Heap Space (over 2,000 CVs and around 10,000 individual settings to configure and display) and some low-memory machines can't provide this much heap space.

The problem is likely to be worse if you combine this with large roster image files.

Dave in Australia






Locked New file uploaded to [email protected]

[email protected] Notification
 

Hello,

This email message is a notification to let you know that a file has been uploaded to the Files area of the [email protected] group.

File: Java Error.pdf

Uploaded By: David Klemm

Description:

You can access this file at the URL:
/g/jmriusers/files/ProblemsBeingWorkedOn/David%20K/Java%20Error.pdf

Cheers,
The Groups.io Team


Locked Re: Probem with feedback from MGP sensor.

 

On Aug 4, 2019, at 8:59 AM, bossevest@... wrote:
I have JMRI PanelPro - Z21 - MGB sensor (loconet). All feedback works except the feedback from the sensor when a locomotive passes the block.
I have never heard of this particular sensor. Can you point to any documentation on it?

The feedback that does not arrive I can see the log on the loconet where the sensor is located but not in the log on JMRI Z21LocoNet or Z21XpressNet
I am having some trouble deciphering this statement.

There are three different monitors involved here:
The raw Z21 communication monitor
The XPressNet communication monitor
The LocoNet communication monitor

The Raw Z21 communication monitor shows all of the communication between the computer and the Z21. The XpressNet and LocoNet monitors show the communication in those message formats once the raw Z21 headers have been removed.

Since you are talking about a LocoNet device, the communication should appear in both the Raw Z21 monitor ( where it may or may not be translated into human readable form ) and the LocoNet monitor. I read your statement above as saying that isn¡¯t happening. Do I have that right, or are you seeing the messages in both places.

The feedback name is: INPUT_REP: address: 202 state: LO
"SW_REP: address 201 state: closed" goes well.
Is that the address I have to recalculate?
Any experience with the above problems?
My experience with LocoNet feedback is pretty limited. I will need to defer to someone else on those particular LocoNet messages.

Paul


Locked Re: DCS52, Loksound Select, JMRI Eror 308 during identify decoder

 

¿ªÔÆÌåÓý

Hi All,

I forgot to add to my original post, that i am using Java 1.8.0_211 and that reading Soundtraxx Decoders works just fine on the same programming track, in this case an Athearn Genesis SD70ACe with factory sound.

James


On Aug 4, 2019, at 2:08 PM, James Koretsky <jameskoretsky@...> wrote:

Hi All,


I had one thought, could this be related to the firmware version contained in the LokSound Select decoders themselves, not being at a level high enough, or the reverse, that the firmware level is to new and JMRI is having an issue reading the decoder?


Regards


James

On August 4, 2019 at 1:57 PM James Koretsky <jameskoretsky@...> wrote:

Hi All,


I am having some issues with JMRI for the first time while I have been programming a Loksound Select decoder as part of using the Read type from decoder function. I am trying to standardize a process for some people to program their locomotives, and if they all do the same thing it might make them programming their own units simpler and not have to get me involved.


I am using a DCS52 (With USB Interface), a Lenovo Tablet running WIndows 10 Build 1803, JMRI Test Version 4.17.2+Re9dde08, and a Digirax for the System Manuifacturer, DCS52 USB Interface as the System Connection, the Serial Port is COM3, Command Station Type is DCS52 USB interface as standalone programmer, L as the Connection Prefix and LocoNet as the Connection Name.


Anyway, as part of the standard programming features for a new locomotive, I use the Read type from decoder button on the Create New Loco window, to keep things standard.


We had programmed some 15 units without sound, and all was going well. I knew there were limitations with some Soundtraxx Sound decoders due to the power requirements needed on to power up the decoder on the Programming track. Most of these locomotives are N Scale and there's very few N Scale units owned by members with Soundtraxx so wasn't worried about the setup for that, then I went to program our first Scaletrains N Scale unit with Factory Sound from ESU, a select I believe in N Scale, and ran into the problem.


It gets through reading CV8 and CV7, and then goes on to reading Set SI and Set PI before it comes up with Stopping due to error: No Acknowledge from Locomotive (308).


I added a Soundtraxx Programming booster, thinking that there wasn't enough power on the programming track to power the decoder, which by the way, I have never seen before on a LokSound Select not be able to have the cv values be read from the programming track before, but then again, I always use the LokProgrammer.


I am getting the same error with the programming track booster, as I was getting before adding the programming booster. This is happening on 3 different locomotives, one from Scale Trains, One from Kato and One from Rapido (HO Scale), all have Loksound Decoders. I myself use the LokProgrammer to program my LokSound decoders, and I don't want a different setup for Loksound units, as we're trying to build a roster of all lococomotives.The LokProgrammer reads the decoders without issue.


Non Sound decoders function just fine, as they should, I have ruled out the porgramming track wiring, as well as the USB connection to the Command station, as we've tried different cables, etc...


Using a throttle in JMRI, and setting the Command Station type to DCS52 (Zephyr Express), I am able to run locomotives on the track outputs of the DCS52, without any issue. So JMRI is communicating just fine with the DCS52 and all 3 Locomotives that I can't read the decoder value using the programming track function just fine with the throttle, in DCS52 (Zephyr Express) mode, but still get the same issue when trying to program..

So what is the issue here, is this an issue with the DCS52, or some other issue, and why can I read the decoders CV values with the LokProgrammer and not JMRI.


What am I missing here? Anyon


Regards


James


?