开云体育

Date

Locked Re: Preferences are not saving under PR3 mode

Jay
 

Hi!
I put pics of my Preference screens in the photo's section.
/g/jmriusers/album?id=68645&p=Taken,,,20,1,0,0
Jay


Locked Re: Possible bug in EntryExit

 

Benny,

You might try resetting the block paths. Select Tools >> Blocks. From the Block table menu select Paths >> Delete Paths. Save the panel file and stop JMRI. When you start and load the panel file, the paths will be re-built. Sometimes this will clear up block routing issues.

If that does not help, upload the panel file to ProblemsBeingWorkedOn and I will take a look at it.


Dave Sand

On Aug 20, 2018, at 3:19 PM, Benny Tj?der <etxbct@...> wrote:

Ok, than i know since some times it does not change and I probobly click A to B than.

Another question. I get strange routing, instead of going direct from point A to D it selects turnout from A on track 1 down to track 2 and down to track 3 and than back to track 1 out to D.
Can I make jmri build next hop in a different way? I tried to set metric but it does not work.

/Benny

Den m?n 20 aug 2018 22:11Dave Sand <ds@...> skrev:
Benny,

I did some testing. I can re-create your problem if I to a multi-segment selection. By that I mean I select A and C instead of A and B followed by B and C.

I will add this to my todo list.


Dave Sand



On Aug 20, 2018, at 2:53 PM, Dave Sand <ds@...> wrote:

Benny,

Normally you want to select the Clear option. This disables the option to use a different color during route setup.

The theory behind this option is to let the dispatcher know that the route is being set. Once the setup is complete and the specified time has expired, the track and extra colors go back to the assigned values. If an error occurs during the setup process, the temporary track and extra colors remain. There might have been an error recorded in the system console.


Dave Sand



On Aug 20, 2018, at 2:39 PM, Benny Tj?der <etxbct@...> wrote:

It was set to white. I have changed it to green and than I get track color changed to green instead.
So after I have set an entryexit it turn to alternate color, which is green. If I clear it i get green on some tracks and black on most of the tracks. So it changes the track color from black to green.

/Benny

Den s?n 19 aug 2018 21:52Dave Sand <ds@...> skrev:
Benny,

Use Layout Editor Tools to open the Entry/Exit table. Select Options >> Options from the table menu.

What color do you have set for “Initial color of path”? Based on your description it appears to be White.

If the setup process is interrupted for any reason, the track and extra colors are not set back. A subsequent save will update the panel xml file.


Dave Sand



On Aug 19, 2018, at 1:21 PM, Benny Tj?der <etxbct@...> wrote:

In JMRI 4.12 the color on tracks is changed when an NX is activated.
Track color is changed from black to white on some of the blocks, not all, and extracolor is changed from green to white on same blocks. The only color not changed is the occupiedcolor.

Before setting an EntryExit:
<layoutblock systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="black" occupiedcolor="red" extracolor="green">
<systemName>ILB29</systemName>
<userName>SIIa</userName>
</layoutblock>
After:
<layoutblock systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="white" occupiedcolor="red" extracolor="white">
<systemName>ILB29</systemName>
<userName>SIIa</userName>
</layoutblock>

/Best regards
Benny








Locked Re: Possible bug in EntryExit

 

Ok, than i know since some times it does not change and I probobly click A to B than.

Another question. I get strange routing, instead of going direct from point A to D it selects turnout from A on track 1 down to track 2 and down to track 3 and than back to track 1 out to D.
Can I make jmri build next hop in a different way? I tried to set metric but it does not work.

/Benny

Den m?n 20 aug 2018 22:11Dave Sand <ds@...> skrev:

Benny,

I did some testing.? I can re-create your problem if I to a multi-segment selection.? By that I mean I select A and C instead of A and B followed by B and C.

I will add this to my todo list.


Dave Sand



