¿ªÔÆÌåÓý

Date

Locked Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?

 

Thanks Steve and Bob, but of course these suggestions lead to other questions. ?Definitely seems like I need to get the speed into a memory variable so that it can be displayed on a panel. ?Now the question is how to do that...

I am already defining the Arduino as a serial port to act like it is a C/MRI SMINI. ?But once I do that, it can only transmit single bits to turn sensors active or inactive (which I still want to do). ?So here is an off-the-wall idea: what if I use 7 of those bits (the SMINI emulation code I am using gives me 24 so I can definitely spare 7) to in essence create a binary number representing speed. ?In other words, and labeling these bits 0 to 6, use Arduino code to turn on bit 5 (32 in binary) and bit 0 (1 in binary) to be a speed of 33 or bit 6 (64 in binary) and bit 1 (2 in binary) to be a speed of 66, etc. ?Since these bits are then linked to sensors in JMRI, this would get me 7 sensors which, if read as zeroes and ones, would be my speed in binary. ?So next question: can I read and compute with sensors in Logix as if their values were zeroes and ones to create a Logix that sets a memory variable with the speed in decimal?

Just trying to keep the complications on the Arduino side rather than cluttering up my already overloaded computer with too many Jython scripts....

Thanks again, Jerry
___________________________________
jerryg2003@...


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

Do you know Paul Bender by chance. He belongs to our club. Also a friend. I
think he has helped with JMRI software in some way.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron
Sent: Wednesday, August 8, 2018 11:56 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

CWT,

I suggest you examine issues like what size of wires, length of runs, and
the connections themselves for the good vs bad installation. You may find
things like one was shorter or smaller wires, that could make a difference
too. In general, there are only minor differences in the DCS200 vs DCS100,
mostly the output current.

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


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

CWT,

I suggest you examine issues like what size of wires, length of runs, and
the connections themselves for the good vs bad installation. You may find
things like one was shorter or smaller wires, that could make a difference
too. In general, there are only minor differences in the DCS200 vs DCS100,
mostly the output current.

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


Locked Re: Detection going crazy

 

Hi folks

We finished going through everything tonight and we did find some issues with the cab bus. We found a couple of shorts as well as a broken wire. That seems to have fixed the issue with the throttle displays going crazy. However we are still having issues with the panel showing things that are way different from what is actually happening on the layout. i.e. There is only one train on the layout and there are multiple blocks (more than 6) showing a train. As the train moves around the layout the panel does not reflect the train movement. The NCE AIU's have a LED for each of the BD20's that are connected and the AIU's are showing what is happening on the layout correctly. For whatever reason the data is not being reflected on the panel.

Someone suggested that maybe the CAB bus power was to low. We checked the voltages at each of the jacks and they range from 10 to 15V, The later happening after the boost given by the "wall wart". According to NCE the minimum voltage is around 8V so odds are it is not that.
?have more suggestions.

Thanks Albert
I've also doubled checked all of the sensor tables, block tables and the block segments on the panel and everything is programmed correctly. I'm hoping some of you may


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

Yes, Ken I do think the problem is a setting in the DCS 200. I will find out
next week when the Clubs things are back from the week at the Hartford Fair.
I will take my laptop and USB connection there since I know that system does
work. But still what could it be in the DCS 200 causing the communication
problem with curtain decoders? Like I said the club uses a DCS 100.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron
Sent: Wednesday, August 8, 2018 10:12 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

If you can program somewhere else, that implies decoder/loco are ok, but the
one site/command station is suspect.

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


Locked Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?

 

I use that script all the time. Works very well over Bluetooth for physical controllers.

Dave,
Brisbane, Australia


Locked Re: Turnout automation

 

Hello Quinametin, sounds interesting. Are you able to share you equipment setup, scripts and sketches?

For your consideration,

Dave,
Brisbane, Australia


Locked Re: WiThrottle minor issue going from 4.4 to 4.12

 

Ours was displaying 2 addresses, but only one worked.
I disabled the Wi-Fi connection, leaving only the LAN connection to the wireless router.
Now, it works.
?


Locked Re: Upgrade from 4.11.2 to 4.12 failed

 

Dave, thank you so much, except for the command station, everything was set to Internal. I now have control of track power and use of the throttle. It's too late tonight for me to try any programming here in eastern Pennsylvania. I will try some tomorrow. Thanks again.


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

If you can program somewhere else, that implies decoder/loco are ok, but the
one site/command station is suspect.

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


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

¿ªÔÆÌåÓý

JMRI cannot tell you what type of decoder it is if it can't read it!

