¿ªÔÆÌåÓý


Re: Virtual sound setup #esu

 

¿ªÔÆÌåÓý

I purchased a LokPilot 5 Basic 21MTC (#59029) and have had some time to investigate its capabilities using both DecoderPro (5.10)/NCE PowerHouse (2021 eprom) and LokProgrammer (5.2.12). My LP5Basic came with firmware version 5.0.2 which LokProgrammer updated to version 5.1.6. The results below were the same before and after update.

The original question concerning start delay and CV252 can be answered in the affirmative. LokPilot 5 Basic does have a virtual drive sound that activates the start delay based on the value in CV252 (units of 0.065 sec). But there is a catch. You must also make sure Bit 2 of CV124 is 1 (bit value of 4). There is a check box in LokProgrammer that does this, but not one in DecoderPro (DP). Use CVs sheet in DP or the single CV programmer for this. This Bit is not listed in the instructions that come with the LP5Basic, but it apparently serves the same purpose as it does in LokSound V4, LokSound Select, LokSound 5, LokSound 5 DCC, LokPilot 5, and LokPilot 5 DCC decoders. It enables/disables start delay.

Until a DP interface for LP5Basic is added to JMRI, the best way to program a LP5Basic is to use the LokPilot 5 DCC DP interface (Actually, the best way is to use a LokProgrammer). All of the CVs used by LP5Basic are available in the LP5DCC interface. However, there are also CVs and corresponding functionality in the LP5DCC interface that are not available in the LP5Basic. These are:

CV23, CV24 ¨C consist adjustment for acceleration and deceleration on the DP ¡®Consist¡¯ sheet.

CV57, CV58 ¨C chuff spacing speed step 1 and chuff spacing decrease rate on DP ¡®Sound¡¯ sheet. Why these are even in the LP5DCC interface is a mystery since the LokPilots do not have sound.

CV114, CV115 ¨C fade-in and fade-out time of light effects on DP ¡®Function Settings¡¯ sheet.

CV122 ¨C remember current function states and current speed on DP ¡®Advanced¡¯ sheet.

CV131 ¨C halve trigger pulses in shunt mode and logical function dimmer brightness on DP ¡®Sound¡¯ sheet. Again, I don¡¯t understand the connection to sound.

CV141-CV143 ¨C smoke chuffs on DP ¡®Function Settings¡¯ sheet.

CV150-CV154 ¨C Zimo HLU brake sections on DP ¡®Advanced¡¯ sheet

CV249, CV250 ¨C minimum steam chuff distance and chuff trigger on DP ¡®Sound¡¯ sheet. Why is this even present? Maybe you can have a LP with no sound but still be driving a smoke generator?

CV0.252.257-CV0.252.318 ¨C SUSI map on DP ¡®SUSI Map¡¯ sheet.

CV16.5.385-CV16.5.506, CV16.6.257-CV16.6.506, CV16.7.257-CV16.7.378, CV16.10.385-CV16.10.503, CV16.11.257-CV16,11,503, CV16.12.257-CV16.12.375 ¨C rows 41-72 on DP ¡®Function Map¡¯ sheet.

My advice if using any of the above sheets is you should only do a ¡°Write Changes on Sheet¡± DO NOT do a ¡°Write Full Sheet¡±. Probably no harm, but best to be safe.

CV0.255.261-CV0.255.296 are also missing in LP5Basic. DP CVs sheet will not allow edit of them and they are not listed for a LokPilot 5 Basic by LokProgrammer. Perhaps this is an error in the DP interface since they are also not listed by LokProgrammer for the LP5DCC. I don¡¯t know what they are used for.

Also, a few other items on the DP ¡®Advanced¡¯ sheet are unclear because I don¡¯t have the capacity to test them:

1.? Command Station Compatibility>LGB Function Button Mode affects CV49, but the instructions for LP5Basic do not list this.

2.? Command Station Compatibility>SUSI Master & SUSI Slave use CV124. The instructions show bit 3 of CV124 controlling SUSI serial protocol. Since the SUSI Map is not present, I don¡¯t know what this does.

3.? RailComPlus & M4 Master Decoder Synchronization>M4 Manufacturer ID uses CV191 and RailComPlus & M4 Master Synchronization>M4 Decoder Serial Number uses CV192. My understanding is that LP5 and LP5DCC are multiprotocol: DCC, DC, AC, Motorola, Selectrix, and M4 but the LP5Basic is only DCC and DC. DP doesn¡¯t show these CVs affecting anything else, so it is a mystery why these CVs are present in LP5Basic. The instruction sheet is not helpful.

Mark Granville


Re: LogixNG some help requested #logixng

 

I may have figured out a few things. But sadly no copy/past from a LogixNG thread possible?
?
If Then Else Execute on change
If Sensor sensor_001 goes from Active to Inactive
Then Set turnout Turnout_001 to state Straight
Else_If Sensor sensor_002 goes from Active to Inactive
Then Set turnout Turnout_001 to state Divert
?
Correct?
?
The sensor_001 and sensor_002 never can be inactive at the same time due to their wiring (single pole ON-ON switch). Better were two pushbuttons but this is what I have on hand.
?
Alternative would be not an Edge Detection ("..goes from..") but simple 'active' or 'inactive' state.
?
Correct?
?


Re: Edit dialog boxes do not open with full width

 

Yes, even though it appears I now have a workaround for the problem, I'm definitely interested in poking around some more to get to the bottom of this. I tried the experiment you mentioned with my "working" My_JMRI_Railroad profile (renaming the user-interface.xml file, moving out the .bak files, just in case). Both monitors plugged in. I tried editing a turnout and I get a skinny window. Save it and re-edit, skinny window again.
?
I won't have a lot of time today, but I'm now at least somewhat motivated to see if I can help. I'll try some more experiments, including comparisons with the files in my older X86/Java 11 system, to see if I can gain any insights. Might be an opportunity for me to accidentally learning something while sniffing around in the UUID folder.
?
Will report back when I have something potentially interesting.
?
Vince


Re: Audio Icon on Web Panel - Java

 

¿ªÔÆÌåÓý

Does JMRI has two panels, A and B, there A has the Audio icon and B is the panel on top? And that the sound plays if panel A is on top but not if panel B is on top?

I ask to get a better understanding of what's going on.

Daniel

On 2025-05-17 17:36, Vinny DeRobertis via groups.io wrote:

My web browser is active but there's another panel on top of it.
?
?
I have the same issue with YouTube.
The YouTube Premium subscription gets around it.


Re: Audio Icon on Web Panel - Java

 

The Fully Kiosk web browser is always on top and it's the only app running.


Re: C/MRI 72-Input node: how to configure in JMRI? #cmri

 

So JMRI will poll the node for updates and the node should reply fairly quickly (ideally below 100ms). It will show an error if it does not get a reply to the poll command (it will try to init again), and if the poll command takes to long to come back. The Arduino processes the poll command in cmri.process().

As the Arduino doesn't know when its going to get this poll command, we should run process as often as possible so that we are able to deal with a poll command when it arrives from JMRI.
It also means that whenever a sensor changes, it is updated on the Arduino and is ready to send back to JMRI as soon as it is polled. If we don't deal with a poll very often we could miss one and that would mean JMRI not being updated until JMRI poll and the Arduino calls process at the same time.
?
Ha, yes, bit of a brain fart from me there, I had 74 in my head. I would agree that 3 24 bit cards would be the one :)


