¿ªÔÆÌåÓý

Date

Locked Audio Coding

 

I have been experimenting with adding sound

There are several sounds I want to assign to each loco.
I use, for example, just showing 2 sounds assigned to 2 locos,?

sounds_path = "C:/Users/Home/Documents/train-n/sounds/ds/"

buffer_horn_Loco1 = audio.provideAudio("IAB_horn_Loco1")
buffer_horn_Loco1.setURL(sounds_path+"horn1.wav")
source_horn_Loco1 = audio.provideAudio("IAS_horn_Loco1")
source_horn_Loco1.setAssignedBuffer("IAB_horn_Loco1")

buffer_startup_Loco1 = audio.provideAudio("IAB_startup_Loco1")
buffer_startup_Loco1.setURL(sounds_path+"startup1.wav")
source_startup_Loco1 = audio.provideAudio("IAS_startup_Loco1")
source_startup_Loco1.setAssignedBuffer("IAB_startup_Loco1")

buffer_horn_Loco2 = audio.provideAudio("IAB_horn_Loco2")
buffer_horn_Loco2.setURL(sounds_path+"horn2.wav")
source_horn_Loco2 = audio.provideAudio("IAS_horn_Loco2")
source_horn_Loco2.setAssignedBuffer("IAB_horn_Loco2")

buffer_startup_Loco2 = audio.provideAudio("IAB_startup_Loco2")
buffer_startup_Loco2.setURL(sounds_path+"startup2.wav")
source_startup_Loco2 = audio.provideAudio("IAS_startup_Loco2")
source_startup_Loco2.setAssignedBuffer("IAB_startup_Loco2")


This gets very longwinded for multiple sounds per loco and multiple locos

I am sure that it must be possible to code the above using a for loop with the sounds and locos read from a list or dictionary

Can anyone suggest how I might do that - I have used lists, dictionaries and for loops before, but cannot see how to apply them to this particular need.

Many thanks in advance

Dave



Locked Re: two throttles on screen at one time

 

First the disclaimer, I use Linux rather than Windows for JMRI so am falling back on past experience. Next the questions:

How are you switching between throttles? My expectation would be that you create two or more throttles which should each appear as separate windows and then you simply click on/in the appropriate window to activate it as the window holding current focus.

When the "other" throttle window becomes minimized you should have two buttons/icons in the taskbar, one for the open window and another for the minimized window. A single click on the taskbar button/icon for the minimized window should restore it to normal size on screen giving you both throttle windows open at the same time.


Locked Re: Double Signal Mast fails when turnout and X-over are thrown

 

Fixed!!!
Thanks a lot, Dave.

Miguel


Locked Re: two throttles on screen at one time

 

Is it possible that you have some setting in Windows that auto-minimises non-active windows? ?Maybe you are in Tablet ?mode. ? ?See for a possible fix.

Mick
______________________________________________________________________
Mick Moignard
Specialising in DCC Sound
p: +44 7774 652504
e:
mick@...
skype: mickmoignard
IBM Notes and Domino: still has what it takes as an App Dev and Collaboration platform.


Locked Re: Roster addition

 

All CVs reading 123 suggest that the JMRI defaults (Edit/Preferences) ?are set to Internal, and not to the active connection.

Mick
______________________________________________________________________
Mick Moignard
Specialising in DCC Sound
p: +44 7774 652504
e:
mick@...
skype: mickmoignard
IBM Notes and Domino: still has what it takes as an App Dev and Collaboration platform.


Locked Re: Roster addition

 

I think you'll find that Soundtraxx's statement about the PTB100 not being required applies to Econami and Tsunami-2 decoders only, ?It is required for Tsunami-1 decoders with most DCC systems, but not with all. ?After all, if it was never needed, why sell it?

Mick
______________________________________________________________________
Mick Moignard
Specialising in DCC Sound
p: +44 7774 652504
e:
mick@...
skype: mickmoignard
IBM Notes and Domino: still has what it takes as an App Dev and Collaboration platform.


Locked Re: two throttles on screen at one time

 

SPROG Programmer mode is limited to one throttle because of SPROG hardware design.

SPROG Command Station mode not limited to one throttle. But SPROG performance. limitations (the command station code is in JMRI, not the hardware) may limit the practical number of simultaneous throttles in order to maintain responsiveness.
--
Dave in Australia

On 7 Sep 2018, at 9:45 AM, Jon Miller <atsfus@...> wrote:

OK I have the following, just a programming track.


