开云体育

Date

Locked Re: Use JMRI as Stationary Sound Decoder

 

No, I had not seen it.? That looks like exactally what I need.? Thank you for sharing!


On Thu, May 7, 2020, 9:23 PM Alex Le?o <alexleao@...> wrote:
Hi Mark,

Do you know this??


--
Alex Le?o



On Thu, May 7, 2020 at 9:47 PM Mark Dane <mark.dane@...> wrote:
Hi,?
I model N-scale and none of my locomotives have sound decoders.? I would like to set up JMRI to function as a stationary sound decoder for my locomotives.? So when Press F1 on the throttle, JMRI plays a bell sound.? I see there is a ThrottleSound.py example with the basics of this.??

I was wondering if anyone has built a more robust version of this with the ability to support multiple locos and multiple sounds?

Thanks!


Locked Re: Route Table "Automatically Generate System Name" overwriting existing entries #4-18 #routes #mac-os #tables

SimonB
 

Thanks Dave for the comprehensive reply. Yup, I2R (typo on my part), and 'None' as the connection type.

I don't have a planned DCC system, but I'll try as you suggest.

Cheers
Simon


Locked Re: How to get decoder pro to work on an imac running OS catalina, a Locobuffer-USB and a digitrax DCS51 command station #mac-os #digitrax #locobuffer-usb

 

开云体育

attachments,



On 8 May 2020, at 10:20, robertlambert via <robertlambert@...> wrote:

Hi Dave,

Everything you have written, I had already previously done.
However I have gone over it all again.?
I removed all instances of FTDI in the Libary/Extension folder, and re- downloaded the driver from the reference
you sent (the same one?as I had previuosly used).
There is a reference to Locobuffer in the system report for USB, and this does get removed when I unplug
the device and re-appear when I plug it back in.

After running the looping command in Terminal, and plugging in the LocoBuffer-USB device, nothing changed,
no device names appeared.
I have attached a screenshot.?
I have also attached a screenshot of the driver plist, i.e.
Library/Extensions/FTDIUSBSerialDriver.kext/plist showing the entry for LocoBuffer.
In System Preferences /Security and Privileges/ I can see no reference to the driver - this where I came unstuck before,
as I can not see any way to approve the driver.

Does any of this point to the Locobuffer being faulty. I have thought of getting a Digitrax PR4 but don't
want to purchase another device if that won't work either (It does not appear to be approved for the mac OS systems
only windows)

As an aside, my rail system works correctly with the Zephyr command station, and I can read and write CVs with that on the?
programming track. I also use devices from megapoint controllers, and can send DCC commands from that via the Zephyr.
I also have a throttle connected to loconet and that performs successfully I.e. the loconet does work,

any further thoughts or suggestions

many thanks

regards

Robert



?


Locked Re: How to get decoder pro to work on an imac running OS catalina, a Locobuffer-USB and a digitrax DCS51 command station #mac-os #digitrax #locobuffer-usb

 

sorry, unable to add the attachments


Locked Re: How to get decoder pro to work on an imac running OS catalina, a Locobuffer-USB and a digitrax DCS51 command station #mac-os #digitrax #locobuffer-usb

 

Hi Dave,

Everything you have written, I had already previously done.
However I have gone over it all again.?
I removed all instances of FTDI in the Libary/Extension folder, and re- downloaded the driver from the reference
you sent (the same one?as I had previuosly used).
There is a reference to Locobuffer in the system report for USB, and this does get removed when I unplug
the device and re-appear when I plug it back in.

After running the looping command in Terminal, and plugging in the LocoBuffer-USB device, nothing changed,
no device names appeared.
I have attached a screenshot.?
I have also attached a screenshot of the driver plist, i.e.
Library/Extensions/FTDIUSBSerialDriver.kext/plist showing the entry for LocoBuffer.
In System Preferences /Security and Privileges/ I can see no reference to the driver - this where I came unstuck before,
as I can not see any way to approve the driver.

Does any of this point to the Locobuffer being faulty. I have thought of getting a Digitrax PR4 but don't
want to purchase another device if that won't work either (It does not appear to be approved for the mac OS systems
only windows)

As an aside, my rail system works correctly with the Zephyr command station, and I can read and write CVs with that on the?
programming track. I also use devices from megapoint controllers, and can send DCC commands from that via the Zephyr.
I also have a throttle connected to loconet and that performs successfully I.e. the loconet does work,

any further thoughts or suggestions

many thanks

regards

Robert



?


Locked Displaying the "Alternative Track Colour" when using Logix (or Lroute or anything else that works) #layouteditor #logix

 

Some may remember my name from a while back when I was trying to get started and having the usual difficulties.? Many of you were very helpful, and indeed without your help I wouldn't have the working system that I have now.? The main help came from Dave Sand - but I have thanked him separately.? To those who helped thanks.

