¿ªÔÆÌåÓý

Date

Locked Re: Missing Pickup #operationspro

 

I found a solution, or maybe a workaround?, I change the termination track from a yard to a siding and it now accepts all custom loads :)?


Locked Re: JMRI 5.10 Installed issues #upgrading

 

The simple thing to try is to recreate the roster index.
In PP, click on 'Debug' in the top menu followed by 'Rebuild Roster'.
In DP, click on 'Actions' in top menu folowed by 'Recreate Roster Index'.

--
Peter Ulvestad
Linux Mint 21.3, JMRI 5.10, Java 21.0.5
JMRI Users Group Moderator ( /g/jmriusers )
JMRI Developers Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


Locked Re: rail driver desk #raildriver

 

¿ªÔÆÌåÓý

The other issue I see is the USB interface is having issues for windows. Some of the calls return errors and my memory says that¡¯s one of the issues with the RailDriver. Over the years we¡¯ve updated the drivers used for USB devices and the current version has some issues with some devices. I ran into this with some DMX interfaces.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Locked Re: Load Error after upgrading to 5.10 #upgrading

 

There does appear still to be a problem with the installation on my laptop - the YAAT script does not run.? Attached is the system console report and I should appreciate your further guidance.? I have highlighted where the error is noted.
?
Thanks,
Harold.


 

Hello
I've tried to decipher the build report and have tried various build options, but I'm unable to workout why this train will not pickup 3 cars as request.
?
The train is an outbound train traveling from one yard, to one location, before terminating in a second yard.?
Custom loads are being used (to be dropped off by the return train).
?
Any advice would be much appreciated, many thanks
Jake


Locked Re: Load Error code after upgrading to 5.10 (2nd topic) #upgrading

 

Many thanks everyone - I note all you say and will start again.? I will report back when complete.
?
Harold.


Locked Re: rail driver desk #raildriver

 

Hi;
?
The Jython implementation in USBThrottle.jyn uses directly the jinput events, hence no need to change core JMRI Java code, only Jython skills are required, and basically it's just about editing a binding file for that specific device.
?
Same for me here, no access to the device, I can provide a little bit of support to whoever has a little bit of Jython/Python knowledge and access to the device.
?
Regards;
Lionel


Locked Re: MQTT/JMRI Implementation #mqtt

 

¿ªÔÆÌåÓý



I've just fired up my test Pi? - a Pi4, running the current 64bit standard Pi OS.?
On that I have Mosquitto v2.0.11,? running as a service (so it automatically starts on bootup).?
JMRI 5.9.6 on Java 17.0.13

It all "just works".? ?But here are some details which may help you debug things:??



Relevant JMRI preferences for MQTT are:?
IP address 192.168.1.77? ? (correct for my network)
TCP/UDP Port? 1883
Channel:? (blank, nothing there, but can have one if required)
MQTT User =? ?(blank, nothing there, using anonymous connection)
MQTT Password = (blank, nothing there, using anonymous connection)


If you have a User/Password,? then there needs to be relevant entries in the "mosquitto.conf" file, and need a mosquitto password file setting up (fairly simple command line stuff).??


If I run this from the Pi Terminal, I can monitor all message payloads at a very basic level:?
? ? ? ? ?mosquitto_sub -h localhost -t "#"

With the above terminal monitoring traffic,? I can start JMRI, and turn on "MQTT Track Power", and it shows as ON/OFF messages.? If I create a MQTT Turnout,? and change its state, the messages "THROWN" and "CLOSED" are seen.? ?External events on MQTT (other clients) will cause changes inside JMRI.??

Within JMRI, a MQTT Turnout can have almost any system name (eg. "123" is legal,? as is "ATurnout123"? ).??



This is my MQTT conf file (/etc/mosquitto/mosquitto.conf) .? ?
I didn't bother adding a local config file as my additions are a couple of lines:?

# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example

pid_file /run/mosquitto/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

# Nigel Config below here

port 1883?
password_file /etc/mosquitto/password_file
allow_anonymous true

listener 9001
protocol websockets

#? END OF FILE





MQTT Explorer should run on a Pi,? there is an ARM/Deb build:

Alternatively, MQ3T is available and works (Deb package, download, then right-click to unpack/install - default puts it on the "Accessories" list):?

Either of the above makes watching multiple messages through a broker much easier.??


I also sometimes use a MQTT App on my phone to monitor things,? for Android, I suggest "IoTT MQTT Panel".??