A Dell computer.
SPROG IIv3
JMRI 4.13.2

I get the message " Only one throttle can be in use at anyone time with the Sprog."


Locked Re: Roster addition

 

¿ªÔÆÌåÓý

First you need to solve the 123 problem. Go to Preferences->Defaults. Nothing should be set to Internal. Change everything to NCE. Otherwise everything you read means nothing. If you have JMRI V4.10, update to the latest JMRI V4.12 version or later. This will make the 123-Internal problem less likely to occur.

Only when you do have that problem fixed, can you use JMRI's New Loco->Read Type from Decoder to tell JMRI to read the information in the loco decoder and try to pick the correct JMRI decoder model definition matching your loco decoder. Once you do that and Open Comprehensive Programmer, you have a blank roster entry (of the correct model). Read Full Sheet then reads all the current CV values in the loco decoder into the new JMRI roster entry. Once that is completed error-free you then Save the Roster Entry (File menu or Basic pane, entering an ID name meaningful to you if you haven't done so already). The JMRI roster entry you have created and saved now should contain all your current settings.

There's no way Read buttons will change the CVs stored in your decoder. Use of the Write buttons is the only way to change CV values currently stored in your loco decoder.

--?
Dave in Australia

The New England Convention 2018

On 7 Sep 2018, at 8:11 AM, gerardh1031@... wrote:

I have thought about the answers I have received and find they donot explain the methodology to accomplish this program.Instead of extracting info from the decoder to the locomotive I want to extract the programming currently in the decoder and duplicate it in JMRI..For instance do i? start by clicking on? New decoder.?
I am reluctant to proceed until I am sure of where I am going. I do not want to lose my current programming.
I did read the CV full sheet and and all CVs read 123


Locked Re: Roster addition

 

¿ªÔÆÌåÓý

Possibly true for the Tsunami 2/Power Pro combination. Not true for Tsunami (original) or QSI decoders and my Power Pro.

In the context of my original post, Read Changes on Sheet applied only to CVs sheet.

--?
Dave in Australia

The New England Convention 2018

On 7 Sep 2018, at 6:44 AM, gerardh1031@... wrote:

Thanks for the reply I was interested in your comment PTB 100. SoundTraxx makes a statement that PTB 100 is not required. when programming. When you speak about Read Changes on Sheet you are speaking about sheets other than the CVS?


Locked Re: Double Signal Mast fails when turnout and X-over are thrown

 

Bob,

#5737 fixes an appearance issue. I have submitted #5760 to add the missing aspect mapping entries.

Dave Sand

On Sep 6, 2018, at 9:42 PM, Bob Jacobsen <rgj1927@...> wrote:

This sounds a lot like a problem what was fixed by Ted Smith via PR #5737

It¡¯s not in a test release yet, but any recent development build (or JMRI 4.13.3 this weekend) should have it.

Bob

On Sep 6, 2018, at 10:23 AM, miguelay@... wrote:

I'm a beginner building a testing bench to learn and test JMRI functionalities, how it works with DCC++ over and Arduino Mega, testing better placement for sensors and signals, ¡­ prior to build the complete layout.

The enviroment I'm working on is:

PC: ASUS Intel Core i3-7100 CPU @ 3.90GHz 8GB RAM, Windows 10 Home, Java 1.8,0_181-b13
JMRI - version 4.12 + Rb6a9bb1 (previously 4.10 with the same trouble)
Arduino Mega - as base station comander (trouble also occurs with System Connection DCC++ Simulator)
Arduino Nano - as decoder for Accessories (trouble also occurs with System Connection DCC++ Simulator)

Ascii art for my simplified testing bench:

11 < sssssssss >> 3333 < uuuuuuu >
< aaaaaa >> 111 < bbbbbbbb > 2222 << ccccccc >

