¿ªÔÆÌåÓý

Date

Locked Re: Tutorial for Layout Editor

 

This thread seems to have gotten off topic with a life of it's own.

The original poster and the subject line both request help with LAYOUT Editor.

From within the JMRI web page, a search for layout editor turns up too many hits to think about, but among the first few are:



It is not a sure bet that any of these will meet the original poster's needs, but we can wait to hear for requests for more specific information.

There have been numerous changes, improvement, and options added to the Layout Editor in the last several years, thanks to the diligent work of the dedicated Layout Editor programmers/contributors. Perhaps one of them could point us to something more recent in the tutorial arena?

Each of the Editors in PanelPro is a big topic by itself, and seems like a huge learning curve for someone who already knows and uses one of the Editors but suddenly needs to help a friend with another of the Editors. Ask me how I found that out.

An even bigger curb is presented to a new user.

Cliff in Baja SoCal


Locked Re: basic hook up laptop to powerhouse #nce

 

2020-02-10 11:57:09,529 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2020-02-10 11:57:09,576 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: C:\Users\12402\JMRI\log\messages.log [main]
2020-02-10 11:57:09,576 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: C:\Users\12402\JMRI\log\session.log [main]
2020-02-10 11:57:09,592 apps.AppsBase? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - DecoderPro version 4.18+R37ad3d0 starts under Java 1.8.0_231 on Windows 10 x86 v10.0 at Mon Feb 10 11:57:09 MST 2020 [main]
2020-02-10 11:57:10,029 gui3.Apps3? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO? - Starting with profile My_JMRI_Railroad.3f10741f [main]
2020-02-10 11:57:10,529 node.NodeIdentity? ? ? ? ? ? ? ? ? ? ?INFO? - Using bf2c9f9f-bfb6-4d19-a2bf-3db1ddfedc95 as the JMRI storage identity for profile id 3f10741f [AWT-EventQueue-0]
2020-02-10 11:57:10,779 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main]
2020-02-10 11:57:10,873 simulator.SimulatorAdapter? ? ? ? ? ? INFO? - NCE Simulator Started [Nce Simulator]
2020-02-10 11:57:10,935 nce.NceConnectionStatus? ? ? ? ? ? ? ?INFO? - NCE EPROM revision = 6.2.1 [AWT-EventQueue-0]
2020-02-10 11:57:11,373 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main]
2020-02-10 11:57:11,373 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is C:\Users\12402\JMRI\My_JMRI_Railroad.jmri\ [main]
2020-02-10 11:57:11,373 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is C:\Users\12402\JMRI\My_JMRI_Railroad.jmri\ [main]
2020-02-10 11:57:11,373 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is C:\Users\12402\JMRI\ [main]
2020-02-10 11:57:11,373 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is C:\Users\12402\ [main]
2020-02-10 11:57:11,373 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
?


Locked JMRI throttle with 4.18

 

¿ªÔÆÌåÓý

At the club I update our programming PC first with the production updates before the PC that runs the layout. I also try to keep up on all the post here to see if there is known issues and if the test release is the route to go.?

We are getting this error after going to 4.18 and part of me thinks it was something I read about and can¡¯t find now in groups.io.?

Failed to create throttle. Failed to get response from command station.?

Windows PC going through a LocoBuffer to a digitrax command station to a programming track.?

David Klemm
11 PRO Max


Locked Re: Tutorial for Layout Editor

 

Hi David,
I'm very interested in this as I use Anyrail myself and I'd like to do the same thing.
Could you please go through the steps involved? I've exported my anyrail track layout as a JMRI file, but I can't see from the tutiorial, JMRI docs or the available JMRI menu options how to get it into Panelpro.

Thank you!
Charles


Locked basic hook up laptop to powerhouse #nce

 

