¿ªÔÆÌåÓý

Date

Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Marc,

Thanks for the kind words. I did get a lot of it going, but it wasn't easy or pretty! My son in law thinks I'm illiterate about software. I'm better than that, but still a beginner. But, that's another topic.

Don


Locked Re: Supporting turnouts with feedback compatibility

 

Thanks for that Paul. I chose not to draw the distinction for simplicity but you are correct of course.
Dave

Sent from my iPhone - Dave

On 31 Jul 2019, at 14:10, Paul Bender <paul.bender@...> wrote:

Dave/Nigel,
On Jul 31, 2019, at 6:26 AM, Dave Roberts <dccdaveroberts@...> wrote:
A turnout actually has three states:
The two you are already familiar with - when the turnout is at either end of its travel - it¡¯s Open or Closed position or Normal and Reversed. The third state is whilst the point is actually changing from one state to the other. This is the Unknown or Inconsistent state.
A minor point of correction, Unknown and Inconsistent are distinct states, so there are actually 4 states for JMRI turnouts.

Unknown means that we really don¡¯t know what the state is. On a turnout with feedback, that generally means we have not received feedback from the feedback mechanism.

Inconsistent means the state is in transition, but hasn¡¯t yet stabilized. On a turnout with a feedback sensor at both ends of travel, this means the feedback indicates the turnout is between the two endpoints.

Paul



Locked Re: Supporting turnouts with feedback compatibility

 

Dave/Nigel,
On Jul 31, 2019, at 6:26 AM, Dave Roberts <dccdaveroberts@...> wrote:
A turnout actually has three states:
The two you are already familiar with - when the turnout is at either end of its travel - it¡¯s Open or Closed position or Normal and Reversed. The third state is whilst the point is actually changing from one state to the other. This is the Unknown or Inconsistent state.
A minor point of correction, Unknown and Inconsistent are distinct states, so there are actually 4 states for JMRI turnouts.

Unknown means that we really don¡¯t know what the state is. On a turnout with feedback, that generally means we have not received feedback from the feedback mechanism.

Inconsistent means the state is in transition, but hasn¡¯t yet stabilized. On a turnout with a feedback sensor at both ends of travel, this means the feedback indicates the turnout is between the two endpoints.

Paul


Locked Re: Supporting turnouts with feedback compatibility

 

¿ªÔÆÌåÓý

Nigel, what do you mean by ¡°supporting arrangement¡±?
Are you trying to combine two turnouts to work as one? In a crossover arrangement.
Dave

- Dave

On 31 Jul 2019, at 13:37, Nigel <nigel@...> wrote:

Hi Dave

?

The key issue is this:

?

?When I set the turnouts up individually with feedback they work properly with the 3 states as you describe.

?

When I add the two working turnouts to the layout in the ¡°supporting arrangement¡± it is then that they stop working properly.

?

Nigel


Locked Re: Supporting turnouts with feedback compatibility

 

Hi Dave

?

The key issue is this:

?

?When I set the turnouts up individually with feedback they work properly with the 3 states as you describe.

?

When I add the two working turnouts to the layout in the ¡°supporting arrangement¡± it is then that they stop working properly.

?

Nigel


Locked Re: Suggestion for next release #operationspro

 

One that bugs me is the is the WIFI Throttle screen. It only shows a few connections and if you enlarge it to see all the connected phones it will stay that way for a short while then just revert back to it's small size.
Problem with WiThrottle has been fixed in version 4.16.

--
Petr ?¨ªdlo
Czech Republic


Locked Re: Suggestion for next release #operationspro

 

There are a few other places where there is a similar occurrence of a resized view reverts back to the original compressed view. One that bugs me is the is the WIFI Throttle screen. It only shows a few connections and if you enlarge it to see all the connected phones it will stay that way for a short while then just revert back to it's small size.


Locked Re: NCE USB Interface

 

Ken:

No problem. Thanks for letting us know. It's the main lesson of trouble shooting... Even if you're sure something is good... or worse yet was good... I just had an ?SD card make me crazy, it died on the second load of the Raspberry Pi operating system while testing a new Pi... Oh yes, it happens to all of us...

