¿ªÔÆÌåÓý

Date

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


Locked Engine Only Responds to Short Address

 

I do not know if I did something while running my engine on WiThrottle or something happened spontaneously.? My engine will not run on any throttle(UT4 or DT500) when the long 4 digit address is selected. It runs fine if I select the 3 digit address however.? I do I recover my 4 digit address.? 3 digit is 127 the 4 digit address is 7127.
Thanks in advance for your help.
Bob


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

¿ªÔÆÌåÓý

Hi Don,

?

Yes, read Steve¡¯s doc.?

?

If I remember correctly, if you are able to connect via Wi-Fi then connect to the Raspberry Pi Hotspot and use VNC to connect and configure the Pi as needed.

?

If you have to connect wired then I think you might need a keyboard.

?

It has been a while since I set mine up.

?

Victor

?

?

Victor Gilbert

Supertendent

Sugarwood Railroad

?

?

From: [email protected] <[email protected]> On Behalf Of Don Weigt
Sent: July 30, 2019 12:14 PM
To: [email protected]
Subject: Re: [jmriusers] JMRI Decoder Pro, EasyDCC, and SoundTraxx

?

Thanks, Victor and others,

?

I got an HDMI cable today, and have the JMRI home page displaying on my monitor! The USB mouse works, too.? :--)

?

I suppose I'll need a keyboard connected to the Pi to configure it to connect to the router, at least. I'm debating whether to borrow the one from our primary computer, or spend the $20 or so to get another wireless keyboard and mouse for it. It they could serve as backups to the ones on our primary computer, too.

?

It's beastly hot here this afternoon, and the car is out baking in the hot sun. I think I'll read Steve's documentation for a while first!

?

Don Weigt

Connecticut


Locked Re: Suggestion for next release #operationspro

 

Thanks Dan, Yes, closing the window and re-opening does keep the column formatting the same. Sometimes I just keep opening windows using the PanelPro screen instead of using the task bar.
Thanks,
Bob


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Thanks, Victor and others,

I got an HDMI cable today, and have the JMRI home page displaying on my monitor! The USB mouse works, too.? :--)

I suppose I'll need a keyboard connected to the Pi to configure it to connect to the router, at least. I'm debating whether to borrow the one from our primary computer, or spend the $20 or so to get another wireless keyboard and mouse for it. It they could serve as backups to the ones on our primary computer, too.

It's beastly hot here this afternoon, and the car is out baking in the hot sun. I think I'll read Steve's documentation for a while first!

Don Weigt
Connecticut


Locked Re: Suggestion for next release #operationspro

 

I should also note that column widths and order are not saved for the edit schedule window.? The details for a window are saved by window name, and in the case of edit schedule, the window name includes the name of the schedule.? This would mean that you would have to adjust each one independently, which I found annoying, so I provide with I believe are the best widths and order.

Dan


Locked Re: Raspberry Pi Servo pHAT

 

¿ªÔÆÌåÓý

Richard,

On Jul 30, 2019, at 9:53 AM, rsauerbrun <richard@...> wrote:
My board should arrive tomorrow so I can start experimenting. I have already prepared my JMRI preferences (running on the RPi) by adding the Raspberry Pi Foundation as a connection, and configured as RPi GPIO.

Once set up in preferences, you can add turnouts in the table associated with this connection. My assumption is that you connect each turnout servo to a specific GPIO pin for control. We will see if that works.

The GPIO pins that are available by default in JMRI are the GPIO pins on the RaspberryPi itself.

The chip on the servo boards provides another set of GPIO pins that are used to control servos.

There is a Java example showing how to use the chip in question here:

And here:


The second of those shows how to control a servo.

My intention is to use that second file as a guide for writing the script, with the changes required to make this work within JMRI.

Paul


Locked Re: Suggestion for next release #operationspro

 

Hi Bob,

If you resize a column it should stay that way unless you open a second window.? For example if you open the Cars window, the window location, and all of the columns get saved when you close the window.? Now if you open it again, it should be exactly the way it was.? Now if you open a second Cars window, that will have the defaults, you can again change it the way you want, and it can be different.? If this isn't they way its working for you, please let us know.

Dan


Locked Suggestion for next release #operationspro

 