> On Aug 20, 2018, at 2:53 PM, Dave Sand <ds@...> wrote:
>
> Benny,
>
> Normally you want to select the Clear option.? This disables the option to use a different color during route setup.
>
> The theory behind this option is to let the dispatcher know that the route is being set.? Once the setup is complete and the specified time has expired, the track and extra colors go back to the assigned values.? If an error occurs during the setup process, the temporary track and extra colors remain.? There might have been an error recorded in the system console.
>
>
> Dave Sand
>
>
>
>> On Aug 20, 2018, at 2:39 PM, Benny Tj?der <etxbct@...> wrote:
>>
>> It was set to white. I have changed it to green and than I get track color changed to green instead.
>> So after I have set an entryexit it turn to alternate color, which is green. If I clear it i get green on some tracks and black on most of the tracks. So it changes the track color from black to green.
>>
>> /Benny
>>
>> Den s?n 19 aug 2018 21:52Dave Sand <ds@...> skrev:
>> Benny,
>>
>> Use Layout Editor Tools to open the Entry/Exit table.? Select Options >> Options from the table menu.
>>
>> What color do you have set for “Initial color of path”?? Based on your description it appears to be White.
>>
>> If the setup process is interrupted for any reason, the track and extra colors are not set back.? A subsequent save will update the panel xml file.
>>
>>
>> Dave Sand
>>
>>
>>
>>> On Aug 19, 2018, at 1:21 PM, Benny Tj?der <etxbct@...> wrote:
>>>
>>> In JMRI 4.12 the color on tracks is changed when an NX is activated.
>>> Track color is changed from black to white on some of the blocks, not all, and extracolor is changed from green to white on same blocks. The only color not changed is the occupiedcolor.
>>>
>>> Before setting an EntryExit:
>>> <layoutblock? systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="black" occupiedcolor="red" extracolor="green">
>>>? ? <systemName>ILB29</systemName>
>>>? ? <userName>SIIa</userName>
>>> </layoutblock>
>>> After:
>>> <layoutblock? systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="white" occupiedcolor="red" extracolor="white">
>>>? ? <systemName>ILB29</systemName>
>>>? ? <userName>SIIa</userName>
>>> </layoutblock>
>>>
>>> /Best regards
>>> Benny
>>>
>>
>>
>>
>>
>>
>
>
>





Locked Re: Possible bug in EntryExit

 

Benny,

I did some testing. I can re-create your problem if I to a multi-segment selection. By that I mean I select A and C instead of A and B followed by B and C.

I will add this to my todo list.


Dave Sand

On Aug 20, 2018, at 2:53 PM, Dave Sand <ds@...> wrote:

Benny,

Normally you want to select the Clear option. This disables the option to use a different color during route setup.

The theory behind this option is to let the dispatcher know that the route is being set. Once the setup is complete and the specified time has expired, the track and extra colors go back to the assigned values. If an error occurs during the setup process, the temporary track and extra colors remain. There might have been an error recorded in the system console.


Dave Sand



On Aug 20, 2018, at 2:39 PM, Benny Tj?der <etxbct@...> wrote:

It was set to white. I have changed it to green and than I get track color changed to green instead.
So after I have set an entryexit it turn to alternate color, which is green. If I clear it i get green on some tracks and black on most of the tracks. So it changes the track color from black to green.

/Benny

Den s?n 19 aug 2018 21:52Dave Sand <ds@...> skrev:
Benny,

Use Layout Editor Tools to open the Entry/Exit table. Select Options >> Options from the table menu.

What color do you have set for “Initial color of path”? Based on your description it appears to be White.

If the setup process is interrupted for any reason, the track and extra colors are not set back. A subsequent save will update the panel xml file.


Dave Sand



On Aug 19, 2018, at 1:21 PM, Benny Tj?der <etxbct@...> wrote:

In JMRI 4.12 the color on tracks is changed when an NX is activated.
Track color is changed from black to white on some of the blocks, not all, and extracolor is changed from green to white on same blocks. The only color not changed is the occupiedcolor.

Before setting an EntryExit:
<layoutblock systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="black" occupiedcolor="red" extracolor="green">
<systemName>ILB29</systemName>
<userName>SIIa</userName>
</layoutblock>
After:
<layoutblock systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="white" occupiedcolor="red" extracolor="white">
<systemName>ILB29</systemName>
<userName>SIIa</userName>
</layoutblock>

/Best regards
Benny





Locked Re: Possible bug in EntryExit

 

Benny,

Normally you want to select the Clear option. This disables the option to use a different color during route setup.

The theory behind this option is to let the dispatcher know that the route is being set. Once the setup is complete and the specified time has expired, the track and extra colors go back to the assigned values. If an error occurs during the setup process, the temporary track and extra colors remain. There might have been an error recorded in the system console.


Dave Sand

On Aug 20, 2018, at 2:39 PM, Benny Tj?der <etxbct@...> wrote:

It was set to white. I have changed it to green and than I get track color changed to green instead.
So after I have set an entryexit it turn to alternate color, which is green. If I clear it i get green on some tracks and black on most of the tracks. So it changes the track color from black to green.

/Benny

Den s?n 19 aug 2018 21:52Dave Sand <ds@...> skrev:
Benny,

Use Layout Editor Tools to open the Entry/Exit table. Select Options >> Options from the table menu.

What color do you have set for “Initial color of path”? Based on your description it appears to be White.