Jim Albanowski


Locked Re: Supporting turnouts with feedback compatibility

 

¿ªÔÆÌåÓý

Nigel,
A turnout actually has three states:
The two you are already familiar with - when the turnout is at either end of its travel - it¡¯s Open or Closed position or Normal and Reversed. The third state is whilst the point is actually changing from one state to the other. This is the Unknown or Inconsistent state.
Basically, when using two sensor switches as soon as the bar starts to move the switch is deactivated. It will remain off until the bar reaches the other position when the second switch is activated. Whilst changing neither switch is activated and this state represents the third state.

Are you switching the correct frog where you have two back to back as in a slip? In this formation it is the opposite frog that is powered.
Dave


- Dave

On 30 Jul 2019, at 22:21, Nigel <nigel@...> wrote:

I have a question about compatibility of turnouts with feedback and turnouts that have a second physical device or supporting turnout configured.
Up until now I have happily run the system without configuring the feedback from the turnouts.
Having the feedback working solves several issues particularly around initial state of the layout.
So a simple turnout with 2 point feedback works a treat and does what you expect.

BUT when I apply feedback to two turnouts and configure them on the panel to be supporting as you find in a crossover, problems start occurring.

Firstly the turnout config pop up hangs when you try to save it and cancelling it, defaults to previous setting.
If you switch off the supporting tick box and then configure the turnouts and then put the supporting tick box back on another problem occurs.
The turnout status sometimes becomes inconsistent and often just wrong.

I am assuming the code is having a problem dealing with two sets of feedback for one object.

Is this something anyone else has tried and is there an easy way to get this to work.

I am on V4.16.



Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

It has active circuitry in it that talks the (fast and interactive) USB protocol on one end, converting that from and two the simpler and non-interactive RS-232 serial signals. It¡¯s definitely not pin-to-pin. With some computers, you¡¯ll even have to install a driver for it.

Bob

On Jul 30, 2019, at 10:01 PM, Don Weigt <dweigt47@...> wrote:

One last question: can anyone tell me what the USB to serial cable does? Is it simply wired from pins on one end to pins on the other? Or, does it need some active circuitry to shift levels to work with the EasyDCC Command Station serial port?
--
Bob Jacobsen
rgj1927@...


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

One last question: can anyone tell me what the USB to serial cable does? Is it simply wired from pins on one end to pins on the other? Or, does it need some active circuitry to shift levels to work with the EasyDCC Command Station serial port?

Don Weigt
Connecticut


Locked Re: Suggestion for next release #operationspro

 

Getting better all the time Dan; thanks!


Locked Re: Raspberry Pi Servo pHAT

Jason Rausch
 

Richard,

Yes, that is why I added the coaxial style power socket to my board.? I wanted a robust power connection that would also provide enough current for all 16 servos.? As for Steve Todd's work, I have attempted to contact him several times on various forums with no luck.? I am curious about this, as I have not found much information on setting it up and using it.? I have been using JMRI for several years off and on and while I'm no expert, I have a pretty good handle on it.? I mostly run it on a Raspberry Pi in a headless configuration and just RMD into it when I need to.

I plan to still make my version of the board available at my website, once I can work out any changes I want to make.

Jason Rausch
www.ke4nyv.com


On Friday, July 26, 2019, 09:26:50 AM EDT, Richard Sauerbrun <Richard@...> wrote:


Hello Jason,

?

Your project sounds very similar to what I am investigating. A few comments:

?

  • The SparkFun Servo pHAT for Raspberry Pi has an optional 5V mini plug so you can power the servos separately from the Raspberry Pi
    • There is also a spot under the board where you can sever the power connection between the RPi and the pHAT
    • With the proper external power supply connected in this way, you should be able to handle all 16 servos
  • With Steve Todd¡¯s Raspbian/JMRI image running on the RPi, you should have the user interface needed to move the servos
    • With JMRI¡¯s Panel Pro, you can create a control panel with buttons that will activate the connections to the servos
    • All JMRI panels may be displayed via the web server and should be visible on any mobile device connected to JMRI