This is a piddly suggestion (isn't it nice we are at the point where we can entertain piddly suggestions?);? when I resize a column in, say, cars or schedules, the column would stay resized unless resized again? Currently if a column is resized it reverts back to its original size when you leave the screen.
Thanks,
Bob Burke


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Hi Don,

I use Steve Todd's image with my EasyDCC system and a PTB 100 connected to my program track.. I also have a Raspberry Pi connected to the EasyDCC.? I access via wired and wireless using the hotspot in Steve's image.? I like this setup very much.

Here is the link to RealVNC the remote desktop app (??).

Steve's documentation is good and gives the required passwords and everything you should need to get started.

Victor?


Locked Re: Raspberry Pi Servo pHAT

 

Thanks Paul,

My board should arrive tomorrow so I can start experimenting. I have already prepared my JMRI preferences (running on the RPi) by adding the Raspberry Pi Foundation as a connection, and configured as RPi GPIO.

Once set up in preferences, you can add turnouts in the table associated with this connection. My assumption is that you connect each turnout servo to a specific GPIO pin for control. We will see if that works.

Looking forward to your script as well ...

Richard


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Don,

On 30 Jul 2019, at 2:30 AM, Don Weigt <dweigt47@...> wrote:

ps: As for the CV numbers, I just quickly viewed the online decoder document I found on the SoundTraxx site, and the highest number I noticed was 22x. I have no idea what decoders it was for.
Tsunami 2, Econami, ESU V4/Select/5 all make extensive use of CVs in the range 257-512 inclusive, the range specified by the NMRA for Indexed CVs (multiple pages of CVs 257-512, referenced by the index values in CVs 31 & 32). Hornby and some other decoders use CVs in the 513-1024 range.

Dave in Australia


Locked Re: PanelPro Panels #panelpro

 

¿ªÔÆÌåÓý

Dave,
Upon reflection perhaps it might be more logical and therefore aid the learning process if it was the CPE that took the lead and PE was accessed through CPE. That would separate out one use of the word from the other use as in the LE?
Just a thought.

Dave


- Dave

On 30 Jul 2019, at 09:49, Dave Roberts via Groups.Io <dccdaveroberts@...> wrote:

Dave,
Nicely put together!
As always and as we have talked about before I believe some of the confusion comes about because of the use of the multiple uses and intended meaning of the word ¡°Panel¡±.

Your initial description of the PE might be better described as:
This is the original control panel editor.
The distinction between the two is at best marginal so why not remove the PE and substitute CPE?

The other use comes when using the LE where this deals with the actual layout design rather that the control panel design . In this case it is the layout that can be made up of different PANELS (specific areas of a layout).
I believe it would be much more advantageous to make the distinction to aid understanding and so avoid confusion.

Dave



- Dave

On 29 Jul 2019, at 20:16, Dave Sand <ds@...> wrote:

There have been a number of threads talking about the different PanelPro panels. ?This is my view.

Panel Editor (PE)

This is the original panel. ?The track is represented by icons place on the panel. ?The turnout icon is related to a turnout and will change to represent the turnout position. ?Other icons can be related to sensors, etc. ?When in Edit mode, a second window appears that is used to select icons and the related JMRI table items. ?

The menu contains just Edit and Marker in addition to the standard menu items. ?The edit window only has a File menu. ?An interesting item is "Change view to Control Panel Editor¡±.

PE uses Blocks for block content display. ?It has no automation capability.


Control Panel Editor (CPE)

Control Panel Editor is closely related to Panel Editor. ?Using a File menu option, it is possible to switch between the two. ?The basic icon based approach is the same. ?There are additional icon types, some of which have built in capabilities such as Indicator Track and Indicator Turnout.

The menu contains File, Edit, Options, Zoom, Add Items, Warrants, and Draw Shapes. ?Add Items >> Item Pallet provides a second window with comprehensive set of tabs for adding and maintaining many item types.

CPE uses OBlocks, OPaths, and Portals to define the layout topology. ?This provides the foundation for automation using Warrants.


Layout Editor (LE)

Layout Editor uses lines (track segments) connecting points to represent a track plan. ?Standard items such as turnouts provide a set of points. ?A normal turnout has 3 points. ?Cross-overs have 4 points as do level crossings and slips. ?The end bumper, edge connector and anchor point also provide connection points.

After blocks have been assigned to all of the track segments and standard items, block routing logic can determine the layout topology. ?When signal masts are placed at block boundaries, JMRI can create the signal mast logic using the block topology. ?Sensors can also be placed at block boundaries to implement NX (Entry/Exit) dispatching. ?

The menu contains File, Options, Tools, Zoom, Marker, Dispatcher. ?When Options >> Edit Mode is selected, a tool bar is embedded in the window that contains all of the items. ?Options >> ToolBar allows selection of Top, Bottom, Left, Right, or Float.?

LE uses Blocks, Paths, LayoutBlocks. ?Paths and LayoutBlocks are automatically derived from the track plan.

The block topology provides the foundation for Segments and Transits which are used by Dispatcher.


Dave Sand


Locked Re: PanelPro Panels #panelpro

 

¿ªÔÆÌåÓý

Dave,
Nicely put together!
As always and as we have talked about before I believe some of the confusion comes about because of the use of the multiple uses and intended meaning of the word ¡°Panel¡±.

Your initial description of the PE might be better described as:
This is the original control panel editor.
The distinction between the two is at best marginal so why not remove the PE and substitute CPE?

The other use comes when using the LE where this deals with the actual layout design rather that the control panel design . In this case it is the layout that can be made up of different PANELS (specific areas of a layout).
I believe it would be much more advantageous to make the distinction to aid understanding and so avoid confusion.

Dave



- Dave

On 29 Jul 2019, at 20:16, Dave Sand <ds@...> wrote:

There have been a number of threads talking about the different PanelPro panels. ?This is my view.

Panel Editor (PE)

This is the original panel. ?The track is represented by icons place on the panel. ?The turnout icon is related to a turnout and will change to represent the turnout position. ?Other icons can be related to sensors, etc. ?When in Edit mode, a second window appears that is used to select icons and the related JMRI table items. ?

The menu contains just Edit and Marker in addition to the standard menu items. ?The edit window only has a File menu. ?An interesting item is "Change view to Control Panel Editor¡±.

PE uses Blocks for block content display. ?It has no automation capability.


Control Panel Editor (CPE)

Control Panel Editor is closely related to Panel Editor. ?Using a File menu option, it is possible to switch between the two. ?The basic icon based approach is the same. ?There are additional icon types, some of which have built in capabilities such as Indicator Track and Indicator Turnout.

The menu contains File, Edit, Options, Zoom, Add Items, Warrants, and Draw Shapes. ?Add Items >> Item Pallet provides a second window with comprehensive set of tabs for adding and maintaining many item types.

CPE uses OBlocks, OPaths, and Portals to define the layout topology. ?This provides the foundation for automation using Warrants.


Layout Editor (LE)

Layout Editor uses lines (track segments) connecting points to represent a track plan. ?Standard items such as turnouts provide a set of points. ?A normal turnout has 3 points. ?Cross-overs have 4 points as do level crossings and slips. ?The end bumper, edge connector and anchor point also provide connection points.

After blocks have been assigned to all of the track segments and standard items, block routing logic can determine the layout topology. ?When signal masts are placed at block boundaries, JMRI can create the signal mast logic using the block topology. ?Sensors can also be placed at block boundaries to implement NX (Entry/Exit) dispatching. ?

The menu contains File, Options, Tools, Zoom, Marker, Dispatcher. ?When Options >> Edit Mode is selected, a tool bar is embedded in the window that contains all of the items. ?Options >> ToolBar allows selection of Top, Bottom, Left, Right, or Float.?

LE uses Blocks, Paths, LayoutBlocks. ?Paths and LayoutBlocks are automatically derived from the track plan.

The block topology provides the foundation for Segments and Transits which are used by Dispatcher.


Dave Sand


Locked Re: Controlling Servos directly connected to Arduino with DCC++ Base Station #arduino #dccpp

 

¿ªÔÆÌåÓý

And if you follow the ¡®remix¡¯ then there are adjustable microswitches and a base that uses less material.

?

I do like this design over the MERG group one that I have some of, and will probably go with this design if I need any further units.

?

?

?

From: [email protected] <[email protected]> On Behalf Of Ken Moordigian via Groups.Io
Sent: 29 July 2019 23:31
To: [email protected]
Subject: Re: [jmriusers] Controlling Servos directly connected to Arduino with DCC++ Base Station

?

Thank you muchly, Dan!

You have not only saved me from a few hours of design time, but you've even improved my design with micro switch mounts!

How thoughtful!

Ken Moordigian
Jackson Livery
818-522-4292

?


On Monday, July 29, 2019 dan <[email protected]> wrote:

Steve,

If you have access to a 3D printer this is the mount I use and i added the adjustable limit switch mount.

Not sure why my remix picture does not show up.
Dan


Locked Re: JMRI Decoder Pro, EasyDCC, and SoundTraxx

 

Hi, Steve,

I intend to use your free image with my Pi. I have downloaded and unzipped the image, written it to a microSD chip, and installed it in my new Pi. The power supply arrived today, so I assembled it and powered it up for the first time. The red LED lit up, and the yellow one next to it flashed rapidly for a few seconds at least. Success!

I didn't get much farther, though. I thought I had an HDMI cable to connect a monitor, but don't. Did plug in a mouse, but couldn't really tell if it did anything.

Looks like a trip to Best Buy tomorrow for their least expensive HDMI cable that's in stock. Best Buy lists a $6 cable with a $6 shipping charge, and a $10 cable I can pick up at the store, maybe. Says it's in stock at my local store, but not on display! Probably could have gotten one delivered cheaper from New Egg.

Don Weigt
Connecticut


Locked Re: "Timeout talking to command station" and "Failed to get response from Command Station"

 

Just to put a period on this question, the LocoBuffer USB arrived today.? I installed it per the instructions, and it works like a charm.? That pretty much says to me the LocoBufferII was either blown, or the drivers were mis-configured.? But the cables, the computer, and the command stations are all fine.

Back in business!? Thanks again, everyone.


Locked Re: Test version 4.17.2 of JMRI/DecoderPro is available for download

 

Ken:

I Installed 4.17.3ish and that has fixed the problem

Sorry I couldn't respond faster this install is on a club layout and I have to go there to do anything, so sometimes it takes me a bit...I also have to uninstall non working packages and reinstall the last working one each time.

Nelson.


Locked Re: New 4.15.7 and CMRI

 

PJ,

The daily build, I posted a link earlier today, has the fix for the baud
rate on CMRI issue. 4.15.8 through 4.17.2 have issues with selecting the
baud rate.

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


Locked Re: Controlling Servos directly connected to Arduino with DCC++ Base Station #arduino #dccpp

 

All;

To remove some of the confusion regarding the adjustable bracket cap, here is a direct link.



Dan