¿ªÔÆÌåÓý

Date

Locked Linux instead of Windows XP with JMRI plus my compiled railroad interface programs?

 

I've been concerned by comments that Windows XP "barely" is current enough to run the lasts version of Java, needed to support the current JMRI software, needed to support "modern" decoders. This is getting complicate! I had been planning to use an even older machine to run my railroad. It's running my own compiled railroad interface programs now.

Would it be possible for older Pentium or even Intel 486 machines to run Linux and JMRI, to link my interface to JMRI? I know Linux has been around a long time, but don't know what versions older machines could run, and whether JMRI would work well with them. Is that an option, or should I find a different solution, even if it's running JMRI on a different, newer machine communicating with my older control computer?

Don Weigt
Connecticut, USA


Locked Re: Reading Thtottles

 

I am using jmri 4.12 and windows 10


Locked Re: Reading Thtottles

 

David,

You wrote:

"If I try to save and load a throttle layout where locos are assigned to each throttle,. only the first loco is assigned, then all other throttles are empty."

What version of JMRI are you using? What system are you using? Answers to these questions may be key to solving your problem!

Regards,
Billybob


Locked Re: two throttles on screen at one time

 

I think that I have at least one solution.? Right clicking on the taskbar lets me show all screens side by side.? There may be another solution so I will play with it.? This is a real learning curve for an old man,? Next, on to bigger and better things.? Thanks for everyone's help!!!!!!!!!!!!!!!!!!!!


Locked Re: Panel cannot create sensors

Ernie Simard
 

Yes it wants to change every sensor LSxx, where xx is s number to Lx. Note that none of this happens when running under Loconet simulator or on the desktop running the same operating system, same Java and the same panel file.

Subject to fat thumbs and strange spell check changes. _Ernie

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

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 Reading Thtottles

 

Hi,

I have found that I can successfully save and load an on screen array of throttles using the GUI, but it only works if the throttles have no locos assigned.
If I try to save and load a throttle layout where locos are assigned to each throttle,. only the first loco is assigned, then all other throttles are empty.

I suspect that this may be because? a time interval is needed between assigning each loco to each throttle ( I have seen that as a problem when doing it manually if I am too fast between assigning each one ) , but in any event, while it is great to be able to load all the empty throttle windows, it would be even better if I could assign a loco to each throttle when loaded as well, instead of having to assign each one manually afterwards? ( I have 15 to do ).

Can anyone make any suggestions that may help ?
Thank you ...


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@...