WARNING?? ....?? NEWBI needs help!? I have connected my Powerhouse to my laptop via a recommended FDTI cable and think I have JMRI loaded correctly. When I try to program nothing seems to change. I have tried several different manufacturers of Locos. Things seem to change on the screen, but when I write changes to sheet. I get no change on the Loco. The on screen throttle also does nothing. Everthing works fine with my handhelds.? How do I know if the NCE system is talking to the laptop? I'm very frustrated! I have watched hours of youtube how to's but cannot seem to find what I am doing wrong. Thanks, Bruce in Mount Airy, MD? ?


Locked Id Tag API in JMRI

 

Hi all

can anyone provide a method to access the user data attached to an ID tag within a script, I can find the one for the system name but not the user details

Thanks
Tim


Locked Re: Tutorial for Layout Editor

 

Adding to this thread on Tutorial for Layout Editor and AnyRail ... I have imported my AnyRail track design into JMRI Layout Editor and it would seem Layout Editor has deciphered and drawn my track plan.

Question - How do you or can you toggle off the AnyRail drawing in the background?

Thanks,
David


Locked Re: BLI Paragon 2 and 3 reading

 

Manual says " this sets the DURATION of the service mode feedback pulse.? I do not follow the " lessen the amount of power ".?
Marc: My guess is it's imprecise language that confuses "power" with "energy". Using scientifically accurate language, by reducing the duration of the acknowledge motor pulse when programming the decoder, less energy is drained from the capacitor so less has to be replaced from the programming device. But when electricity is involved everyday language often uses "power" when "energy" would be more accurate. So the manual should perhaps have said "lessen the amount of energy".

Jan


Locked Re: Operations manifest printing #operationspro

 

David,
Thanks for the tip.?? Works well although it is a few more steps.
Irvin


On Sun, Feb 9, 2020 at 7:51 PM David Cochrun <cochrun@...> wrote:
I print my manifests to pdf and examine them there.? They show up in color.? Then if satisfied I print to paper from the pdf.? My main reason for going this route is to save toner and paper.
Dave...


Locked Re: New JMRI Version breaks my panels #4-18

 

Thanks Dave!? I've downloaded your file and opened it in my environment and no errors!??

I guess the bottom line is that the newer version of JMRI is less forgiving than the older version.??

I'll look into all of the points you spelled out in your message and study up on what I did wrong.

Thanks again,

Bob Z


Locked Re: Operations Feature Request #operationspro

 

On Sat, Feb 8, 2020 at 09:45 AM, Dennis Drury wrote:
Thanks Phil, but the DS is in a different room from where the manifests are generated and sometimes the DS is in a different state.? Bottom line is to give the layout a more prototype feel by generating prototype paperwork.? If it makes it easier for the visiting operators so much the better.
?
If I knew how to code it I'd do this myself but that's not in the cards.? Thanks.
Dennis, I am not sure how the information is to be delivered to the Dispatcher in his/her remote location.? I had assumed that a printer could spew out the reports needed at the Dispatcher location. If not a direct connection (or networked through TCP/IP somehow, which is above my pay grade), could reports be emailed??

On my JMRI using a highly modified (bastardized some might successfully argue; hope Dan is not listening) Manifest Creator Excel add-on, I can print a report from the csv file that is generated when a train is built.? I normally print all my Manifests and Switchlists to a PDF file and store them for distribution via email or by USB stick.? In testing my idea for a Dispatcher summary, I have generated a report for one train (repeatable for each train built) with a line showing the Station, departure time, direction, quantity of locos assigned (not used on my railroad, but should work if actually used), number of cars and total (estimated) tonnage for each stop on that route.? It could also show full and empty counts, but I do not use that, just total car counts.

Here is a text version of my report:
"Train Manifest #44?? Page - 1? ? 2/10/2020 7:34
MANIFEST for Train #44-
Train departs Elizabeth Northbound @ 13:01 with 1 Locos, 9 Cars , 628 Tons
Train departs Tate Northbound @ 13:02 with 1 Locos, 8 Cars , 603 Tons
Train departs Ellijay Northbound @ 13:11 with 1 Locos, 6 Cars , 453 Tons
Train departs Blue Ridge Northbound @ 13:23 with 1 Locos, 7 Cars , 531 Tons
Train departs Murphy Junction Northbound @ 13:32 with 1 Locos, 4 Cars , 252 Tons
Train departs Copperhill Northbound @ 13:44 with 1 Locos, 0 Cars , 0 Tons
Train terminates at North Etowah"