My control system has worked well and run my small UK layout well.? It's fully interlocked, BUT I chickened out on block occupancy.? It would probably have been the final straw back than anyway.? Now I am going to have a go.

I would LIKE to mimic the UK approach of having the track dark grey and marking a selected route through it in white.? The occupancy would show up red and clear to dark grey after clearance.? The switching to red on a sensor is easy enough (and I already do this manually) but the white route is different. There IS an alternative colour for the track and both Entry/Exit NX facilities and Dispatcher:

NX: "The full interlock will also set the state of the layout Blocks to use the alternative color, and the NX sensor buttons will remain in a solid active state".
Dispatcher: "Check Use alternate color for allocated Blocks to use the Layout Editor alternate unoccupied color for allocated Blocks in Layout Editor panels. This option is designed to make it easier for the dispatcher to see which Sections have been allocated."

Sadly neither NX or Dispatcher are suitable for my use.

I am sorry, but I have searched and searched but can find no way to cause this colour change in Logix.? I am happy to use other facilities or even Scripting if I must.? Can anybody please tell me how?


Locked Re: Use JMRI as Stationary Sound Decoder

 

Hi splasher,

Am 08.05.2020 um 04:02 schrieb splasher:
The only download side to it is the source of the sound never moves, but it does a good job of ramping up the effect as you increase speed of the loco.
JMRI supports OpenAL, a 3D Audio solution. See AudioExample.py for an example of moving sound.

To setup VSD for moving sound see the section "Location Following" and


Klaus


Locked Re: Use JMRI as Stationary Sound Decoder

 

Hi Mark,

Am 08.05.2020 um 02:45 schrieb Mark Dane:
Hi,
I model N-scale and none of my locomotives have sound decoders.? I would like to set up JMRI to function as a stationary sound decoder for my locomotives.? So when Press F1 on the throttle, JMRI plays a bell sound.? I see there is a ThrottleSound.py example with the basics of this.
I was wondering if anyone has built a more robust version of this with the ability to support multiple locos and multiple sounds?
Yes, there is. It's called "Virtual Sound Decoder" (VSD).

The documentation is available here:


VSD also works in JMRI simulator mode. Or search in YouTube for "Virtual Sound Decoder" to get an impression of VSD.

Klaus


Locked Re: AbstractAutomaton and stop() #scripting

 

Thanks Bob.

I'll implement something, and post the results back here after I've carried out some testing.

I'm not sure when a thread would be "waiting to get a throttle", but for reference my classes each grab a specific loco throttle in the init() section (with a getThrottle() call), then implement speed changes etc. as required, with no sharing of throttles between the classes.

Trevor


Locked Re: Route Table "Automatically Generate System Name" overwriting existing entries #4-18 #routes #mac-os #tables

 

Simon,

Based on your description, here are the facts as I see them.

  • You probably meant to say I2R:AUTO:0001. ?Not IR2:AUTO:0001.
  • You have the JMRI connection defined as "None".

If the facts are correct, then here is what is happening,

The None connection type creates a second Internal connection. ?The first one has a connection prefix of ?I and the second one is I2. ?This results in names like I2R.... or I2S.... etc. ?I never use None because it causes problems like this. ?If you have a planned DCC system, you can use it and specify the connection type as Simulator. ?I use Digitrax for my simulated connections.

Prior to test release 4.19.3, the auto number code incremented the value after the first 8 characters, which normally leaves 0001, 0002, etc. ?With None connection type, the value after the first 8 charactrers is ":0001". ?Notice the colon. ?When arithmetic is done on that, it fails so 0001 is used instead.

If you are not using None for the connection and the first part of the really is IR2, then you should only need to remove the 2.

Dave Sand

----- Original message -----
From: SimonB <simon@...>
Subject: [jmriusers] Route Table "Automatically Generate System Name" overwriting existing entries #4-18 #routes #mac-os #tables
Date: Wednesday, May 06, 2020 3:00 PM

Hi all,

It may be something obvious that I've overlooked, but when I re-open a previously saved Panel, add a new Route to the existing route table and choose "Automatically Generate System Name", the name generated always begins at 0001 (eg IR2:AUTO:0001). This overwrites the existing route that has this automatically generated system name from an earlier session.

Is there anywhere that I can specify what integer the sequence should begin with, in order to avoid this happening?

I've been hacking around the problem by doing a search and replace on the xml file for IR2:AUTO: to some other string (eg IR2:EXISTING:) prior to re-opening a panel to continue working on it.

I have no control system attached, I'm using JMRI to visualise and experiment with routes on a layout plan exported from RailModellerPro.

PanelPro 4.18+R37ad3d0, Java version 10.0.2 on Mac OSX 10.11.6

Thanks for any pointers.
Simon


Locked Re: AbstractAutomaton and stop() #scripting

 

