Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Lost MQTT broker connection, JMRI 4.22
#4-22
#mqtt
#windows10
#wifi
Hi,
I've upgraded from?JMRI.4.21.3ish+jenkins+20201104T1722Z+R15113a10ed to?JMRI.4.22+R4c4384d74. I'm using a Win10 computer on wifi connection. My MQTT broker are on my local network, a RaspberryPi running mosquitto version 1.5.8 MQTT worked in previous version of JMRI. Now I get after panela been loaded: 2021-03-14 16:05:42,799 mqtt.MqttAdapter? ? ? ? ? ? ? ? ? ? ? ERROR - Can't subscribe :? [AWT-EventQueue-0]
MqttException (0) - java.util.ConcurrentModificationException
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:228)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.util.HashMap$EntryIterator.next(Unknown Source)
at java.util.HashMap$EntryIterator.next(Unknown Source)
at jmri.jmrix.mqtt.MqttAdapter.messageArrived(MqttAdapter.java:238)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.deliverMessage(CommsCallback.java:519)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(CommsCallback.java:417)
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:214)
... 1 more
2021-03-14 16:05:42,801 mqtt.MqttAdapter? ? ? ? ? ? ? ? ? ? ? WARN? - Lost MQTT broker connection... [MQTT Call: riD0C6371105123f7660bdM]
2021-03-14 16:05:42,804 mqtt.MqttAdapter? ? ? ? ? ? ? ? ? ? ? ERROR - Can't subscribe :? [AWT-EventQueue-0]
Client is not connected (32104)
?
In wireshark I see that the tcp connection is closed after 41 seconds by the MQTT client on my PC by sending FIN.After that the client sends RST and than starts up a new TCP connection from a new local port by sending SYN It gets SYN, ACK in return Anyone noticed any problem in 4.22 with MQTT? /BR Benny |
|||
Dale,
I am getting the same warning that you reported on startup of version 4.22 on one of our two museum layouts that run JMRI with panels.? The other system does not give any warnings.? I took a quick look at the Xml file for the panels but I could not immediately spot a problem. The warnings that I get are the same as yours. 2021-03-11 13:18:33,515 configurexml.ControlPanelEditorXml??? WARN? - Portal elem = NOT null [AWT-EventQueue-0] 2021-03-11 13:18:33,757 configurexml.ControlPanelEditorXml??? WARN? - Portal elem = NOT null [AWT-EventQueue-0] I plan to do more research on Thursday when I am back at the museum. Frank Fezzie |
|||
Locked
Kres definition
#definitions
Hello,
I'm a new user from Germany (sorry for my bad english...) I will work with "decoder pro" and a "sprog II v3" It works fine with all my locos, but it's not working with "Kres Flex-dec"? Where can i find a "decoder-xml" for Kres? Can you help me? Or what can i do? Thanks Ralf |
|||
Locked
Re: Caboose loads changing unexpectedly
#operationspro
Hi Frank,
The caboose load works like any other car.? You might have the setting in staging to remove all custom loads, and then generate custom loads for cars out of staging.? Look at the build report for the train departing staging for a clue. If you want your cabooses to depart with the L(Conductor) custom load, you need a spur with a schedule demanding that car type and load. Dan |
|||
John B,
I've moved from a Pi 2 to 3 to 4 by moving the SD card. Granted one of the steps required copying from the larger format SD to the smaller one. After installing and running, I did the Pi update to make sure it was happy. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
|||
Locked
Re: Ops RIP track
#operationspro
For my Ops, all cars have custom loads and custom empties ?(¡°MT-Boxcar¡± for example), and all spurs use custom schedules. ?For my RIP track, my schedule lists each type of car, random at 1 to 10, and accept empty and ship empty. ?And a regular load of mechanical supplies on a 50 random, shipping empty.?
|
|||
Locked
Caboose loads changing unexpectedly
#operationspro
?
THANK YOU from Frank in Houston |
|||
Locked
Re: Auto starting Panelpro
¿ªÔÆÌåÓýSteve, ? Thanks, will try it later. ? Ken ? From: [email protected] <[email protected]> On Behalf Of Steve Todd
Sent: 13 March 2021 23:43 To: [email protected] Subject: Re: [jmriusers] Auto starting Panelpro ? Ken,? |
|||
Further to my previous enquiry on this topic, concerning JMRI operating on the main track and also the program track, I have now purchased a second NCE USB interface which I am shortly to connect up.? ?JMRI is running on a laptop and it id currently set up using one user profile for both decoder pro and panel pro.? The laptop has two USB inputs so I can connect both USB interfaces at the same time but I will have two versions of the NCE power cabs running-? the main track uses the old SB3a booster , which has s/w version 1.28d2 and the program track uses the original power cab socket which has s/w version 1.65.? ?I suspect that the jumper settings for the USB interfaces may need to be different because of the different s/w versions.? ? ?My main question is how to set up JMRI so that the loco roster can be used on both main track and program track without altering any hardware settings.? ?Do I need to create a new separate profile and share the loco roster between the two profiles ? Also, will any changes to the loco roster be applied to both profiles automatically? ?
|
|||
¿ªÔÆÌåÓýDave I have added a 7z folder with the Icons zipped. There are also three files associated with Train Protection that I have added. The .py files detect a train passing a red signal at Block 1 and Block 2 and call up a list of motive power dcc addresses in locoid.txt. These are good for completeness, but I don¡¯t think that they are impacting on my Logix challenges of changing Signal aspects. Many thanks for all you extensive work on JMRI. Regards, Martin ? ? From: [email protected] <[email protected]> On Behalf Of Dave Sand
Sent: 14 March 2021 05:00 To: [email protected] Subject: Re: [jmriusers] JMRI 4.22 Logix controlling signalling fails ? Martin, ? Your panel is using custom icons. ?I don't know if they are important for testing purposes. ?It would be helpful if you could upload a zip file with the custom icons. ? Dave Sand ? ? ----- Original message ----- From: "Martin via groups.io" <Mfargher=[email protected]> Subject: Re: [jmriusers] JMRI 4.22 Logix controlling signalling fails Date: Saturday, March 13, 2021 6:48 PM ? Thanks for the suggestions as to how I can look further into my Logix failure between JMRI 4.21.4 and 4.21.5. I have uploaded the full Panel File <Graub¨¹nden-21-0313 Debug prep.xml> to the Problems Being worked On area under a folder of my name Martin Fargher. ? The problem I have encountered is that it is not possible to set a Signal to Green in 4.21.5 and subsequent versions. Signalling does work on 4.21.4 and previous for the same Panel. ? I have also looked further into this myself and tried a cut down Panel and Logix for one of my signals, Signal 4. What follows below is based on this cut down Panel so hopefully more clearly demonstrates that there is a difference between 4.21.4 and 4.21.5. Unfortunately I myself can't see how any of the particular Logix outputs are derived! ? Guidance on why Logix is determining a different output for exactly the same panel would be appreciated! ? Many thanks, Martin Fargher ? ? Signal S4, with *cut down Conditionals* ? Signal S4 protects a converging route to a Turnout. All Conditionals relating to track occupancy, train protection and points locking have been deleted for this demonstration below. These appear to work correctly so have been left out for brevity. ? JMRI internal sensor "Signal S4 Indicator" is used to set the Signal S4 to clear or danger. This sensor appears on the panel and can be 'pressed'. It can also be selected in the Sensor Table with the same effect. ? * Conditionals, in order, are called: Report Signal S4 Indicator triggered sensor Active [added for Indicator action determination] Report Signal S4 Indicator triggered sensor Inactive [added for Indicator action determination] Signal S4 aspect selector Hold indicator at Red Prevent indicator clearing if track not clear ? ? Logix: IX:RTXS4 clear??? Signal S4 control??? (Enabled) ? ? IX:RTXS4 clearC4? Report Signal S4 Indicator triggered sensor Active?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Active"?? ?????????????THEN?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered Sensor Active = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered Sensor Active = False.?? ? ? IX:RTXS4 clearC5? Report Signal S4 Indicator triggered sensor Inactive?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Inactive"?? ?????????????THEN?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered sensor Inactive = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered sensor Inactive = False.?? ? ? IX:RTXS4 clearC1? Signal S4 aspect selector?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Active"?? ????[x]? R2??? AND Sensor "Turnout T07R sensor" state is "Sensor Active"?? ????[x]? R3??? AND Signal Head "Signal 6" Appearance is "Red"?? ?????????????THEN?? ???????????????On Change To True, Set Signal Head Appearance, "Signal 4" to Green?? ???????????????On Change To False, Set Signal Head Appearance, "Signal 4" to Red?? ???????????????On Change To True, Execute Jython Command Jython Command Conditional Signal S4 aspect selector = True.?? ???????????????On Change To False, Execute Jython Command Jython Command Conditional Signal S4 aspect selector = False.?? ? ? IX:RTXS4 clearC2? Hold indicator at Red?? ????[x]? R1? IF? Signal Head "Signal 4" Appearance is "Red"?? ????[x]? R2??? AND Sensor "Signal S4 indicator" state is "Sensor Active"?? ?????????????THEN?? ???????????????When Triggered True, Set Sensor, "Signal S4 indicator" to Inactive?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Hold indicator at Red = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Hold indicator at Red = False.?? ? ? IX:RTXS4 clearC3? Prevent indicator clearing if track not clear?? ????[ ]? R1? IF OR NOT Sensor "Turnout T07R sensor" state is "Sensor Active"?? ????[x]? R2??? OR Signal Head "Signal 4" Appearance is "Red"?? ?????????????THEN?? ???????????????When Triggered True, Set Sensor, "Signal S4 indicator" to Inactive?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Prevent indicator clearing if track not clear = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Prevent indicator clearing if track not clear = False.?? ? ? OUTPUTS, with identical JMRI Panel file including Logix ? * Script Output for JMRI version 4.21.4 ? * On selecting indicator [internal sensor] to set signal to Green, route already set. Result is Signal S4 correctly goes Green >>> Conditional Report Signal S4 Indicator triggered Sensor Active = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = False >>> Conditional Hold indicator at Red = False >>> Conditional Prevent indicator clearing if track not clear = False >>> Conditional Signal S4 aspect selector = True >>> Conditional Hold indicator at Red = False ? * On trying to select indicator [internal sensor] to set signal Green but other route is set, with other Signal Red or Green. Result is Signal S4 correctly stays Red. >>> Conditional Report Signal S4 Indicator triggered Sensor Active = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = False >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Hold indicator at Red = False >>> Conditional Hold indicator at Red = True ? * Script Output for JMRI version 4.21.5 ? * On [trying to] select indicator [internal sensor] to set signal to Green, route already set. Result is Signal S4 'incorrectly' stays Red >>> Conditional Hold indicator at Red = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Hold indicator at Red = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False ? * On trying to select indicator [internal sensor] to set signal Green but other route is set, other Signal Red (can't be cleared in any case). Signal S4 'correctly' stays Red >>> Conditional Hold indicator at Red = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Hold indicator at Red = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False ? ? ENDS ? |
|||
Locked
Ops RIP track
#operationspro
I use scheduling and custom loads for pretty much all movements. I also have a RIP track I would like cars to randomly get sent to. How could I do this for empties and custom loads. One thought I had was to only send empties there by setting a schedule to accept E and ship E. but I see cars coming from off layout to be spotted there or ping pong moves happening. Your thoughts would be appreciated.? Micheal |
|||
Martin, Your panel is using custom icons. ?I don't know if they are important for testing purposes. ?It would be helpful if you could upload a zip file with the custom icons. Dave Sand ----- Original message ----- From: "Martin via groups.io" <Mfargher=[email protected]> Subject: Re: [jmriusers] JMRI 4.22 Logix controlling signalling fails Date: Saturday, March 13, 2021 6:48 PM Thanks for the suggestions as to how I can look further into my Logix failure between JMRI 4.21.4 and 4.21.5. I have uploaded the full Panel File <Graub¨¹nden-21-0313 Debug prep.xml> to the Problems Being worked On area under a folder of my name Martin Fargher. ? The problem I have encountered is that it is not possible to set a Signal to Green in 4.21.5 and subsequent versions. Signalling does work on 4.21.4 and previous for the same Panel. ? I have also looked further into this myself and tried a cut down Panel and Logix for one of my signals, Signal 4. What follows below is based on this cut down Panel so hopefully more clearly demonstrates that there is a difference between 4.21.4 and 4.21.5. Unfortunately I myself can't see how any of the particular Logix outputs are derived! ? Guidance on why Logix is determining a different output for exactly the same panel would be appreciated! ? Many thanks, Martin Fargher ? ? Signal S4, with *cut down Conditionals* ? Signal S4 protects a converging route to a Turnout. All Conditionals relating to track occupancy, train protection and points locking have been deleted for this demonstration below. These appear to work correctly so have been left out for brevity. ? JMRI internal sensor "Signal S4 Indicator" is used to set the Signal S4 to clear or danger. This sensor appears on the panel and can be 'pressed'. It can also be selected in the Sensor Table with the same effect. ? * Conditionals, in order, are called: Report Signal S4 Indicator triggered sensor Active [added for Indicator action determination] Report Signal S4 Indicator triggered sensor Inactive [added for Indicator action determination] Signal S4 aspect selector Hold indicator at Red Prevent indicator clearing if track not clear ? ? Logix: IX:RTXS4 clear??? Signal S4 control??? (Enabled) ? ? IX:RTXS4 clearC4? Report Signal S4 Indicator triggered sensor Active?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Active"?? ?????????????THEN?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered Sensor Active = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered Sensor Active = False.?? ? ? IX:RTXS4 clearC5? Report Signal S4 Indicator triggered sensor Inactive?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Inactive"?? ?????????????THEN?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered sensor Inactive = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered sensor Inactive = False.?? ? ? IX:RTXS4 clearC1? Signal S4 aspect selector?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Active"?? ????[x]? R2??? AND Sensor "Turnout T07R sensor" state is "Sensor Active"?? ????[x]? R3??? AND Signal Head "Signal 6" Appearance is "Red"?? ?????????????THEN?? ???????????????On Change To True, Set Signal Head Appearance, "Signal 4" to Green?? ???????????????On Change To False, Set Signal Head Appearance, "Signal 4" to Red?? ???????????????On Change To True, Execute Jython Command Jython Command Conditional Signal S4 aspect selector = True.?? ???????????????On Change To False, Execute Jython Command Jython Command Conditional Signal S4 aspect selector = False.?? ? ? IX:RTXS4 clearC2? Hold indicator at Red?? ????[x]? R1? IF? Signal Head "Signal 4" Appearance is "Red"?? ????[x]? R2??? AND Sensor "Signal S4 indicator" state is "Sensor Active"?? ?????????????THEN?? ???????????????When Triggered True, Set Sensor, "Signal S4 indicator" to Inactive?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Hold indicator at Red = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Hold indicator at Red = False.?? ? ? IX:RTXS4 clearC3? Prevent indicator clearing if track not clear?? ????[ ]? R1? IF OR NOT Sensor "Turnout T07R sensor" state is "Sensor Active"?? ????[x]? R2??? OR Signal Head "Signal 4" Appearance is "Red"?? ?????????????THEN?? ???????????????When Triggered True, Set Sensor, "Signal S4 indicator" to Inactive?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Prevent indicator clearing if track not clear = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Prevent indicator clearing if track not clear = False.?? ? ? OUTPUTS, with identical JMRI Panel file including Logix ? * Script Output for JMRI version 4.21.4 ? * On selecting indicator [internal sensor] to set signal to Green, route already set. Result is Signal S4 correctly goes Green >>> Conditional Report Signal S4 Indicator triggered Sensor Active = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = False >>> Conditional Hold indicator at Red = False >>> Conditional Prevent indicator clearing if track not clear = False >>> Conditional Signal S4 aspect selector = True >>> Conditional Hold indicator at Red = False ? * On trying to select indicator [internal sensor] to set signal Green but other route is set, with other Signal Red or Green. Result is Signal S4 correctly stays Red. >>> Conditional Report Signal S4 Indicator triggered Sensor Active = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = False >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Hold indicator at Red = False >>> Conditional Hold indicator at Red = True ? * Script Output for JMRI version 4.21.5 ? * On [trying to] select indicator [internal sensor] to set signal to Green, route already set. Result is Signal S4 'incorrectly' stays Red >>> Conditional Hold indicator at Red = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Hold indicator at Red = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False ? * On trying to select indicator [internal sensor] to set signal Green but other route is set, other Signal Red (can't be cleared in any case). Signal S4 'correctly' stays Red >>> Conditional Hold indicator at Red = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Hold indicator at Red = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False ? ? ENDS |
|||
Rummy, You did not do anything wrong. ?The SSL errors are common for people switching from signal heads and SSL to signal masts and SML (signal mast logic). ? It appears that you are using SE8Cs to drive the signals. ?If so, using the "Signal Head Controlled Mast" option is correct. Dave Sand ----- Original message ----- From:?rummy@... Subject: Re: [jmriusers] Problems with upgrade to 4.22; logix & conditionals Date: Saturday, March 13, 2021 6:57 PM Dave, First, thanks a million. Second, dang you for busting my bubble! ?LOL I used the brute force method and it worked perfectly. ?The panel opened with no errors in the system console, all LRoutes work as intended, and all signaling works as intended. ?That's the first thing. The second thing is, what did I do wrong to get there? ?Should I have been creating the signal masts without first creating signal heads? ?I didn't know that was possible. ?And, as you might have seen from my panel, there is additional future track work drawn but not yet integrated into the working part of the panel (that part of the layout is not yet constructed). ?So, more work on the panel is forthcoming, and I would rather not make the same mistake(s). ?But I understand this is not a tutoring forum, so I don't expect any lengthly explanation. ?I'll go back to the user's manual and read up on it once again. Again, thank you for the brute force method, and at least solving my problem in the short term! Rummy |