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: 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,
toggle quoted message
Show quoted text
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: |
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, |
Locked
Re: Possible bug in EntryExit
Benny,
toggle quoted message
Show quoted text
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: |
Locked
Re: Possible bug in EntryExit
Benny,
toggle quoted message
Show quoted text
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: |
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 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:
|
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:-- 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, |
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
Steve, yes, it is PR3 Standalone Programmer.Sent: Monday, August 20, 2018 13:51 To: [email protected] Subject: Re: [jmriusers] Preferences are not saving under PR3 mode ?
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
toggle quoted message
Show quoted text
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. --
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: 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:
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?
toggle quoted message
Show quoted text
---------- Original Message ---------- |
to navigate to use esc to dismiss