3333 and 2222 represent 2 diferent blocks for an X-Over (I'm not sure if it is the correct ascii art representation)

All seems to works fine except when turnout and X-over are thrown, in wich case the left double head mast shows clear aspect for straight route and stop aspect for diverging route.

I played with the layout uploaded by Dave Sand last May 29, removing elements and adding three end bumpers, making both layouts identical, and surprise ¡­. it works completely well!!. So, I'm doing somthing wrong.

I know, using Dave Sand's file the problen is over, but I would like to use my own system and user names, and over all, I would like to know what I'm doing wrong.

I will try to upload my XML file to the JMRIusers files area (not sure if it's posible as new user),

Others minor problems:
- Error message from System Console before opening panels, just PanelPro:
2018-09-06 12:44:36,119 managers.JmriUserPreferencesManager ERROR - Unable to retrieve property "windowRectangle2D" for window "jmri.jmrit.display.layoutEditorLayoutEditor:My Layout" [AWT-EventQueue-0]
- It's not possible to remove a turnout item on the turnout table. Deleting from the table it disappears
but it appears when booting again.

I would appreciate any suggestion.

Miguel
--
Bob Jacobsen
rgj1927@...





Locked Re: JMRI Sensor Channels ¨C Direct Arduino to JMRI Communications

 

Hi,
Sorry, I forgot the link! ...
Hi,
?
Some modelers may be interested in this small article on
JMRI Sensor Channels ¨C Direct Arduino to JMRI Communications

which enables most any Arduino controller to act as a Sensor Channel/Mux/Concentrator
for JMRI with direct and independent updates to the JMRI Sensor Table, and providing for
sensor initialization on power-up.

All construction details sketches and scriptscan be found here:

SMA28 JMRI Sensor Channels ¨C Direct Arduino to JMRI Communications

?
and a short video can be found here:


This is a low-cost, relatively simple project to make many sensors available for use in JMRI.
I hope some of you find it useful. There will likely be more to come.

Have fun!? :-)
Best regards,
Geoff Bunza
scalemodelanimation.com


Locked JMRI Sensor Channels ¨C Direct Arduino to JMRI Communications

 

Hi,
Some modelers may be interested in this small article on
JMRI Sensor Channels ¨C Direct Arduino to JMRI Communications

which enables most any Arduino controller to act as a Sensor Channel/Mux/Concentrator
for JMRI with direct and independent updates to the JMRI Sensor Table, and providing for
sensor initialization on power-up.

Construction details can be found here:

SMA28 JMRI Sensor Channels ¨C Direct Arduino to JMRI Communications
and a short video can be found here:


This is a low-cost, relatively simple project to make many sensors available for use in JMRI.
I hope some of you find it useful. There will likely be more to come.

Have fun!? :-)
Best regards,
Geoff Bunza
scalemodelanimation.com


Locked Re: Panel cannot create sensors

 

What¡¯s xxx in the message? Is it something like LS12?

It sounds like a mismatch between the preferences configuration of your LocoNet connection (which usually is dented by ¡°L¡±) and the names in the file.

Bob

On Sep 6, 2018, at 1:32 PM, esimard via Groups.Io <esimard@...> wrote:

Win 10 (current updates)
Java 1.8.0_181
PR3
DCS200
PP 412, 4.8 and 4.2.1 (yes I tried all three with the same results

Trying to move JMRI control from a desktop to to a laptop.
The desktop is running Win 10 Java 1.8.0 and JMRI 4.12 PR3 DCS200

JMRI on the laptop connects to the layout and I can turn power on/off, run engines etc. So I am pretty sure the connection is ok.
Moved the panel from the desktop to the laptop and ran it under Digitrax, loconet simulator.
The panel loads and runs correctly. So I assume the panel migrated correctly.

Connect to the layout and attempt to load the panel.
"WARNING could not open/create prefs at root....error code 5."
"Could not create sensor xxx"
Then repeats for all sensors.

I'm suspecting some sort of WIN 10 error but not sure where to look/fix.
Thanks in advance for any ideas/guidance
_Ernie
--
Bob Jacobsen
rgj1927@...


Locked Re: Double Signal Mast fails when turnout and X-over are thrown

 

This sounds a lot like a problem what was fixed by Ted Smith via PR #5737

It¡¯s not in a test release yet, but any recent development build (or JMRI 4.13.3 this weekend) should have it.

Bob

On Sep 6, 2018, at 10:23 AM, miguelay@... wrote:

I'm a beginner building a testing bench to learn and test JMRI functionalities, how it works with DCC++ over and Arduino Mega, testing better placement for sensors and signals, ¡­ prior to build the complete layout.

The enviroment I'm working on is:

PC: ASUS Intel Core i3-7100 CPU @ 3.90GHz 8GB RAM, Windows 10 Home, Java 1.8,0_181-b13
JMRI - version 4.12 + Rb6a9bb1 (previously 4.10 with the same trouble)
Arduino Mega - as base station comander (trouble also occurs with System Connection DCC++ Simulator)
Arduino Nano - as decoder for Accessories (trouble also occurs with System Connection DCC++ Simulator)

Ascii art for my simplified testing bench:

11 < sssssssss >> 3333 < uuuuuuu >
< aaaaaa >> 111 < bbbbbbbb > 2222 << ccccccc >

3333 and 2222 represent 2 diferent blocks for an X-Over (I'm not sure if it is the correct ascii art representation)

All seems to works fine except when turnout and X-over are thrown, in wich case the left double head mast shows clear aspect for straight route and stop aspect for diverging route.

I played with the layout uploaded by Dave Sand last May 29, removing elements and adding three end bumpers, making both layouts identical, and surprise ¡­. it works completely well!!. So, I'm doing somthing wrong.

I know, using Dave Sand's file the problen is over, but I would like to use my own system and user names, and over all, I would like to know what I'm doing wrong.

I will try to upload my XML file to the JMRIusers files area (not sure if it's posible as new user),

Others minor problems:
- Error message from System Console before opening panels, just PanelPro:
2018-09-06 12:44:36,119 managers.JmriUserPreferencesManager ERROR - Unable to retrieve property "windowRectangle2D" for window "jmri.jmrit.display.layoutEditorLayoutEditor:My Layout" [AWT-EventQueue-0]
- It's not possible to remove a turnout item on the turnout table. Deleting from the table it disappears
but it appears when booting again.

I would appreciate any suggestion.

Miguel
--
Bob Jacobsen
rgj1927@...


Locked Re: two throttles on screen at one time

 

Jon,

I think that you missed my point - that JMRI _can_ display more than one throttle at a time. Whether it _will_ can be a different story. As you point out, some _DCC system_ limitations can affect JMRI's capabilities, such as the maximum number of throttles which may be opened. Remember that one of the good design decisions of JMRI's developers is that limitations of one DCC system are generally _not_ forced upon users of other DCC system types.

The very first post in this thread revealed that the original poster _can_ create a second throttle, he just _cannot see both_ the first and second throttles _at the same time_. This means that the original poster is configured for a DCC system which _does not_ limit JMRI to a single throttle.

Regards,
Billybob


Locked Re: two throttles on screen at one time

Jon Miller
 

¿ªÔÆÌåÓý

On 9/6/2018 12:53 PM, billybob experimenter wrote:

Are you talking about multiple throttles on a machine running JMRI?  JMRI can have as many Throttle windows as you want!
??? OK I have the following, just a programming track.?


A Dell computer.
SPROG IIv3
JMRI 4.13.2

??? I get the message " Only one throttle can be in use at anyone time with the Sprog."
-- 
Jon Miller
For me time stopped in 1941
Digitrax  Chief/Zephyr systems, 
SPROG, JMRI User
NMRA Life member #2623
Member SFRH&MS


Locked Re: two throttles on screen at one time

 

I'd also add that some laptops have an option where they think they are a
tablet. It then does things like only shows one (or two) windows at a time.
Where that is triggered or controlled always takes some digging around. But
it is part of the preferences for Windows.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: Roster addition

 

¿ªÔÆÌåÓý

Jerry,

You were told about how to read and save what is on the decoder. I do it even with brand new engines just in case the defaults in the code don¡¯t match what is on the decoder. Then I start doing my changes and writing to the decoder.?

You have to create an entry filling in the first tab with things like name etc. Unless you do a write to the decoder you don¡¯t change things. The advice you received was to then do a read of the decoder. You can do that by page or read all option. Then save the data.?

David Klemm
8 Plus
?


From: 32511155240n behalf of
Sent: Thursday, September 6, 2018 17:11
To: [email protected]
Subject: Re: [jmriusers] Roster addition
?
Dave?

I have thought about the answers I have received and find they donot explain the methodology to accomplish this program.Instead of extracting info from the decoder to the locomotive I want to extract the programming currently in the decoder and duplicate it in JMRI..For instance do i? start by clicking on? New decoder.?
I am reluctant to proceed until I am sure of where I am going. I do not want to lose my current programming.
I did read the CV full sheet and and all CVs read 123
Jerry Hampton.?


Locked Re: Roster addition

 

Dave?

I have thought about the answers I have received and find they donot explain the methodology to accomplish this program.Instead of extracting info from the decoder to the locomotive I want to extract the programming currently in the decoder and duplicate it in JMRI..For instance do i? start by clicking on? New decoder.?
I am reluctant to proceed until I am sure of where I am going. I do not want to lose my current programming.
I did read the CV full sheet and and all CVs read 123
Jerry Hampton.?


Locked Re: decoder pro operations

 

David,
Here's the link to the operations help.



The next section talks about British Railways.
Dan