BLI/QSI problems aside, given a properly functioning DCC system , JMRI can read an ESU decoder (provided it doesn't have an active keep-alive) and JMRI can definitely read the manufacturer ID. It can also uniquely identify the exact model for any modern ESU decoder (except the Essential Sound Unit, which is not in JMRI yet as I am working with ESU to clarify some points).

--?
Dave in Australia

The New England Convention 2018

On 8 Aug 2018, at 12:47 PM, cwt2168@... wrote:

I have also tried without the
PowerPax and I still get the same error, " no response from loco". So it
"JMRI" does not tell me what type of decoder it is.


Locked Re: Upgrade from 4.11.2 to 4.12 failed

 

¿ªÔÆÌåÓý

Have you checked the settings In Preferences->Defaults. Nothing should be set to Internal.

Upgrading to 4.13.1 will do no harm, but it won't solve your problem.

--?
Dave in Australia

The New England Convention 2018

On 8 Aug 2018, at 11:00 AM, diesele645@... wrote:

Preferences are set correctly for the DCS 200, Locobuffer USB, and Loconet, yet the top of the roster page has them set to Internal, and trying to change on the roster page to Loconet won't save.than? Also programming mode defaults to paged mode rather than direct byte. Interestingly, to me, I can use Monitor Slots and clear slots. Would it be worthwhile to try upgrading to 4.13.1?? Joe P.


Locked Re: Loksound Select the sound tab in JMRI

 

¿ªÔÆÌåÓý

It means that sound slot will not play unless Sound Slot 1 is playing (activated).

--?
Dave in Australia

The New England Convention 2018

On 9 Aug 2018, at 2:10 AM, Lajoie <jalajoie1@...> wrote:

What is the effect of the ''Requires Drive Sound'' option within the sound tab ?


Locked Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?

 

If you¡¯re willing to make a serial connection to the Arduino for transferring the data, look at the jython/serialinput () scripts. That¡¯s a way to send bits and analog values from an Arduino, receiving them via a script and serial port.

Bob

On Aug 8, 2018, at 10:10 AM, JerryG via Groups.Io <jerryg2003@...> wrote:

What I would like to do is send a number representing train speed from my homebrew Arduino/IR sensor speedometer back to PanelPro to display on my panel by the block where speed is measured. I can put several of these on the layout and see the speed of all my detected trains as they move around the layout.

The Arduino is configured to appear as a C/MRI SMINI node to JMRI to send a sensor a ¡±block occupied¡± bit right now. I¡¯m not adverse to changing the interface method to JMRI if I have to, although the current approach is really simple and doesn¡¯t require any hardware other than the Arduino.

Any thoughts on how I might:
? Send speed as a number back to PanelPro over C/MRI or some other way.
? Display that number on my panel.
My general question is whether there is a way for sensors to send more than 0 or 1 to JMRI to display on panels, for example engine numbers from RFID detectors.

Thanks, Jerry
_________________________________
jerryg2003@...

--
Bob Jacobsen
rgj1927@...


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

Chances are the decoder is bad. I had 2 loksound select decoders and both gave me the same error with my loksound programmer.?

I send them to esu to get replaced.?

LLed's for number boards are normally illuminated by the headlight solder pads.?

Chris?

On Wed, Aug 8, 2018 at 3:29 PM Michael Mosher <mjmx1@...> wrote:
I've downloaded 90889-LSNSelect-Diesel-Scale-Trains-T4-GEVO-V1-R1.esux from ESU's web and opened in in LokProgrammer the software.?? The number boards are not listed as a function output, so this leads me to believe that the LED for the number boards are connected directly to the track pickups and not to a decoder function output, also evidence that they are flashing when attempting to read.? Unfortunately, the always on load of having lights connected directly to track pickups interferes with reading CVs on program track.? A program track booster might help but might still not have enough power to handle those lights.?

Could take shell off loco and see if any easy way to disconnect the number board LEDs.?
If not, you'll be able to write programming OK, so you can manually select:
Electronic Solutions Ulm GmbH
ESU LokSound Select
LokSound Select direct / micro

I've exported the default CV values from LokProg SW that can be imported into JMRI, once you've open the above, select
File
Import
Lokprogrammer CV file list
then select the file, I'll send off list since no attachments here.

Then make whatever changes desired and write to decoder, will likely get an error message but the decoder should still have got the changes.? Thou once you've got the address setup, making the rest of the changes via Ops Mode will avoid the error message.

Also that verbal ack has no relevance to this decoder.

Michael Mosher
Webmaster, ECSFM            
Member SFRH&MS              
DCC Master PVSMR            
On 8/8/2018 2:23 PM, cwt2168@... wrote:

Ok I am still stuck in the mud. Yes just tried all of the below. I am still getting ¡°Programmer error¡± ¡°No acknowledge from loco¡± even though the engine number boards lights flash. This is a Scale-Trains engine with Loksound, I even tried three other ones. ¡°N scale btw¡± if that makes any difference. I even tied selecting the My Loksound decoder from the options and tried reading it that way. What could be the problem?

?

From: [email protected] <[email protected]> On Behalf Of Mick Moignard
Sent: Wednesday, August 8, 2018 12:56 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

?

It¡¯s on the QSI Misc pane on the decoder definition, but you¡¯re not seeing that yet. And it has no effect when using the program track anyway, so it¡¯s not the cause of your current problem.? Have you tried removing all your program track adding such as resistors, bulbs and boosters and tried reading it in page mode?

Mick

________________________________
Mick Moignard
m: +44 7774 652504
Skype: mickmoignard

, so please excuse the typos.




Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

I have had problems also with two Loksound decoders and took a known good
engine and did a read all sheets and copied the full sheets to the problem
engines and brought them back to life.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of
cwt2168@...
Sent: Wednesday, August 8, 2018 6:04 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

Also the same engines I had problems with at home worked at the Club. FYI
Not decoder problems.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of
cwt2168@...
Sent: Wednesday, August 8, 2018 5:59 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

Ok thanks, Let me throw this in the mix. We are using the same setup at my
RR Club "Central Ohio N-Trak" the only difference is They are using a DCS
100 not a DCS 200. Also no program booster. That is why I am thinking the
problem may be in the DCS 200. I am unable to take my setup to the Club
right now because our system is at a County fair with the layouts this week.
I read and write just fine using the Club setup.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron
Sent: Wednesday, August 8, 2018 5:09 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

Number boards flash, that makes me think they are direct wired to the rails.
If so, and the test would be that you can't turn them off, that could
interfere with readback. The other test would be making sure all the
functions are off before moving to the programming track. Some decoders try
to retain settings and that could also confuse things as it draws power.

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


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

Also the same engines I had problems with at home worked at the Club. FYI
Not decoder problems.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of
cwt2168@...
Sent: Wednesday, August 8, 2018 5:59 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

Ok thanks, Let me throw this in the mix. We are using the same setup at my
RR Club "Central Ohio N-Trak" the only difference is They are using a DCS
100 not a DCS 200. Also no program booster. That is why I am thinking the
problem may be in the DCS 200. I am unable to take my setup to the Club
right now because our system is at a County fair with the layouts this week.
I read and write just fine using the Club setup.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron
Sent: Wednesday, August 8, 2018 5:09 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

Number boards flash, that makes me think they are direct wired to the rails.
If so, and the test would be that you can't turn them off, that could
interfere with readback. The other test would be making sure all the
functions are off before moving to the programming track. Some decoders try
to retain settings and that could also confuse things as it draws power.

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


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

Ok thanks, Let me throw this in the mix. We are using the same setup at my
RR Club "Central Ohio N-Trak" the only difference is They are using a DCS
100 not a DCS 200. Also no program booster. That is why I am thinking the
problem may be in the DCS 200. I am unable to take my setup to the Club
right now because our system is at a County fair with the layouts this week.
I read and write just fine using the Club setup.

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ken Cameron
Sent: Wednesday, August 8, 2018 5:09 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the
program track and mainline on LokSound and Broadway Limited decoders. I can
read the Digitrax decoders.

Number boards flash, that makes me think they are direct wired to the rails.
If so, and the test would be that you can't turn them off, that could
interfere with readback. The other test would be making sure all the
functions are off before moving to the programming track. Some decoders try
to retain settings and that could also confuse things as it draws power.

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


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

¿ªÔÆÌåÓý

Your going to get that error using jmri

Try writing a new address by selecting the decoder yourself on decoder pro

Run the engine?
It probably will run on the new address
Or
Use your dcc handheld to change the address. ?It will work

TONY


On Aug 8, 2018, at 1:23 PM, cwt2168@... wrote:

Ok I am still stuck in the mud. Yes just tried all of the below. I am still getting ¡°Programmer error¡± ¡°No acknowledge from loco¡± even though the engine number boards lights flash. This is a Scale-Trains engine with Loksound, I even tried three other ones. ¡°N scale btw¡± if that makes any difference. I even tied selecting the My Loksound decoder from the options and tried reading it that way. What could be the problem?

?

From: [email protected] <[email protected]> On Behalf Of Mick Moignard
Sent: Wednesday, August 8, 2018 12:56 PM
To: [email protected]
Subject: Re: [jmriusers] I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

?

It¡¯s on the QSI Misc pane on the decoder definition, but you¡¯re not seeing that yet. And it has no effect when using the program track anyway, so it¡¯s not the cause of your current problem. ?Have you tried removing all your program track adding such as resistors, bulbs and boosters and tried reading it in page mode?

Mick

________________________________
Mick Moignard
m: +44 7774 652504
Skype: mickmoignard

, so please excuse the typos.


Locked Re: I am unable to read what type of decoder from the program track and mainline on LokSound and Broadway Limited decoders. I can read the Digitrax decoders.

 

Number boards flash, that makes me think they are direct wired to the rails.
If so, and the test would be that you can't turn them off, that could
interfere with readback. The other test would be making sure all the
functions are off before moving to the programming track. Some decoders try
to retain settings and that could also confuse things as it draws power.

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