Sort-of.

The handle() routine in a automaton thread stops the execution quite cleanly if it returns false. The best way to cleanly shut down a thread is to have your handle routine return some variable, call it “self.shouldIKeepGoing” which is normally true. When the outside world wants it to stop, it sets that variable to false so the loop ends the next time around.

But that’s not really an emergency stop, as the loop will continue through the rest of its current turn.

You can call stop() with syntax something like this:

jmri.jmrit.automat.AutomatSummary.instance().get(3).stop()

or

箩尘谤颈.箩尘谤颈迟.补耻迟辞尘补迟.础耻迟辞尘补迟厂耻尘尘补谤测.颈苍蝉迟补苍肠别().驳别迟(“鲍苍濒耻肠办测罢丑谤别补诲”).蝉迟辞辫()

_but_ there’s a small chance that will cause unrecoverable errors. (The button push is a little more reliable for technical reasons, but it’s not 100% either) In particular, if you do that while the thread is waiting to get a throttle, you’ll probably put that throttle out of service until you restart JMRI.

There are things we could do to make that a bit more reliable, but I doubt it’ll ever be 100% bulletproof. Maybe give it a try (with nothing moving!) and see how it goes?

Bob


On May 7, 2020, at 6:36 PM, Trevor_R <twr@...> wrote:

Using jmri.jmrit.automat.AutomatSummary.instance().length() I can step through a list of the classes I have running within my JMRI session, and I can get each class name using the getName() function.

I'm wondering if it is possible to use the AbstractAutomaton stop() method within one script to stop a class from a completely different script running (as if it was killed from the Thread Monitor). I have multiple scripts running on my layout, each one starts a class that is controlling a specific locomotive, as well as some other "Master" scripts that control the layout as a whole and direct the individual loco scripts to perform specific functions.

My usage case is a type of controlled "emergency stop" that would be triggered from a panel control. If activated, the control would launch a new script, which would perform the following:
? Loop through all my locomotives, and
? Set the speed to zero (which uses acceleration in the decoders) or -1 (immediate stop) - this is to be determined later
? Locate the class that is responsible for this loco control and stop it, regardless of what the class is currently doing
? Other tidy up as necessary to return the layout to a defined condition
? Exit
So after this script is executed, I want all the locos to be stopped, and the other classes that were running to be stopped and removed from the Thread Monitor.

Can it be done?
--
Bob Jacobsen
rgj1927@...


Locked Re: How to get decoder pro to work on an imac running OS catalina, a Locobuffer-USB and a digitrax DCS51 command station #mac-os #digitrax #locobuffer-usb

 

Robert,

On 8 May 2020, at 9:15 AM, robertlambert via groups.io <robertlambert@...> wrote:

yes Dave I have gone through all of that. That is what led me to believe that it is loading the driver that is the problem.
Decoder pro runs, it will not read or write any cvs. No data is coming across the USB interface, i.e. LocoBuffer-USB.
Don't even start JMRI until you have provided the answers below.

It seems to be something with catalina. Using terminal, I can list the driver, it is in the correct directory,but as soon as I
That means very little.

try to load it, I get a message saying that is not loadable. I have logged on as root user, but still the same message.
Don't try that. Go back to you normal user account.

It then gets complicated as it says look at the system log or kect(8), and at that point I am "lost" !
Don't try that.

Let's take this from the top again, this time following my instructions exactly and report exactly what you see at each step:

- Do not use JMRI as a troubleshooting tool. Don't touch JMRI until you have dealt properly with, and provided responses to, each step.

- Go to both "/System/Library/Extensions" and "/Library/Extensions". Remove anything mentioning FTDI. Restart your Mac.

- Plug your LocoBuffer-USB in.

- Open "System Information" and check the USB section.

Q1) Can you see any device with a Vendor ID/Manufacturer of FTDI?

- Unplug your LocoBuffer-USB.

- Use File->Refresh and check the USB system again.

Q2) Did the FDTI device disappear?

- Go to <> and download the VCP drivers (not the D2XX ones). Install these and reboot your Mac.

- Using terminal, run my looping command:
while : ;do clear;ls -lt /dev|head;i=$((i+1));echo $i;sleep 1;done

- Plug your LocoBuffer-USB in.

Q3) Did any devices with a name containing FT appear?

- Go to System Preferences->Privacy and Security and see if Catalina wants you to approve using the driver. Do so if asked.

Q4) Back at the looping terminal command, do any devices with a name containing FT now appear or appear/disappear as you plug/unplug the LocoBuffer's USB cable.

Q5) If so, report back what names they have.

Go no further and report back with answers to these questions.

Dave in Australia


Locked Re: JMRI & Digikeijs DR5000

 

开云体育

Jay check out the Ryan from Iron Planet‘s ?YouTube video it’s all there?
Cheers
G

