Ash__, I'm not really an expert in Python. I found the soucre file, but I have no idea how to modify it to send the <T> command. Can you help? JeanLouisDelestre@... De: "Ash__" <mcc9345@...> ?: [email protected] ·¡²Ô±¹´Ç²â¨¦: Lundi 28 Octobre 2024 18:32:00 Objet: Re: [jmriusers] Inconsistent state of turnouts #turnouts Jean-Louis,
Thanks for the log files.? The debug info below is from the first file.
?
You wrote "At startup I run a route setting all my turnout to closed"
?
I had not noticed the difference in the images you attached.? (not the log shown here)
One shows turnouts 201, 202 are marked inconsistent; the other has turnout 200 marked inconsistent. Perhaps the inconsistent turnout is reported following your route, if status is reported closed at startup.??
?
The session.log shows that DCC-EX reported turnout status from the <s> and <T> commands.
2024-10-28T06:32:58,524 ? ?DEBUG - Adding 'T' to send queue [main]
2024-10-28T06:33:00,732 ? ?DEBUG - Received: 'H 200 1' [serial.SerialDCCppPacketizer Receive thread] 2024-10-28T06:33:00,743 ? ?DEBUG - Received: 'H 201 0' [serial.SerialDCCppPacketizer Receive thread] 2024-10-28T06:33:00,748 ? ?DEBUG - Received: 'H 202 1' [serial.SerialDCCppPacketizer Receive thread] ?
Since 201 was already closed, no reply was received from DCC-EX
2024-10-28T06:33:04,554 ? ?INFO ?- Setting route "All closed" at startup. [main]
2024-10-28T06:33:06,547 ? ?DEBUG - Sending Message: 'T 200 0' [Turnout T1 setCommandedStateAtInterval]
2024-10-28T06:33:06,795 ? ?DEBUG - Sending Message: 'T 201 0' [Turnout T2 setCommandedStateAtInterval] 2024-10-28T06:33:07,058 ? ?DEBUG - Sending Message: 'T 202 0' [Turnout T3 setCommandedStateAtInterval] 2024-10-28T06:33:07,109 ? ?DEBUG - Received: 'H 200 0' [serial.SerialDCCppPacketizer Receive thread] 2024-10-28T06:33:07,305 ? ?DEBUG - Received: 'H 202 0' [serial.SerialDCCppPacketizer Receive thread] ?
To obtain the turnouts status, you might send the <T> command to DCC-EX.
You can test this from the Send DCC++ Commands window.
If it works, you can use the SendDCCppMessages.py file to send it following your route. C:\Program Files (x86)\JMRI\jython\DCC-EX\SendDCCppMessages.py
?
Let me know if the <T> command will resolve the issue, and I will report this on the DCC-EX discord channel.
Perhaps there should be a reply, regardless of existing status.
?
------------------------------------
Perhaps someone can advise on this ERROR message, as seen in your log file
?
managers.JmriUserPreferencesManager ? ERROR - setClassDescription(jmri.jmrit.dispatcher.OptionsMenu) failed in newInstance [AWT-EventQueue-0]
java.lang.NoSuchMethodException: jmri.jmrit.dispatcher.OptionsMenu.<init>() ? ? at java.lang.Class.getConstructor0(Unknown Source) ~[?:?] ? ? at java.lang.Class.getDeclaredConstructor(Unknown Source) ~[?:?] ? . . .
?
Regards,
?
Ash__
?
-- ---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.8 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
? |