?

I am more of a software guy (40 years¡¯ experience in the industry) who still looks at the hardware like a magic black box. That being said, I do not like to write code ¡­ it is much easier and much more reliable to find code that already works. That I why I love JMRI ¡­ it is a platform with significant functionality right out-of-the-box (and free as well).

?

Richard

?

?

From: sigs@... <sigs@...>
Sent: Thursday, July 25, 2019 10:01 PM
To: [email protected]; Richard Sauerbrun <Richard@...>; [email protected]
Subject: Re: [jmriusers] Raspberry Pi Servo pHAT

?

Richard,

?

I have a project I have been working off and on with for the last few months using a Raspberry Pi Zero W and custom 16 channel PWM board I created, similar to the one you are using.? The difference is I wanted to make the power interface a little more easy to work with.

?

My general goal is to create 16 channel "nodes" for driving 16 servo turnouts around a layout through an IP/web based control interface.

?

I have attached a couple of pictures.? I am working on the code in Python.? So far my limited coding ability has been my major blocking point for really getting this working the way I want it to.? I'm having a hard time getting getting any web access to control the IO pins directly, to talk with the PWM controller.? I'm really a hardware guy, forced to write crummy code :o)

?

Jason Rausch

RPC Electronics, LLC

?

?

?

?

On Thu, Jul 25, 2019 at 8:42, rsauerbrun

<richard@...> wrote:

Hello Group,

Thank you to all who commented on my earlier post where I was trying to connect servos directly to my Arduino Mega running the DCC++ sketch. With everyone's help, I have decided to abandon that approach.

I have ordered a Pi Servo pHAT for my Raspberry Pi that is running JMRI. This $10.95 product has 16 channels that allow for direct connection and management of 16 servos. Here is information on how it works:



Has anyone used a this product, or something similar? I am assuming I will be able to configure and operate this within the JMRI environment.

Richard


Locked NCE USB Interface

 

Hello,

I want to report that NCE tested my USB interface. It was working correctly. One of the cables I was using was defective. Therefore JMRI could not locate NCE interface. I apoligize to all the members who spent time trying to figure out why my JMRI on my computer may have been faulty.

--
Thank you,

Ken Skopp
Train Show Coordinator
Grand River Valley Railroad Club
616-667-9680
ttp://


Locked DecoderPro

 

I have question about programming in DecoderPro. I have a HP laptop Windows 10 and a SPROG II V3 and SPROG power supply connected to a programming track. This system is used for programming only. I don't know when it happened but I was checking a DigiTrax SDHX166D sound decoder. I tried to change CV 60 to another sound file which I was able to do but the columns with the Read, Write were missing the whole section with those columns is blank. The sheets such as sound, basic, motor etc. do not have write sheet and other tabs missing. Any changed that are made can't be written. I decided to upgrade to 14.7.2 test version and the same happens with the upgrade. I don't know when this happened but it could be that a MS upgrade caused this. I have not used the program in a while for programming but have used it to test locomotives without programming. I appreciate any help but advised that I'm not into programming so need instruction on how to proceed.

Al Babinsky



Sent from Xfinity Connect Application


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Victor, Thanks again for your help, and again for everyone else's!.

I'm going to end this thread for now. We've wandered far from whether it was possible for Decoder Pro to program SoundTraxx decoders through my EasyDCC system. The good news is it should be fine: others are doing it.

Today I got my Pi showing JMRI on a monitor, loaded your suggested VNC on my laptop, and got it connected to the Pi! After that, and more reading of Steve's instructions, I managed to load my existing unfinished panel files on the Pi, and it's displaying my LE panel now. Phew! I didn't need to buy a keyboard, nor use my old Netgear router, either....

A few issues remain.The Pi wants Loconet, not CMR/I and complained about all my turnout and sensor designators. I don't yet have it connected to my EasyDCC. I also didn't get my tablet to connect and display the panel, too. But, all told, it's been a pretty good day!