I do not track cabeese, so that count is not shown and for certain eras would be irrelevant.? For loco count, since I do not use them, I added code so that if 0 then it's 1 since I know the train would have at least one.? If locos are used in JMRI, the csv file generated when a train is built will include adds or drops (helpers) and starting quantity and the code in Excel should use that info.???

Due to the major (for us) snowstorm Saturday, our planned Op Session was postponed until Wednesday, so I might print these out and talk to our Dispatcher about their usefulness.? Maybe something like this would work for your idea, and if so, the Creator's website (if you do not already use them) is .? Since my old Excel doesn't behave with the latest version, I have kept an old one running and keep modifying it to force it to my will, usually with the precision of a crowbar on an HO model (I am a hacker, not a programmer).?

If this is close to what you imagined, maybe Dan or I can come up with how to get it from the new Creator Excel program. Since you are using Operations, the files needed are being generated (csv manifest files) and the Manifest Creator just reads that file and builds the manifest one line at a time.? If all that is needed is the station summary (like I have shown), it may be easier than what I went through to get it.? There may also be a way to get all trains into one long report, but that would take some file manipulation.? One page per train (unless too many stations for one page) may be the best option.?

Phil in gorgeous Young Harris, Georgia, USA


Locked Re: JMRI and DCC++: Exception with Simple Programmer in Ops Accessory Byte/Extended Byte mode #dccpp #4-18

 

¿ªÔÆÌåÓý

Tim,

Sorry, resending with corrections:

On 10 Feb 2020, at 5:32 PM, tnt23 <tim.tashpulatov@...> wrote:

Thank you for pointing this out. I too suspect the issue is with DCC++ not being updated for a good few years now.

I wouldn't mind fixing the DCC++ code, especially if it boils down to just increasing the maximum DCC packet length.
(Pushing the changes to DCC++ 'official' repository would be another story).

We need to be able to send 6 byte packets.

In the DCC++ code version I was looking at:

- Documentation at lines 482 ff of SerialCommand.cpp needs changing.

- The code lines that need changing are at line 189 onwards of PacketRegister.cpp:

///////////////////////////////////////////////////////////////////////////////

void RegisterList::writeTextPacket(char *s) volatile{
??
? int nReg;
? byte b[6];
? int nBytes;
? volatile RegisterList *regs;
? ??
? nBytes=sscanf(s,"%d %x %x %x %x %x",&nReg,b,b+1,b+2,b+3,b+4)-1;
??
? if(nBytes<2 || nBytes>5){ ? ?// invalid valid packet
? ? INTERFACE.print("<mInvalid Packet>");
? ? return;
? }
? ? ? ? ?
? loadPacket(nReg,b,nBytes,0,1);
? ??
} // RegisterList::writeTextPacket()
??
///////////////////////////////////////////////////////////////////////////////


A few changes needed there. There could be other implications of this change...


Dave in Australia





Locked Re: JMRI and DCC++: Exception with Simple Programmer in Ops Accessory Byte/Extended Byte mode #dccpp #4-18

 

¿ªÔÆÌåÓý

Tim,

On 10 Feb 2020, at 5:32 PM, tnt23 <tim.tashpulatov@...> wrote:

Thank you for pointing this out. I too suspect the issue is with DCC++ not being updated for a good few years now.

I wouldn't mind fixing the DCC++ code, especially if it boils down to just increasing the maximum DCC packet length.
(Pushing the changes to DCC++ 'official' repository would be another story).

We need to be able to send 6 byte packets.

In the DCC++ code version I was looking at:

- Documentation at lines 482 ff of SerialCommand.cpp needs changing.

- The code lines that need changing are at line 189 onwards of PacketRegister.cpp:

void RegisterList::writeTextPacket(char *s) volatile{
??
? int nReg;
? byte b[6];
? int nBytes;
? volatile RegisterList *regs;
? ??
? nBytes=sscanf(s,"%d %x %x %x %x %x",&nReg,b,b+1,b+2,b+3,b+4)-1;
??
? if(nBytes<2 || nBytes>5){ ? ?// invalid valid packet
? ? INTERFACE.print("<mInvalid Packet>");
? ? return;
? }

A few changes needed there. There could be other implications of this change...


Dave in Australia





Locked Re: SCRIPTING - Can a script obtain the names of classes that are already running #scripting

 

Hi Bob,

Thanks again for your help.

I've achieved what I wanted to using your code samples, although I did have to change them slightly.? I was receiving errors that suggested the code was expecting 1 more value passed to it than what was being done.? So instead of using:

? ??jmri.jmrit.automat.AutomatSummary.get(i).getName()

I had to use:

jmri.jmrit.automat.AutomatSummary.instance().get(i).getName()

and the same with the code to step through the classes:

range(jmri.jmrit.automat.AutomatSummary.instance().length())

I found this from one of your previous posts on this forum.

Thanks again!
Trevor


Locked Re: JMRI and DCC++: Exception with Simple Programmer in Ops Accessory Byte/Extended Byte mode #dccpp #4-18

 

Dave,

Thank you for pointing this out. I too suspect the issue is with DCC++ not being updated for a good few years now.

I wouldn't mind fixing the DCC++ code, especially if it boils down to just increasing the maximum DCC packet length.
(Pushing the changes to DCC++ 'official' repository would be another story).

Regards

Tim


Locked Re: Operations manifest printing #operationspro

 

I print my manifests to pdf and examine them there.? They show up in color.? Then if satisfied I print to paper from the pdf.? My main reason for going this route is to save toner and paper.
Dave...


Locked Re: JMRI and DCC++: Exception with Simple Programmer in Ops Accessory Byte/Extended Byte mode #dccpp #4-18

 

tnt23,

On 10 Feb 2020, at 7:06 AM, tnt23 <tim.tashpulatov@...> wrote:

I am running JMRI 4.18+R37ad3d0 with Java 11.0.6 in Ubuntu, and DCC++ Basestation. When using Simple Programmer in Ops Accessory Byte or Ops Accessory Extended Byte, I get the following error:
I looked at this at one stage, studied the DCC++ code and found that there's a maximum DCC packet length defined in the DCC++ code and that its one (or possibly two) bytes too short for NMRA S9.2.1 Ops Accessory Byte or Ops Accessory Extended Byte commands.

I came to the conclusion that, in order to solve the problem, the DCC++ code would have to be recompiled with this defined value changed.

But since I don't have the required Arduino hardware, nor the familiarity with recompiling the DCC++ code, plus the fact that there's nothing we can do in the JMRI code to work around it, I put the problem aside.

Dave in Australia


Locked Re: Canusb ports

 

If Zorin is derived from Ubuntu or Debian, you probably need to have the "dialout" group assigned to the user running JMRI.

In a terminal window, run the id command and see if your user has the "dialout" group.

If not:

sudo adduser ${USER} dialout

Dave Sand



----- Original message -----
From: "brosandbabes1611 via Groups.Io" <brosandbabes1611@...>
Subject: [jmriusers] Canusb ports
Date: Sunday, February 09, 2020 4:44 PM

I am trying to get Zorin Linux to talk to MERG canusb4, and have entered the MERG settings, but is says the port?ttyACM0??is in use what ever I try. A browser search indicates that it is to do with permissions.
I don't know what to do.
Can someone please help?


Locked Canusb ports

 

I am trying to get Zorin Linux to talk to MERG canusb4, and have entered the MERG settings, but is says the port?ttyACM0??is in use what ever I try. A browser search indicates that it is to do with permissions.
I don't know what to do.
Can someone please help?


Locked Re: SCRIPTING - Can a script obtain the names of classes that are already running #scripting

 

Thanks Bob