Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: Detection going crazy
开云体育Albert, Is your system Power Pro or Power Cab? - If Power Pro, AIU broadcasts need to be disabled and baud rate for the serial port needs to be set to 9600 (both in SETUP COMMAND STATION). Also no AIU cab address can conflict with any throttle cab address - they all use the same cab address space. The Show NCE Cabs command will show you what is happening there. Can you see all your throttles and AIUs at unique addresses? - If Power Cab, the first sentence above is inapplicable. Looking at the JMRI system console can tell you/us a lot about the connection status. Likewise the NCE Command Monitor output (enable Timestamps and Show Raw Data as this can help in relating to any System Console messages). --? Dave in Australia The New England Convention 2018 On 9 Aug 2018, at 6:36 PM, john Wragg <teamwragg@...> wrote:
Have you checked the NCE monitor in JMRI to see if it is correctly receiving the output from the AIUs? it could be a problem with the USB interface board or the cable |
Locked
Re: Detection going crazy
One more thought. Cable lengths can degrade the signal. I have occasionally had issues when I tried a 12 ft cable?
John W |
Locked
Re: Detection going crazy
Have you checked the NCE monitor in JMRI to see if it is correctly receiving the output from the AIUs? it could be a problem with the USB interface board or the cable
Is the speed of the connection set the same in JMRI and the NCE USB? John W |
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.
开云体育Paul Bender is one of the JMRI software development team and contributes a lot to JMRI code development. --? Dave in Australia The New England Convention 2018 On 9 Aug 2018, at 2:01 PM, cwt2168@... wrote:
Do you know Paul Bender by chance. He belongs to our club. Also a friend. I |
Locked
Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?
Jerry,
toggle quoted message
Show quoted text
You COULD do this with Logix but it will be tedious and a lot of overhead. I would use an Automaton script that creates an instance for each block of sensors and the related memory variable. After the setup is complete, each instance waits on a change to its block of sensors. When a change occurs, the current values for each sensor are used to create a number that updates the memory variable. Here is a quick python to do what I described above. It needs cleaning up but it does work. import jmri import java blks = {} blks['M-Block1'] = ['IS107', 'IS106', 'IS105', 'IS104', 'IS103', 'IS102', 'IS101'] class Speeds(jmri.jmrit.automat.AbstractAutomaton): def setup(self, memName, sensorList): self.memory = memories.getMemory(memName) self.sensors = [] for sensor in sensorList: print sensor self.sensors.append(sensors.getSensor(sensor)) def handle(self): self.waitSensorChange(self.sensors) print 'sensor changed' value = 0 for s in self.sensors: value = value << 1 if s.getKnownState() == ACTIVE: value += 1 print value self.memory.setValue(value) return True for memName, sensorList in blks.iteritems(): print memName, sensorList i = Speeds() i.setName(memName) i.setup(memName, sensorList) i.start() Dave Sand On Aug 8, 2018, at 11:20 PM, JerryG via Groups.Io <jerryg2003@...> wrote: |
Locked
Re: Using Arduino to measure train speed - how do I send speed to JMRI for panel display?
Since you said you have the Arduino configured as a C/MRI device can you change the output from a bit to a byte and feed JMRI an encoded number over the byte?? I'm curious because I will be using C/MRI nodes and I haven't looked into setting them up with JMRI yet myself. Mike Piazza On 8 August 2018 at 10:10, JerryG via Groups.Io <jerryg2003@...> wrote:
|
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
toggle quoted message
Show quoted text
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
toggle quoted message
Show quoted text
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 |
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:-- Bob Jacobsen rgj1927@... |
to navigate to use esc to dismiss