Time for dinner, and to let the old 'gray matter" cool down!?? :--)

Don Weigt
Connecticut


Locked Supporting turnouts with feedback compatibility

 

I have a question about compatibility of turnouts with feedback and turnouts that have a second physical device or supporting turnout configured.
Up until now I have happily run the system without configuring the feedback from the turnouts.
Having the feedback working solves several issues particularly around initial state of the layout.
So a simple turnout with 2 point feedback works a treat and does what you expect.

BUT when I apply feedback to two turnouts and configure them on the panel to be supporting as you find in a crossover, problems start occurring.

Firstly the turnout config pop up hangs when you try to save it and cancelling it, defaults to previous setting.
If you switch off the supporting tick box and then configure the turnouts and then put the supporting tick box back on another problem occurs.
The turnout status sometimes becomes inconsistent and often just wrong.

I am assuming the code is having a problem dealing with two sets of feedback for one object.

Is this something anyone else has tried and is there an easy way to get this to work.

I am on V4.16.



Locked Re: Problem with Siglet #scripting

 

That should be

jmri.NamedBean

on the 19th line, not

jmri.namedBean

(Upper case N)

Bob

On Jul 30, 2019, at 1:19 PM, Petr ?¨ªdlo via Groups.Io <sidlo64@...> wrote:

I have simple script

# Siglet_SX.py

import jarray
import jmri

class Siglet_SX(jmri.jmrit.automat.Siglet) :
def defineIO(self):
self.S1 = masts.getSignalMast("S1")
self.setInputs(jarray.array([self.S1], jmri.namedBean))
return

def setOutput(self):
self.S = masts.getSignalMast("S")
self.VOLNO = "Volno"
self.S.setAspect(self.VOLNO)
return

# start
Siglet_SX().start()


When I run it, I got error message:

2019-07-30 22:07:33,987 jython.InputWindow ERROR - Error executing script [AWT-EventQueue-0]
javax.script.ScriptException: AttributeError: 'javapackage' object has no attribute 'namedBean' in <script> at line number 19
at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
...
Caused by: Traceback (most recent call last):
File "<script>", line 19, in <module>
File "<script>", line 9, in defineIO
AttributeError: 'javapackage' object has no attribute 'namedBean'

at org.python.core.Py.AttributeError(Py.java:205)
...
... 41 more

I don't undertund it.
Where am I making mistake?

thanks

--
Petr ?¨ªdlo
Czech Republic

--
Bob Jacobsen
rgj1927@...


Locked Re: Suggestion for next release #operationspro

 

I've also fixed the edit schedules table so that will be saved correctly in the next test release.

Dan


Locked Problem with Siglet #scripting

 

I have simple script

# Siglet_SX.py

import jarray
import jmri

class Siglet_SX(jmri.jmrit.automat.Siglet) :
??? def defineIO(self):???????
??????? self.S1 = masts.getSignalMast("S1")
??????? self.setInputs(jarray.array([self.S1], jmri.namedBean))
??????? return
???
??? def setOutput(self):
??????? self.S = masts.getSignalMast("S")
??????? self.VOLNO = "Volno"
??????? self.S.setAspect(self.VOLNO)
??????? return

# start
Siglet_SX().start()


When I run it, I got error message:

2019-07-30 22:07:33,987 jython.InputWindow??????????????????? ERROR - Error executing script [AWT-EventQueue-0]
javax.script.ScriptException: AttributeError: 'javapackage' object has no attribute 'namedBean' in <script> at line number 19
??? at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
??? ...
Caused by: Traceback (most recent call last):
? File "<script>", line 19, in <module>
? File "<script>", line 9, in defineIO
AttributeError: 'javapackage' object has no attribute 'namedBean'

??? at org.python.core.Py.AttributeError(Py.java:205)
??? ...
??? ... 41 more

I don't undertund it.
Where am I making mistake?

thanks

--
Petr ?¨ªdlo
Czech Republic