¿ªÔÆÌåÓý

Re: Looking for ideas to mirror SE8C signals between two panels


 

You¡¯re right. That script isn¡¯t completely working because it doesn¡¯t get notified when a LocoNet message comes in that _doesn¡¯t_ change the existing state of a JMRI Turnout object.

I¡¯m pretty sure it was working back in 2016 when written, so that notification node must have changed at some point in the meantime.

I don¡¯t see a way to fix that script as-is. I think it¡¯ll have to be reworked to listen to the LocoNet traffic itself. I can do that, but it might be a few days until I can get to it.

Sorry for the trouble. Thanks for the clear test info, that really helps.

Bob

On May 28, 2025, at 11:09?PM, cengel_74 via groups.io <chrisengel@...> wrote:

I was finally able to do some testing of this and it doesn't appear to be working. It works in the same way that the Logix did that I wrote in that transitions from green -> red -> green and yellow -> dark -> yellow work but red -> yellow -> red and green -> dark -> green don't work.

This was tested on the real layout and didn't work so to make it easier for me to debug/test I recreated the issue locally.
Here is what I added to the FollowSE8C :
FollowSE8c().set("LH4","LT1556", "LT1557")

Here is the logix that I wrote to enable me to drive the similar sequence that JMRI would generate when talking to a real SE8C. Basically just created a few internal sensors that when they change state send the desired turnout command

IX:AUTO:0001C1 56 Throw
[x] R1 IF Sensor "IS56Throw" state is "Sensor Active"
[x] R2 OR Sensor "IS56Throw" state is "Sensor Inactive"
THEN
When Triggered True, Set Turnout, "LT1556" to Thrown

IX:AUTO:0001C2 56 Close
[x] R1 IF Sensor "IS56Closed" state is "Sensor Active"
[x] R2 OR Sensor "IS56Closed" state is "Sensor Inactive"
THEN
When Triggered True, Set Turnout, "LT1556" to Closed

IX:AUTO:0001C3 57 Throw
[x] R1 IF Sensor "IS57Throw" state is "Sensor Active"
[x] R2 OR Sensor "IS57Throw" state is "Sensor Inactive"
THEN
When Triggered True, Set Turnout, "LT1557" to Thrown

IX:AUTO:0001C4 57 Close
[x] R1 IF Sensor "IS57Closed" state is "Sensor Active"
[x] R2 OR Sensor "IS57Closed" state is "Sensor Inactive"
THEN
When Triggered True, Set Turnout, "LT1557" to Closed

When I generate the following loconet traffic that should cause red -> yellow -> red changes but it doesn't. What I see is red -> yellow but then it does not change back to red.
21:20:45.615: Requesting Switch at LT1556 to Thrown (Output On).
21:20:45.615: Requesting Switch at LT1556 to Thrown (Output On).
21:20:45.695: Requesting Switch at LT1556 to Thrown (Output Off).
21:20:45.713: Requesting Switch at LT1556 to Thrown (Output Off).
21:20:50.881: Requesting Switch at LT1557 to Thrown (Output On).
21:20:50.881: Requesting Switch at LT1557 to Thrown (Output On).
21:20:50.961: Requesting Switch at LT1557 to Thrown (Output Off).
21:20:50.979: Requesting Switch at LT1557 to Thrown (Output Off).
21:20:54.213: Requesting Switch at LT1556 to Thrown (Output On).
21:20:54.234: Requesting Switch at LT1556 to Thrown (Output On).
21:20:54.311: Requesting Switch at LT1556 to Thrown (Output Off).
21:20:54.329: Requesting Switch at LT1556 to Thrown (Output Off).

I think this is the same issue that the logix is seeing in that the FollowSE8C code is setting up propertyChangeListeners but the property/turnout value is not changing in this scenario so it doesn't appear that the listener is being triggered. In the trace above LT1556 goes to thrown (RED) and then it is commanded to go to thrown (RED) again. It never goes closed (GREEN) .

Is there a way to subscribe to all messages not just changes? Is there something weird about our configuration of the SE8C that isn't generating the expected sequences?


On Wed, May 21, 2025 at 9:51?PM billybob experimenter via groups.io <jawhugrps@...> wrote:
On 5/21/2025 8:40 PM, cengel_74 via groups.io wrote:

So the question is, is there a way to resolve this issue or do I just
need to manually load the script after the panel until we get to the
point of loading the panel in the startup
Yes, you will just need to manually load the script.








--
Chris

¡ª
Bob Jacobsen
rgj1927@...

Join [email protected] to automatically receive all group messages.