Re: JMRI import of separate track layers from Anyrail not working #anyrail

 

Hi Erik84750,
The AnyRail Export always exports all trackage, regardless of layer or display settings such as hidden. Hidden, etc. only affects what is included in the background image.
If you want to only export one layer at a time, use AnyRail cut and paste tools to create a separate.any file for each layer and export each, or rearrange your AnyRail design to show each layer separately on the same design. The latter may be better for your final JMRI display anyway, as overlapping trackage might be confusing.
--SteveT?


Re: C/MRI 72-Input node: how to configure in JMRI? #cmri

 

Thanks Lee!
Currently I call cmri.process(); only when updated, is there a particular reason to do it continuously?
?
Why assign 96 inputs for my 72-input C/MRI card (3x 32bit, instead of 24 bit)?


Re: C/MRI 72-Input node: how to configure in JMRI? #cmri

 

I personally use an Arduino Mega as a SUSIC, and when setting up the node in JMRI define the number of input and output cards. I would suggest that you would be able to build the node in JMRI with 3 32bit input cards, a total of 96 inputs.?



Your constructor for creating a SUSIC node, CMRI cmri(CMRI_ADDR, 72, 0, bus); looks correct.?

You will need to update your code to call cmri.process() regularly, otherwise JMRI will not be able to poll properly. You should call this whether the inputs have updated or not.?





