¿ªÔÆÌåÓý

Date

Locked Anyrail to JMRI Panel Pro ?

 

I am also was attempting move my Anyrail layout file to JMRI. From Anyrail I exported the file to JMRI but I cannot find any way to import it into Panel Pro editor or Layout editor. ?
--
Terry Cummins
S.E. Michigan


Locked Re: basic hook up laptop to powerhouse #nce

 

¿ªÔÆÌåÓý

OK, ?so I have found under connections a place to change the system connection to serial from simulator. Is an asking me for a serial port and gives me none selected or no ports found. I am using a serial RS 232 connection at the powerhouse to a USB port on my computer. When I change from system connection to NCE USB I get the same problem, no serial port selected or?found thanks for the help, ?I think I¡¯m getting close with your instruction!?


On Feb 10, 2020, at 3:14 PM, forfoum@... wrote:

You have your JMRI setup in it's NCE Simulator mode.? Set it up as NCE,? Serial? as connection type.

Marc


Locked Re: Id Tag API in JMRI

 

¿ªÔÆÌåÓý

Tim,


On Feb 10, 2020, at 12:25 PM, tim_p1964@... wrote:
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

Can you be more specific about what you mean about user details?

Currently ID tags ( the DefaultIDTag object that is ) only explicitly stores the userID as a property. ?There is a list of key/value pairs storable by all named beans (IDTags are named beans ) which you can use to store additional data. ?The RailCom and Transponding Tag objects use these properties to store values.

See?

And


Paul


Locked Re: Undefined problem double x over in Panel Pro editor #paneleditor

 

I am sorry I forgot to include? JMRI 4.19 Panel Pro in simulator mode.
--
Terry Cummins
S.E. Michigan


Locked Undefined problem double x over in Panel Pro editor #paneleditor

 

If am having difficulty placing icon for double crossover on my panel. I found the icon (4 way) but the icon won't place to be added to the panel? Each of the boxes state undefined ??? I had no problem placing any of the other elements. What am I doing wrong or how do I define the object? Thanks in advance for any assistance here!
--
Terry Cummins
S.E. Michigan


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

 

Dave,

I have tweaked the RegisterList::writeTextPacket to accomodate for 6-byte packets, and amended the?RegisterList::loadPacket along with Packet structure's buf size. I can now see 6-byte packets in my DCC reception code (debugging custom decoder software).

However this did not make JMRI any happier. It still throws exception when trying to send out Ops Accessory Byte or Ops Accessory Extended Byte. And this puzzles me, here's why: as far as I understand, the 'M' command which JMRI uses to send raw packets to DCC++ Base Station would only complain in case of incorrect packet length (less than 2 bytes or more than 6 bytes). If a correct number of parameter is given, 'M' command would never report anything back, at least it does not when I use 'M' command manually.

So why would JMRI throw that exception if the DCC++ wouldn't complain?

Regards
Tim


Locked Re: Tutorial for Layout Editor

 
Edited

David,

Please start a new topic for your question.

It is very poor form to hijack someone else's topic.

--
Peter Ulvestad

JMRI Users Group Moderator - ( )
Tam Valley Group Moderator - ( )
Sprog-DCC Group Moderator - ( )
Edmonton Model Railroad Association -


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