If the setup process is interrupted for any reason, the track and extra colors are not set back. A subsequent save will update the panel xml file.


Dave Sand



On Aug 19, 2018, at 1:21 PM, Benny Tj?der <etxbct@...> wrote:

In JMRI 4.12 the color on tracks is changed when an NX is activated.
Track color is changed from black to white on some of the blocks, not all, and extracolor is changed from green to white on same blocks. The only color not changed is the occupiedcolor.

Before setting an EntryExit:
<layoutblock systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="black" occupiedcolor="red" extracolor="green">
<systemName>ILB29</systemName>
<userName>SIIa</userName>
</layoutblock>
After:
<layoutblock systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="white" occupiedcolor="red" extracolor="white">
<systemName>ILB29</systemName>
<userName>SIIa</userName>
</layoutblock>

/Best regards
Benny




Locked Multi-device serial input (was Re: What is the best way to get a number or characters from devices into JMRI

 

There are really several kinds of answers to "How would I keep the multiple streams separate coming into your Jython script in JMRI?”

#1 The best answer is “don’t”. If the connections are short enough, connect all your Arduinos to a cheap USB hub, and have each one present to the computer as a separate serial port. That’ll make everything _much_ simpler, both in your Arduino code and in the PC code.

#2 Use an existing protocol, like C/MRI, to handle all the polling for you. That can be tricky stuff, particularly if you want it to be robust about power-cycling devices while the main program keeps running, tolerating occasional errors, etc. C/MRI isn’t perfect, but it’s more robust than anything a beginner is likely to create on their own. Even if you want to move e.g. characters, just code them into the CMR/I bit-oriented messages, and have a JMRI script pick them up once the C/MRI has gotten them into JMRI memory (I can help with that)

#3 Write your own protocol that polls each device in turn, with code in both JMRI and the Arduinos to handle it.

You _cannot_ just let Arduinos send when the want to, header or no. RS485 doesn’t work that way.

Bob

On Aug 20, 2018, at 11:58 AM, JerryG via Groups.Io <jerryg2003@...> wrote:


Bob - can’t say I understand the fancy line of code in your script to get the serial communication working, but I’m willing to accept it on faith since it works! Question: I’m about to connect multiple Arduinos into a single serial port using RS485 communication (easy code available for this) and an RS485-to-USB converter. How would I keep the multiple streams separate coming into your Jython script in JMRI? I can tag each string with a header indicating which Arduino it is coming from, but then what?
--
Bob Jacobsen
rgj1927@...


Locked Re: What is the best way to get a number or characters from devices into JMRI

 

Bob - can’t say I understand the fancy line of code in your script to get the serial communication working, but I’m willing to accept it on faith since it works!? Question: I’m about to connect multiple Arduinos into a single serial port using RS485 communication (easy code available for this) and an RS485-to-USB converter.? How would I keep the multiple streams separate coming into your Jython script in JMRI?? I can tag each string with a header indicating which Arduino it is coming from, but then what?

To your PC, there aren't multiple streams coming in.? ?There's just one port (can't really tell the difference from RS-232 [or any other serial protocol] at this level).? ?It's up to you (and your devices) to make sure they don't stomp over each other on the incoming data.? ?One of the simplest models is polling:? No device (except the PC) speaks until it is explicitly spoken to.? ?The PC just enumerates all of the expected devices, in order, and asks for the data.? ?Lather, rinse, repeat.? ?

Your code then keeps track of which device it recently asked for data, and then associates the newly incoming data with that device.? ?But that's at the data parsing level, since it's all one serial stream coming in.

david zuhn
Saint Paul, Minn.


Locked Re: Possible bug in EntryExit

 

Hi,
I get color change on all blocks where I have only letters, like SIa,? SIIa, SIIIa,? SX.
Other blocks has numbers in the name, like S32 or S26a1.

/Benny?

Den m?n 20 aug 2018 21:39Benny Tj?der <etxbct@...> skrev:

It was set to white. I have changed it to green and than I get track color changed to green instead.
So after I have set an entryexit it turn to alternate color, which is green. If I clear it i get green on some tracks and black on most of the tracks. So it changes the track color from black to green.

/Benny

Den s?n 19 aug 2018 21:52Dave Sand <ds@...> skrev:
Benny,

Use Layout Editor Tools to open the Entry/Exit table.? Select Options >> Options from the table menu.

What color do you have set for “Initial color of path”?? Based on your description it appears to be White.

If the setup process is interrupted for any reason, the track and extra colors are not set back.? A subsequent save will update the panel xml file.


Dave Sand



> On Aug 19, 2018, at 1:21 PM, Benny Tj?der <etxbct@...> wrote:
>
> In JMRI 4.12 the color on tracks is changed when an NX is activated.
> Track color is changed from black to white on some of the blocks, not all, and extracolor is changed from green to white on same blocks. The only color not changed is the occupiedcolor.
>
> Before setting an EntryExit:
> <layoutblock? systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="black" occupiedcolor="red" extracolor="green">
>? ? ?<systemName>ILB29</systemName>
>? ? ?<userName>SIIa</userName>
> </layoutblock>
> After:
> <layoutblock? systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="white" occupiedcolor="red" extracolor="white">
>? ? ?<systemName>ILB29</systemName>
>? ? ?<userName>SIIa</userName>
> </layoutblock>
>
> /Best regards
> Benny
>





Locked Re: Jython script debugging in JMRI

 

If you open a Script Output window _and_ have the Console window open (from Help menu), Jython should give somewhat-useful error messages in many cases. Some go to one, others to the other, so you need both.

macOS users have BBEdit and similar tools that do some syntax checking and assistance. I don’t know of similar smart editors for Window, but I’m sure they exist.

Bob

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

The community is very helpful in providing example Jython scripts to do a variety of useful functions. Of course, all scripts need to be modified for local circumstances and that is where I start to have a problem. Is there any capability within JMRI to help me in debugging my scripts? I’m just learning Jython and it seems that every time I make a minor change, something breaks and the script just hangs. I’m using Notepad++ for editing and sometimes even find that my indentation gets changed when I load a script into the JMRI script entry window. Eventually, I trace these problems back to a misspelled variable or method name or a forgotten type conversion or some other equally “obvious” problem, but it sure would be helpful to have a tool for doing syntax (and perhaps some semantic) checking for JMRI scripts. I know there are dozens of tools out there, but is there a commonly used “simple” one, perhaps like there is In the Arduino IDE? Any suggestions would be appreciated.
--
Bob Jacobsen
rgj1927@...


Locked Re: Possible bug in EntryExit

 

It was set to white. I have changed it to green and than I get track color changed to green instead.
So after I have set an entryexit it turn to alternate color, which is green. If I clear it i get green on some tracks and black on most of the tracks. So it changes the track color from black to green.

/Benny

Den s?n 19 aug 2018 21:52Dave Sand <ds@...> skrev:

Benny,

Use Layout Editor Tools to open the Entry/Exit table.? Select Options >> Options from the table menu.

What color do you have set for “Initial color of path”?? Based on your description it appears to be White.

If the setup process is interrupted for any reason, the track and extra colors are not set back.? A subsequent save will update the panel xml file.


Dave Sand



> On Aug 19, 2018, at 1:21 PM, Benny Tj?der <etxbct@...> wrote:
>
> In JMRI 4.12 the color on tracks is changed when an NX is activated.
> Track color is changed from black to white on some of the blocks, not all, and extracolor is changed from green to white on same blocks. The only color not changed is the occupiedcolor.
>
> Before setting an EntryExit:
> <layoutblock? systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="black" occupiedcolor="red" extracolor="green">
>? ? ?<systemName>ILB29</systemName>
>? ? ?<userName>SIIa</userName>
> </layoutblock>
> After:
> <layoutblock? systemName="ILB29" occupancysensor="dSIIa" occupidsense="2" trackcolor="white" occupiedcolor="red" extracolor="white">
>? ? ?<systemName>ILB29</systemName>
>? ? ?<userName>SIIa</userName>
> </layoutblock>
>
> /Best regards
> Benny
>





Locked Speed steps Decoder pro Test Throttle

 

I was going to add this on to the Quill question but inadvently hit send ! ? ? When I open a test throttle in Sprog/Decoder pro it defaults to 128 speed steps. I have to go to preferences and change the bullit to 28 steps to get the full use of the slider. In command mode no problem. This happens everytime I open a test throttle in program mode. I hesistate to ask but i can't seem to find the solution on my own. Thanks, Rick.


Locked Re: Preferences are not saving under PR3 mode

 

开云体育

Jay,

Do you have a stand alone PR3? ?Or are you referring to the PR3 built in to the DCS240?

David Klemm
8 Plus
?


From: 32461255040n behalf of
Sent: Monday, August 20, 2018 13:51
To: [email protected]
Subject: Re: [jmriusers] Preferences are not saving under PR3 mode
?
Steve, yes, it is PR3 Standalone Programmer.
That is where it is not working.
I DCS240 mode everything works & the prefs are OK after restart.
In PR3 mode, it always goes to internal after restart.

Jay


Locked Re: Preferences are not saving under PR3 mode

 

Hi
So does it work when you select "pr3 standalone programmer"? Thats a specific option, different from what you described.
Steve G.

On August 20, 2018 2:51:44 PM EDT, Jay <[email protected]> wrote:
Steve, yes, it is PR3 Standalone Programmer.
That is where it is not working.
I DCS240 mode everything works & the prefs are OK after restart.
In PR3 mode, it always goes to internal after restart.

Jay

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Locked BACK to WOW SOUND QUILL CHOICES

 

Sorry, But something I discovered after Michael Mosher Added the quill choices back into the definitions of the V3, V4, WOW Diesel I down loaded and installed the update to the definition and like majic is what there. But what I discovered is when reading a new decoder the quill choices are present but when the loco is saved and then reopened the quill choices are not there. It took me a couple of tries to sort this out. New loco choices are there, saved loco they are not ???


Locked Re: What is the best way to get a number or characters from devices into JMRI

 

Serial input definitely does the trick - thanks Bob for your example script. ?Got it basically working in less than a hour and set up my Arduino sketch and Jython script to capture various times into memories in a couple more. ?Also set up a sensor and can display numbers in memories on a panel when a train passes by. ?Cool!

Bob - can’t say I understand the fancy line of code in your script to get the serial communication working, but I’m willing to accept it on faith since it works! ?Question: I’m about to connect multiple Arduinos into a single serial port using RS485 communication (easy code available for this) and an RS485-to-USB converter. ?How would I keep the multiple streams separate coming into your Jython script in JMRI? ?I can tag each string with a header indicating which Arduino it is coming from, but then what?

Thanks again,
Jerry
___________________________________
jerryg2003@...


Locked Re: Preferences are not saving under PR3 mode

Jay
 

Steve, yes, it is PR3 Standalone Programmer.
That is where it is not working.
I DCS240 mode everything works & the prefs are OK after restart.
In PR3 mode, it always goes to internal after restart.

Jay


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

 

Several points to comment on: ?yes, JMRI has a speedometer, based on passing three sensor controlled areas. ?I’ve got a small layout so trying for something that will work in smaller distance (I’ve even got an idea about doing a rough speed calculation using one IR sensor to measure time across the inter-car gap). ?I do not have DCC++ (not excited about the additional hardware and tinkering that would be required on my part) so am limiting my efforts to configuring my Arduino via C/MRI or serial input. ?I got both working very quickly (although I do have some questions about using multiple Arduinos over a single serial port...). ?And with serial input, I found I can send any character stream to JMRI to be directly loaded into a memory so that’s where I’m focusing my efforts right now. ?[Still trying to understand all of what Dave’s script is doing too].

Thanks all for your input. ?Will let you know how I make out...
Jerry
___________________________________
jerryg2003@...


Locked Re: Jython script debugging in JMRI

 

Jerry,

Better informed members will provide even more information, but for now a short list of sources for clues:

  1. Use the Help -> System console.. menu item to open the JMRI System console window that gives you instant information pertaining to WARN and ERROR messages.
  2. Investigate the information found at to be better able to insert more of your own DEBUG and INFO messages in your "session.log" file, and by the way, the JMRI System console window.
  3. If the script has "print" statements, they will appear on the JMRI System console but do not appear on the session.log file. On the JMRI System console window, those printed lines may be easy to overlook. Use the menu item Panels -> Script Output to open the Script Output window to see the results of the print statements isolated from the other noise and the text that appears can be copied to your clipboard for saving to a text editor.
  4. As an extension of the Logging suggestion in item 2. you might also need to investigate the info suggested concerning the "default.lcf" file that is described about half way down the page in that link.

Cliff in Baja SoCal


Locked Re: Preferences are not saving under PR3 mode

 

Thats if you are trying to use the programming track on the PR4.
If your trying to use the programming track on the dcs240 then its just the command station type.
Steve G.


Locked Re: Preferences are not saving under PR3 mode

 

Don't you mean PR3 standalone programmer?

---------- Original Message ----------
From: Jay <[email protected]>
Date: August 20, 2018 at 1:53 PM


Hi Steve,
In the JMRI Pref's the jmri-managers.defaults are set to Loconet.
It is set to Loconet, PR3 Standalone, Com15.
If I change the prefs to Loconet to internal & save & restart, they reset to
internal.
If I do not restart it stays at Loconet, but I can't program anything.
Dick, sorry, it is the latest at 4.13.2 Java 1.8.0_161.
Like stated earlier, when I change it to my DCS240, it works fine.
My computer is on the other side of a wall from my layout.
Hence the PR4.
Jay