LogixNG some help requested #logixng

 

I have a turnout that requires a 2-bit operation: two outputs for each direction (straight or divert), with pulsed output signal (on two outputs).
"Divert" or "Straight" are driven by two separate inputs: either of them pulsed.
?
For example: if Sensor_001 is pulsed 'low', then output Turnout_001 is pulsed 'low'. If Sensor_002 is pulsed 'low' then output Turnout_002 is pulsed 'low'.
Turnout_001 and Turnout_002 are two bits for the same turnout.
?
How should this be programmed in LogixNG? I am lost with all the possible parameters ("Add"/"Item"/ "Sensor" or "Turnout" or "Sensor Edge", ...
?
Thanks for any help and/or references,.. !
Erik
?


JMRI import of separate track layers from Anyrail not working #anyrail

 

Anyrail v7.8.3 export of separate layers is not working.
I have a track plan with an undersection and an upper section separated in two different layers.
When hiding one layer for export to JMRI .xml, and imorting into JMRI still the full track plan is shown leading to an unsightly spaghetti mess.
?
How to proceed to obtain just selected layers of track from Anyrail into JMRI?
?
And also, in the panel selection for turnouts I had to delete all 60+ turnouts individually, even thought the box "remember choice for next tile" is ticked. How to delete a selection of turnouts in Panels?


Re: VSD dont work #vsdecoder

 

Angel,

This message points to an issue in a config.xml file.

Look for the line
<sound name="ENGINE" type="SD70">

"SD70" is not valid, use "diesel3" instead.

Valid sound types are:
configurable, diesel, diesel3, steam, steam1

Klaus

Am 21.05.2025 um 04:36 schrieb Angel Mora via groups.io:

Hello, good evening. I'm trying to set up my own VSD file configuration for JMRI, and after many attempts and modifications, I came across a message that hasn't let me move forward: "Unsupported sound type: SD70." I checked the .wav files and, of course, I had recorded them at 48 kHz as the sample rate, which I reduced to 11 kHz. I repackaged everything, but the message remained exactly the same. Can anyone tell me if this has happened to them and how they resolved it? Thank you very much.


Re: Starting with JMRI sensor reading and signal output: help request

 

Erik,

Look at?.

Information on using AnyRail is at?.

Dave Sand


----- Original message -----
From: "Erik84750 via groups.io" <e.arckens=[email protected]>
Subject: Re: [jmriusers] Starting with JMRI sensor reading and signal output: help request
Date: Tuesday, May 20, 2025 11:25 PM

On Wed, May 21, 2025 at 03:33 AM, Ken Cameron wrote:
Yes you have to put a Layout Panel together to explain to the SML what is where
What is an "SML"?
?
I just discovered the Layout Editor: is there any way to import from an external track plan editor such as Anyrail? If not then it is an immense task to draft a plan for a large layout witch, say, 60 or so turnouts; ... or are there 'shortcuts'?
?
For three-lamp signals and "searchlight" single tri-colour LED's I have schematics that use block detection to determine signal colour, from an issue of Model Railroader of April 2001.
?
Meanwhile thank the both of you for your comments, it is much appreciated!
Erik
?


Re: Starting with JMRI sensor reading and signal output: help request

 

On Wed, May 21, 2025 at 03:33 AM, Ken Cameron wrote:
Yes you have to put a Layout Panel together to explain to the SML what is where
What is an "SML"?
?
I just discovered the Layout Editor: is there any way to import from an external track plan editor such as Anyrail? If not then it is an immense task to draft a plan for a large layout witch, say, 60 or so turnouts; ... or are there 'shortcuts'?
?
For three-lamp signals and "searchlight" single tri-colour LED's I have schematics that use block detection to determine signal colour, from an issue of Model Railroader of April 2001.
?
Meanwhile thank the both of you for your comments, it is much appreciated!
Erik
?


VSD dont work #vsdecoder

 

Hello, good evening. I'm trying to set up my own VSD file configuration for JMRI, and after many attempts and modifications, I came across a message that hasn't let me move forward: "Unsupported sound type: SD70." I checked the .wav files and, of course, I had recorded them at 48 kHz as the sample rate, which I reduced to 11 kHz. I repackaged everything, but the message remained exactly the same. Can anyone tell me if this has happened to them and how they resolved it? Thank you very much.


Re: Audio Icon on Web Panel - Java

 

¿ªÔÆÌåÓý

Vinny,

Is the web browser on top? Or another app on top of the web browser?

If the web browser is on top, is a non JMRI window on top of a JMRI window in the web browser?

Daniel

On 2025-05-20 03:31, Vinny DeRobertis via groups.io wrote:

Is there a way to get around having the panel on top? I don't think think there's a way to make a panel be on top on a specific tablet, correct? In other words, I know how to make a panel be on top on the jmri computer using logix ng but I don't think I can control what panel is on top on a specific tablet, right?


Re: Starting with JMRI sensor reading and signal output: help request

 

¿ªÔÆÌåÓý

Since you are using CMRI, that means to JMRI the inputs are sensors and outputs are turnouts. You can built signal heads from the turnouts, that¡¯s the simplest way and easy testing. The you can make a mast of signal heads (even if only one head) and then use the Signal Mast Logic to run them. Yes you have to put a Layout Panel together to explain to the SML what is where. But once you do that, it will do the rest of the signal management for you.

?

Using Logix or LogixNG for signals is a whole lot of work and easy to make mistakes.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: Starting with JMRI sensor reading and signal output: help request

 

¿ªÔÆÌåÓý

Erik,

I don't have any experience with C/MRI so I will leave most questions for others to answer.

> 2. where to find tutorials on using LogixNG for driving output signals, based on sensor inputs?

First, you need to ensure that JMRI can control the signals and listen to the sensors. JMRI is only able to control signals that JMRI can control, and listen to sensors that JMRI can read.

After that, the documentation for LogixNG is here:



Daniel

On 2025-05-20 05:54, Erik84750 via groups.io wrote:

JMRI version 5.10
Java version 11.0.17
PC: Windows 10 pro
Background:
1. I am familiar with Decoder Pro (using it to program my DCC++ loco decoders). I am have access to functioning RS485-to-USB converter, C/MRI Smini node
2. I have working block detection (current transormer-based), C/MRI I/O card (SMini)
Question:
1. where to find tutorials on using, adding and editing JMRI functionality for C/MRI connected sensors?
2. where to find tutorials on using LogixNG for driving output signals, based on sensor inputs?
?
Several years ago I had managed to get sensors to be read over my C/MRI nodes, and do some very basic experimentation with LogixNG. But now I am starting in earnest with builing a new layout and I would like to be prepared for instllation of proper sensor, signals and turnouts wiring.
?


Re: C/MRI 72-Input node: how to configure in JMRI? #cmri

 

OK, thanks BillyBob, that is good enough: the initiation code for the Susic (in my comment) is correct, I checked just now. I prefer a second opinion but for lack of that I trust in .. :)