George Bryan
Blaxland NSW
Australia?

On 8 May 2020, at 8:24 am, Jay <[email protected]> wrote:

?Hi!
Does anyone know if this DCC Basestation supported in JMRI?
Looking, I could not find anyway to connect it.
The DR5000 has an IP address of 192.168.1.100
It is not on my network as I don't have that IP range available.
Any ideas????

Jay


Locked Re: Route Table "Automatically Generate System Name" overwriting existing entries #4-18 #routes #mac-os #tables

 

Hi simon, a wild guess, but is your panel old, being loaded by a newer version of JMRI? I'm suspecting that routes are getting renamed on load, but somehow it's looking at 'old' names when coming up with the new route's name.? Try storing the panel, quitting and loading the new panel, and see if it happens again.

In either case, let the developers know what version of JMRI you're running, and somebody will probably want to look at the panel file.


On Wed, May 6, 2020 at 1:04 PM SimonB <simon@...> wrote:
Hi all,

It may be something obvious that I've overlooked, but when I re-open a previously saved Panel, add a new Route to the existing route table and choose "Automatically Generate System Name", the name generated always begins at 0001 (eg IR2:AUTO:0001). This overwrites the existing route that has this automatically generated system name from an earlier session.

Is there anywhere that I can specify what integer the sequence should begin with, in order to avoid this happening?

I've been hacking around the problem by doing a search and replace on the xml file for IR2:AUTO: to some other string (eg IR2:EXISTING:) prior to re-opening a panel to continue working on it.

I have no control system attached, I'm using JMRI to visualise and experiment with routes on a layout plan exported from RailModellerPro.

PanelPro 4.18+R37ad3d0, Java version 10.0.2 on Mac OSX 10.11.6

Thanks for any pointers.
Simon


Locked Re: Saved Warrants not appearing in warrant table

 

Replaced the computer and downloaded Version 4.19.5.?
The Warrants are now saving to the Warrant table. Everything is now working fine.

Phil


Locked Re: Use JMRI as Stationary Sound Decoder

 

The VSD setup works fairly well.? The only download side to it is the source of the sound never moves, but it does a good job of ramping up the effect as you increase speed of the loco.??
--
-splasher in somd


Locked Re: JMRI & Digikeijs DR5000

 

Hi Jay,

I can confirm that the DR5000 works with JMRI - it is what I am using, as well as a few of the digikeijs modules (feedback modules, servo modules and digital output modules).

If you want to have the DR5000 on your network, you will need to change the IP address of the DR5000 using a USB cable from your PC and the Digikeijs DR5000 application.? Once this is done you could connect the DR5000 to your network and have JMRI control it as per the info Peter provided.

Trevor


Locked AbstractAutomaton and stop() #scripting

 

Using?jmri.jmrit.automat.AutomatSummary.instance().length() I can step through a list of the classes I have running within my JMRI session, and I can get each class name using the getName() function.

I'm wondering if it is possible to use the AbstractAutomaton stop() method within one script to stop a class from a completely different script running (as if it was killed from the Thread Monitor).? I have multiple scripts running on my layout, each one starts a class that is controlling a specific locomotive, as well as some other "Master" scripts that control the layout as a whole and direct the individual loco scripts to perform specific functions.

My usage case is a type of controlled "emergency stop" that would be triggered from a panel control.? If activated, the control would launch a new script, which would perform the following:
  • Loop through all my locomotives, and
    • Set the speed to zero (which uses acceleration in the decoders) or -1 (immediate stop) - this is to be determined later
    • Locate the class that is responsible for this loco control and stop it, regardless of what the class is currently doing
  • Other tidy up as necessary to return the layout to a defined condition
  • Exit
So after this script is executed, I want all the locos to be stopped, and the other classes that were running to be stopped and removed from the Thread Monitor.

Can it be done?


Locked Re: Use JMRI as Stationary Sound Decoder

 

Hi Mark,

Do you know this??


--
Alex Le?o



On Thu, May 7, 2020 at 9:47 PM Mark Dane <mark.dane@...> wrote:
Hi,?
I model N-scale and none of my locomotives have sound decoders.? I would like to set up JMRI to function as a stationary sound decoder for my locomotives.? So when Press F1 on the throttle, JMRI plays a bell sound.? I see there is a ThrottleSound.py example with the basics of this.??

I was wondering if anyone has built a more robust version of this with the ability to support multiple locos and multiple sounds?

Thanks!


Locked Re: Operations-manifests #operationspro

 

开云体育

Dear Dave

I dont know what i did different but all the files are now working as they should.
I dont know if its just chance but i cant fix anything till it fails again.

Thank you
Tony


On May 5, 2020, at 7:09 PM, inspectordave <inspectordave@...> wrote:

?Tony

Could you send me your data files so I can "see" how you set this up?

later

Dave
Trempealeau WI