- Nigel



------ Original Message ------
From "Toni Mury" <toni@...>
Date 19/12/2024 00:46:09
Subject Re: [jmriusers] MQTT/JMRI Implementation

Thank you all for your advice.
?
Unfortunately I have not been able to install MQTT Explorer on my Pi but have worked out how to test the subscribe/publish functions from Pi terminals.
?
Importantly using this technique I can confirm that a text message can be sent to the broker and subscribed to on at least two clients, including one on the Pico (using a Micropython programme.)
?
However with JMRI it is another story, There is no response at any of the clients. The JMRI preferences I have set up align with those on the broker and include:
?
IP address/Host Name: 192.168.0.189
I have also tried: localhost
Connection Name: MQTT
TCP/UDP Port: 1883
MQTT channel: trains/
MQTT User: .....(used)
MQTT Password:.....(used)
Turnout send topic: jSend/to/?
I have also tried ?a send topic of : track/turnout/
?
The turnout I am testing from the JMRI MQTT turnout table is 1010
?
Any suggestions please as to what I might be doing wrong?
?
Toni
?
?
?


Locked Re: JMRI 5.10 Installed issues #upgrading

 

How did you make your backup. Did you COPY the folders or MOVE them?

If the latter, they aren¡¯t there to be found by the new install

If you know where your ¡°user files¡± and ¡°roster¡± should be, you can COPY them back then do a ¡°rebuild roster¡±

But it¡¯s hard to know for sure without knowing the answer to my first question

Phil G

On 19 Dec 2024, at 01:45, Mel via groups.io <runeight@...> wrote:

?Hello Everyone, I am running Windows 11 and after doing a back-up of my roster files, I installed JMRI 5.10 from 5.08. I am running JAVA 17. The issue I¡¯m experiencing is my roster files did not transfer to the new install as they have with past installs. I tried importing the roster files without any luck. Has anyone else experienced this issue?

Thank You in advance to all who respond.

Mel





Locked Re: MQTT/JMRI Implementation #mqtt

 

The broker creates a log file although I don't remember if it does so by default. Miight need to be configured in the conf file. On my linux machine the log files are in /var/log/mosquitto. The log is invaluable when troubleshooting. It will show all the subscriptions and the routing of messages.
?
In my setup I left 'channel' blank and I don't use usernames/passwords. Keep it simple.
?
George


Locked JMRI 5.10 Installed issues #upgrading

 

Hello Everyone, I am running Windows 11 and after doing a back-up of my roster files, I installed JMRI 5.10 from 5.08. I am running JAVA 17. The issue I¡¯m experiencing is my roster files did not transfer to the new install as they have with past installs. I tried importing the roster files without any luck. Has anyone else experienced this issue?

Thank You in advance to all who respond.

Mel


Locked Re: MQTT/JMRI Implementation #mqtt

 

Thank you all for your advice.
?
Unfortunately I have not been able to install MQTT Explorer on my Pi but have worked out how to test the subscribe/publish functions from Pi terminals.
?
Importantly using this technique I can confirm that a text message can be sent to the broker and subscribed to on at least two clients, including one on the Pico (using a Micropython programme.)
?
However with JMRI it is another story, There is no response at any of the clients. The JMRI preferences I have set up align with those on the broker and include:
?
IP address/Host Name: 192.168.0.189
I have also tried: localhost
Connection Name: MQTT
TCP/UDP Port: 1883
MQTT channel: trains/
MQTT User: .....(used)
MQTT Password:.....(used)
Turnout send topic: jSend/to/?
I have also tried ?a send topic of : track/turnout/
?
The turnout I am testing from the JMRI MQTT turnout table is 1010
?
Any suggestions please as to what I might be doing wrong?
?
Toni
?
?
?


Locked Re: rail driver desk #raildriver

 

¿ªÔÆÌåÓý

Lionel,

I think the problem is that JMRI have difficulties to talk to the RailDriver today. We had it working earlier but I'm not sure it works today.

An issue is that a developer needs both a RailDriver and time and interest to develop a solution for it. I don't have a RailDriver so I have difficult developing a solution.

Daniel

On 2024-12-16 11:02, Lionel J. via groups.io wrote:

Hello;
?
Unfortunately I don't have such device at hand, and can't find one at a decent price in Europe, but here is how I would handle this :
?- use the USBThrottle Jynstrument ( jython/Jynstruments/ThrottleWindowToolBar/USBThrottle.jyn )
?- there is already a RailDriverModernDesktop.py driver file but it may need renaming and adjustments
?
See documentation about Jynstruments and their respective README files.
?
This is all Jython code easily adaptable.
?
Regards;
Lionel


Locked Re: Logix help #logix

 

?
This is the page I was reading to try and understand conditionals for setting up a virtual timer:
?
?
On Wed, Dec 18, 2024 at 05:36 PM, Dave Sand wrote:
?
?
The four step logic timer example is neither Logix nor LogixNG. ?I don't know where you found it but it is not useable in JMRI.
?
?
?
Hmmm... that was very unclear then in the previous message as you used the word "internal" sensor after I asked if I needed another piece of hardware - where I thought you were referring to this:
?
?
which would lead me to believe that it is a virtual timer.? Hence the rabbit hole of looking to see how to setup a virtual timer. And maybe it still is what you meant.? I honestly cannot tell. :-(
?
If that wasn't your intention in what you said, I can relate to the communication struggle here.? In my line of work I am always teaching people new things as I am a technical expert in high end biological equipment.? Sometimes I find myself feeling as if I am being clear when I am really not simply because what comes simple for me, may not be simple for someone else and it's easy to type out what seems to be a simple explanation that leaves out key details that we take for granted because of the knowledge known to the writer.? Back and forth written communication can lead to these confusing interpretations due to the nature of interpretive syntax.? :-(? ?
?
I don't blame you for the confusion - so please don't think that I am!? It's simply a drawback of the system we currently use.
?
In the end it may be just easier to triple up on my sensor count and call it a day.? The logic there is much simpler to interpret and understand till it can be more easily explained in a manner that I can absorb.? And I'd rather see this project moving forward than me being stuck on something for another 2 weeks with virtually no progress.
?
Using the LogicNG would be best in that case as well - to which I believe I can sort through that, though may just take a lot more extra time.
?
Thanks for the information between the two types - that has helped a bit.
?
Joey
?
?
?
?


Locked Re: Logix help #logix

 

Joey,

What "same page 9 times"?

Logix and LogixNG are very different tools. ?They both have "expressions" and "actions". ?Logix is fill in the blanks. ?LogixNG is used to create program type code including if-then-else, sub routines, etc. ?The example I provided earlier is LogixNG. ?Note "NG" stands for "next generation".

The four step logic timer example is neither Logix nor LogixNG. ?I don't know where you found it but it is not useable in JMRI.

Dave Sand


----- Original message -----
From: "jmisebiochem via groups.io" <jmisebiochem=[email protected]>
Subject: Re: [jmriusers] Logix help #logix
Date: Wednesday, December 18, 2024 4:11 PM

Thanks Dave,
?
I think I have read now the same page 9 times and still can't seem to figure out how to step by step make an internal logic timer.? I can make sense of the LogixN system as it is written out logically in nature and I can formulate the imagery of the system as to how it should work.? ?However, the Logix portion of the program is simply not as intuitive for me to understand.? What is my antecedent variable?? I assume it's the actual sensor being read where it says IF that sensor goes active, then perform X where X would be to start a timer, then where do you setup the actual timer?? That part seems very unclear even after reading this manual a bit and trying some google searches:
?

?
And then where is the virtual sensor at?? Isn't that what I am creating in the first place?
?
And so completes the circle of confusion.? I am attempting to create a virtual sensor that is... somehow... looped back to a virtual sensor that doesn't exist yet because I have not finished creating it.? :-(
?
The learning curve is quite steep for me.? None-the-less, I appreciate the help you have given me.? This may simply be way outside my ability to comprehend in the end without some type of video tutorial that walks me through each of these steps and some of the variable derivatives that can be placed.? It's hard for me to learn through reading having borderline debilitating dyslexia.? I will still try, and I apologize for simply not understanding what seems quite simple for you to do.?
?
Thanks,

Joey?
?
?


Locked Re: Logix help #logix

 

Thanks Dave,
?
I think I have read now the same page 9 times and still can't seem to figure out how to step by step make an internal logic timer.? I can make sense of the LogixN system as it is written out logically in nature and I can formulate the imagery of the system as to how it should work.? ?However, the Logix portion of the program is simply not as intuitive for me to understand.? What is my antecedent variable?? I assume it's the actual sensor being read where it says IF that sensor goes active, then perform X where X would be to start a timer, then where do you setup the actual timer?? That part seems very unclear even after reading this manual a bit and trying some google searches:
?
?
And then where is the virtual sensor at?? Isn't that what I am creating in the first place?
?
And so completes the circle of confusion.? I am attempting to create a virtual sensor that is... somehow... looped back to a virtual sensor that doesn't exist yet because I have not finished creating it.? :-(
?
The learning curve is quite steep for me.? None-the-less, I appreciate the help you have given me.? This may simply be way outside my ability to comprehend in the end without some type of video tutorial that walks me through each of these steps and some of the variable derivatives that can be placed.? It's hard for me to learn through reading having borderline debilitating dyslexia.? I will still try, and I apologize for simply not understanding what seems quite simple for you to do.?
?
Thanks,

Joey?
?
?


Locked Re: How to add delay between turnout commands in Dispatcher? #dispatcher

 

Nags,

Actually it is an "actions" editor for "transit sections". ?A "transit section" is created when a section is assigned to a transit. ?

You are correct. ?The Warrant script shows everything. ?Dispatcher groups the actions within the transit section. ?Depending on your point of view, one is better than the other. ?I prefer to hide the details until I need them.

Dave Sand

?

----- Original message -----
From: "Nags via groups.io" <snowy999=[email protected]>
Subject: Re: [jmriusers] How to add delay between turnout commands in Dispatcher? #dispatcher
Date: Wednesday, December 18, 2024 2:48 PM

On Wed, Dec 18, 2024 at 04:16 PM, Dave Sand wrote:
?

?
Dave Sand
Thanks,
I've come upon this in my travels, but wanted to know if there was something like the warrant editor where the entire script is displayed. This seems to be more like a section editor.
--
H.O. Australia (Layout in Progress)
Digikeijs DR5000 LocoNet
JMRI v5.8 DecoderPro/Warrants/CPE/SML/LogixNG
Windows 10


Locked Re: Block routing through crossover turnout #blocks

 

On Thu, Dec 19, 2024 at 07:48 AM, Dave Sand wrote:
Some people don't like stopping a potentially long distance prior to a turnout. ?Consider the scenario where there is one block between sidings which includes the turnouts for each siding. ?Now you don't need the toe/points/throat signal.
?
Dave Sand
Yep, depends on the configuration.?
--
H.O. Australia (Layout in Progress)
Digikeijs DR5000 LocoNet
JMRI v5.8 DecoderPro/Warrants/CPE/SML/LogixNG
Windows 10


Locked Re: Block routing through crossover turnout #blocks

 

Nags,

Some people don't like stopping a potentially long distance prior to a turnout. ?Consider the scenario where there is one block between sidings which includes the turnouts for each siding. ?Now you don't need the toe/points/throat signal.

Dave Sand


----- Original message -----
From: "Nags via groups.io" <snowy999=[email protected]>
Subject: Re: [jmriusers] Block routing through crossover turnout
Date: Wednesday, December 18, 2024 2:35 PM

On Wed, Dec 18, 2024 at 11:06 AM, <tour-mayors.0e@...> wrote:
Since I have created separate blocks for each turnout in my layout, do I also need to create separate sections for each turnout?
Just putting it out there,
Any reason the two signals approaching the turnout (toe side) must be hard up against the turnout?
Personally, I would have put those signals at the start of the block and included each turnout in those blocks, TL0 in BLK0, TL1 in BLK3 with boundaries as shown.
?
----s||- BLK0 --- ?TL0. --||- ?BLK1
? ? ? ? ? ? ? ? ? ? ? ? \
? ? ? ? ? ? ? ? ? ? ? ? =
? ? ? ? ? ? ? ? ? ? ? ? ?\
?----? BLK2 ---||-- TL1 --- BLK3---||s--
?
--
H.O. Australia (Layout in Progress)
Digikeijs DR5000 LocoNet
JMRI v5.8 DecoderPro/Warrants/CPE/SML/LogixNG
Windows 10


Locked Re: How to add delay between turnout commands in Dispatcher? #dispatcher

 

On Wed, Dec 18, 2024 at 04:16 PM, Dave Sand wrote:
?
?
Dave Sand
Thanks,
I've come upon this in my travels, but wanted to know if there was something like the warrant editor where the entire script is displayed. This seems to be more like a section editor.
--
H.O. Australia (Layout in Progress)
Digikeijs DR5000 LocoNet
JMRI v5.8 DecoderPro/Warrants/CPE/SML/LogixNG
Windows 10