Re: Edit dialog boxes do not open with full width

 

Vince,

That is some really weird behavior.

If you are interested, rename or move the user-interface.xml file and see what happens.

Dave Sand


----- Original message -----
From: "Vince Guarna via groups.io" <vince=[email protected]>
Subject: Re: [jmriusers] Edit dialog boxes do not open with full width
Date: Tuesday, May 20, 2025 2:20 PM

Following up: I created a new config profile with both monitors plugged in. I'm leaving everything in the default location (~/Library/Preferences/JMRI/<profile>.jmri)? now even though I had no problem with that in the past. I set the new profile as active and then restarted JMRI. Skinny windows for the settings window and other windows such as all of the edit windows. I closed JMRI and unplugged the secondary monitor. Restart JMRI and everything appeared to work OK. I re-plugged in the second monitor and everything still appears to work as it has for years. I copied a tables file with a lot of data (turnouts, sensors, blocks, signals, LogixNG, etc) into the new profile. Restart JMRI and loaded the new tables file. Everything appears to display fine and all of the edit dialogs are full size as they should be.
?
So, it's a little inconvenient to create a new profile but that's a rare event, of course. Most of the functionality is working OK so far so this is very usable. I'll keep plucking away and report back if any showstoppers crop up in the future.
?
Thanks for the help, Dave.
?
Vince