Keyboard Shortcuts
Likes
Search
Locked NCE PowerPro Connection Issues
Hello Everyone,
I have an NCE PowerPro connected to a Dell laptop (Win10)?using a serial-USB adapter cable.? Command station version is 19:08 Mar 1, 2007C.? I have had intermittent luck connecting to DecoderPro/PanelPro; to try and fix it I just upgraded to JMRI version 4.16 and still have the problem. When I start PanelPro, if the system finds the COM port (which is about half the time, but I think that's another issue), I get the green "connected" message at the bottom of the DecoderPro/Roster screen.? However, after about 30 seconds it drops the connection and I get the red "not connected" message.? I've checked baud rate (9600 in both the command station and JMRI) and?NCE's AIU Broadcast (off).? JMRI is set to NCE command station version 2006 or later.? I read the recent NCE USB thread but that seemed to apply to the USB-PowerCab system. Please help!? Here is the system log from my last attempt: 2019-09-18 15:23:03,219 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main] 2019-09-18 15:23:03,235 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Jeffrey Mutter\JMRI\log\messages.log [main] 2019-09-18 15:23:03,235 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Jeffrey Mutter\JMRI\log\session.log [main] 2019-09-18 15:23:03,250 apps.Apps???????????????????????????? INFO? - PanelPro version 4.16+R6f9aced starts under Java 1.8.0_201 on Windows 10 x86 v10.0 at Wed Sep 18 15:23:03 EDT 2019 [main] 2019-09-18 15:23:06,105 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3ee7110a [main] 2019-09-18 15:23:06,401 node.NodeIdentity???????????????????? INFO? - Using 08fea99e-6b01-44fe-8e8b-1bbc47625414 as the JMRI storage identity for profile id 3ee7110a [AWT-EventQueue-0] 2019-09-18 15:23:06,522 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main] 2019-09-18 15:23:07,309 serialdriver.SerialDriverAdapter????? INFO? - NCE COM3 port opened at 9600 baud [main] 2019-09-18 15:23:07,695 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main] 2019-09-18 15:23:07,695 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\Jeffrey Mutter\JMRI\My_JMRI_Railroad\ [main] 2019-09-18 15:23:07,695 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\Jeffrey Mutter\JMRI\My_JMRI_Railroad\ [main] 2019-09-18 15:23:07,710 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\Jeffrey Mutter\JMRI\ [main] 2019-09-18 15:23:07,710 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\Jeffrey Mutter\ [main] 2019-09-18 15:23:07,710 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Users\Jeffrey Mutter\JMRI\My_JMRI_Railroad\ [main] 2019-09-18 15:23:08,080 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main] 2019-09-18 15:23:17,450 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2019-09-18 15:23:17,550 nce.NceConnectionStatus?????????????? WARN? - Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread] 2019-09-18 15:23:17,550 jmrix.AbstractMRTrafficController???? WARN? - sendMessage: Exception: In jmri.jmrix.nce.NceTrafficController port warn:? [nce.NceTrafficController Transmit thread] java.io.IOException ?at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.java:642) ?at java.io.DataOutputStream.write(Unknown Source) ?at java.io.FilterOutputStream.write(Unknown Source) ?at jmri.jmrix.AbstractMRTrafficController.forwardToPort(AbstractMRTrafficController.java:690) ?at jmri.jmrix.nce.NceTrafficController.forwardToPort(NceTrafficController.java:494) ?at jmri.jmrix.AbstractMRTrafficController.transmitLoop(AbstractMRTrafficController.java:475) ?at jmri.jmrix.AbstractMRTrafficController$1.run(AbstractMRTrafficController.java:771) ?at java.lang.Thread.run(Unknown Source) 2019-09-18 15:23:17,550 jmrix.AbstractMRTrafficController???? ERROR - run: Exception: java.io.IOException in class jmri.jmrix.nce.NceTrafficController [nce.NceTrafficController Receive thread] java.io.IOException ?at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:887) ?at java.io.DataInputStream.read(Unknown Source) ?at jmri.jmrix.AbstractMRTrafficController.readByteProtected(AbstractMRTrafficController.java:947) ?at jmri.jmrix.AbstractMRTrafficController.loadChars(AbstractMRTrafficController.java:978) ?at jmri.jmrix.AbstractMRTrafficController.handleOneIncomingReply(AbstractMRTrafficController.java:1050) ?at jmri.jmrix.AbstractMRTrafficController.receiveLoop(AbstractMRTrafficController.java:871) ?at jmri.jmrix.AbstractMRTrafficController$2.run(AbstractMRTrafficController.java:795) ?at java.lang.Thread.run(Unknown Source) 2019-09-18 15:23:17,550 jmrix.AbstractMRTrafficController???? ERROR - Exit from rcv loop in class jmri.jmrix.nce.NceTrafficController [nce.NceTrafficController Receive thread] 2019-09-18 15:23:27,552 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2019-09-18 15:23:27,652 jmrix.AbstractMRTrafficController???? ERROR - Transmit thread terminated prematurely by: java.lang.NullPointerException [nce.NceTrafficController Transmit thread] java.lang.NullPointerException ?at jmri.jmrix.AbstractMRTrafficController.getPortName(AbstractMRTrafficController.java:819) ?at jmri.jmrix.nce.NceConnectionStatus.nceEpromPoll(NceConnectionStatus.java:132) ?at jmri.jmrix.nce.NceTrafficController.pollMessage(NceTrafficController.java:430) ?at jmri.jmrix.AbstractMRTrafficController.transmitLoop(AbstractMRTrafficController.java:470) ?at jmri.jmrix.AbstractMRTrafficController$1.run(AbstractMRTrafficController.java:771) ?at java.lang.Thread.run(Unknown Source) Any help is appreciated! Jeff Mutter |
||
Jeff M,
My suspects are either how the serial-USB physically connects with the front of the command station, the USB drivers, and if you are plugging into the same jack on the computer or not. Some USB will cause a change of port name if they move around. Some have hardware that doesn't let them plug all the way into the connector (9 pin) properly for good contact. The driver/USB, well that depends on which brand and when/where you got it. Your log shows that we are not getting any answer from the command station. At startup, the status is presuming the connection worked and it sends the 'AA' command to see the version and that the link is working. It allows 10 seconds for the reply to time out. When that happens, it turns the status to red. That is what is happening according to the log. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
||
Thanks, Ken! Sorry, I should have mentioned that the computer and cable
toggle quoted message
Show quoted text
worked at a friend's house a week or so ago. I usually do plug into the same jack, but if I don't JMRI has, in the past, found the port I used. Now JMRI finds the port and appears to connect but eventually fails. I have a 20-foot or so USB extension cable attached to the adapter, but I did plug the computer directly into the adapter and got the same result. Are there serial-USB adapters that are problematic? This one doesn't have any markings so I'm not sure of the brand, but I think it's an Insignia. -- Jeff -----Original Message-----into the same jack on the computer or not. Some USB will cause a change ofto red. That is what is happening according to the log. |
||
Jeff,
I'll let Dave speak about the different USB-serial devices. He has a standard page explaining some of the principle ones. But looking at your log, it NEVER talks with the command station. It tries, but never gets an answer. As I said, it gives a green status at first because the test had not timed out yet. Maybe we should show it as yellow for 'unknown' and then green if we get a replay or red if we don't. But color isn't real good for interfaces, some people don't see colors that well. So at first it could say 'testing' until it knows one way or the other. Minor point, generally people wait long enough to start that it doesn't matter. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
||
Ok...I updated the driver for the adapter, but my computer didn't like that
toggle quoted message
Show quoted text
and Device Manager kept refreshing about every 10 seconds or so. When I had a bad adapter several years ago, it did the same thing, so I rolled back to the previous driver and it's stable again. Is there a way to check the command station to see if the RS232 port is working properly? I'll call NCE in the morning, but if there's any easy way I'd like to try tonight. Are there any other settings in the command station I should check? I REALLY don't want to reset the CS to factory settings, because I'll lose all my consists. Thanks for your help! -- Jeff -----Original Message-----standard page explaining some of the principle ones.tries, but never gets an answer. As I said, it gives a green status at firstbecause the test had not timed out yet. Maybe we should show it as yellow forat first it could say 'testing' until it knows one way or the other. Minorpoint, generally people wait long enough to start that it doesn't matter. |
||
Jeff, I was going to direct email you, but realized that it's better having all these wonderful folks see my response - just in case I'm too far off base!? We discovered recently that there are some problems with some interfaces in 4.16, and it might be worth your while to try the most recent test release, 4.17.4.? If this isn't good advice, there will be helpful comments, and you should heed their advice - these guys are the greatest!
See you soon! John Swanson |
||
Jeff,
One trick is to confirm if the serial out to the command station is working. The trick is you need to look real close at the 9 pin connector and then jumper pins 2 to 3. If you do this, then start JMRI. The message about command 0xAA will change. Instead of timeout, it will complain it doesn't make a proper response since the 0xAA is now looping back to itself. That would prove all the way to the front of the command is working ok. Then I'd say the other step to take (not likely to help) is to open the command station and make sure the upper board is seating right onto the lower board. Also inspect around the back side of the 9 pin connector incase you see something like a broken solder joint. These haven't been the case many times over the years, but it might have helped a couple of times. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
||
¿ªÔÆÌåÓýHi Jeff ? You said the USB to Serial cable worked in your mate¡¯s computer, that confirms the Cable is okay. From your Console Log, it shows COM 3. Make sure you are using the SAME USB Port on your computer each time. ? With Decoder Pro showing the Roster page: Select the Edit Tab, then Select the Preferences Tab, then Select Defaults on the Drop Down window. ? Make sure ALL selections are ¡°ticked¡± for NCE and not Internal. ? If you made any changes, make sure you select SAVE at the L/H bottom. ? As others have said, maybe you need to upgrade from 4.16 ? If it still does not work, check your ¡°Serial¡± connection using this page: ? ? Regards Marcus ?? ? From: [email protected] [mailto:[email protected]] On Behalf Of Jeff Mutter ? Hello Everyone, ?
? |
||
¿ªÔÆÌåÓýThanks, Everyone!? Here¡¯s where I am: ? I am careful to plug the USB end of the adapter into the same USB port on my computer. All Default radio buttons are set to ¡°NCE¡± ? Upgraded to 4.17.4.? No change. Removed the screws/nuts on either side of the serial port. No change. ? Shorted the ¡°2¡± and ¡°3¡± pins on the serial adapter.? Didn¡¯t see the ¡°timeout flushes receive buffer: AA¡± message, but got a bunch of ¡°ERROR¡± messages (see log below).? Does that mean the adapter is bad, or do the error messages mean something else is wrong? ? Thanks again for your help! Jeff ? Latest log file: ? 2019-09-19 13:03:51,413 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main] 2019-09-19 13:03:51,425 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Jeffrey Mutter\JMRI\log\messages.log [main] 2019-09-19 13:03:51,425 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Jeffrey Mutter\JMRI\log\session.log [main] 2019-09-19 13:03:51,433 apps.Apps? ???????????????????????????INFO? - PanelPro version 4.17.4+Rbf0d1af starts under Java 1.8.0_221 on Windows 10 x86 v10.0 at Thu Sep 19 13:03:51 EDT 2019 [main] 2019-09-19 13:03:53,738 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3ee7110a [main] 2019-09-19 13:03:54,060 node.NodeIdentity???????????????????? INFO? - Using 08fea99e-6b01-44fe-8e8b-1bbc47625414 as the JMRI storage identity for profile id 3ee7110a [AWT-EventQueue-0] 2019-09-19 13:03:54,191 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main] 2019-09-19 13:03:54,874 serialdriver.SerialDriverAdapter????? INFO? - NCE COM3 port opened at 9600 baud [main] 2019-09-19 13:03:55,260 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main] 2019-09-19 13:03:55,261 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\Jeffrey Mutter\JMRI\My_JMRI_Railroad\ [main] 2019-09-19 13:03:55,261 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\Jeffrey Mutter\JMRI\My_JMRI_Railroad\ [main] 2019-09-19 13:03:55,262 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\Jeffrey Mutter\JMRI\ [main] 2019-09-19 13:03:55,262 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\Jeffrey Mutter\ [main] 2019-09-19 13:03:55,262 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Users\Jeffrey Mutter\JMRI\My_JMRI_Railroad\ [main] 2019-09-19 13:03:55,669 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main] 2019-09-19 13:04:04,986 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2019-09-19 13:04:05,090 nce.NceConnectionStatus?????????????? WARN? - Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread] 2019-09-19 13:04:05,096 jmrix.AbstractMRTrafficController???? ERROR - run: Exception: java.io.IOException in class jmri.jmrix.nce.NceTrafficController [nce.NceTrafficController Receive thread] java.io.IOException ?????????????? at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:887) ?????????????? at java.io.DataInputStream.read(Unknown Source) ?????????????? at jmri.jmrix.AbstractMRTrafficController.readByteProtected(AbstractMRTrafficController.java:946) ?????????????? at jmri.jmrix.AbstractMRTrafficController.loadChars(AbstractMRTrafficController.java:977) ?????????????? at jmri.jmrix.AbstractMRTrafficController.handleOneIncomingReply(AbstractMRTrafficController.java:1049) ?????????????? at jmri.jmrix.AbstractMRTrafficController.receiveLoop(AbstractMRTrafficController.java:870) ?????????????? at jmri.jmrix.AbstractMRTrafficController$2.run(AbstractMRTrafficController.java:794) ?????????????? at java.lang.Thread.run(Unknown Source) 2019-09-19 13:04:05,096 jmrix.AbstractMRTrafficController???? WARN? - sendMessage: Exception: In jmri.jmrix.nce.NceTrafficController port warn:? [nce.NceTrafficController Transmit thread] java.io.IOException ?????????????? at purejavacomm.PureJavaSerialPort$1.write(PureJavaSerialPort.java:642) ?????????????? at java.io.DataOutputStream.write(Unknown Source) ?????????????? at java.io.FilterOutputStream.write(Unknown Source) ?????????????? at jmri.jmrix.AbstractMRTrafficController.forwardToPort(AbstractMRTrafficController.java:689) ?????????????? at jmri.jmrix.nce.NceTrafficController.forwardToPort(NceTrafficController.java:494) ?????????????? at jmri.jmrix.AbstractMRTrafficController.transmitLoop(AbstractMRTrafficController.java:474) ?????????????? at jmri.jmrix.AbstractMRTrafficController$1.run(AbstractMRTrafficController.java:770) ?????????????? at java.lang.Thread.run(Unknown Source) 2019-09-19 13:04:05,105 jmrix.AbstractMRTrafficController???? ERROR - Exit from rcv loop in class jmri.jmrix.nce.NceTrafficController [nce.NceTrafficController Receive thread] 2019-09-19 13:04:15,104 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2019-09-19 13:04:15,206 jmrix.AbstractMRTrafficController???? ERROR - Transmit thread terminated prematurely by: java.lang.NullPointerException [nce.NceTrafficController Transmit thread] java.lang.NullPointerException ?????????????? at jmri.jmrix.AbstractMRTrafficController.getPortName(AbstractMRTrafficController.java:818) ?????????????? at jmri.jmrix.nce.NceConnectionStatus.nceEpromPoll(NceConnectionStatus.java:132) ?????????????? at jmri.jmrix.nce.NceTrafficController.pollMessage(NceTrafficController.java:430) ?????????????? at jmri.jmrix.AbstractMRTrafficController.transmitLoop(AbstractMRTrafficController.java:469) ?????????????? at jmri.jmrix.AbstractMRTrafficController$1.run(AbstractMRTrafficController.java:770) ?????????????? at java.lang.Thread.run(Unknown Source) ? -- Jeff ? From: [email protected] [mailto:[email protected]] On Behalf Of Marcus Ammann
Sent: Wednesday, September 18, 2019 10:33 PM To: [email protected] Subject: Re: [jmriusers] NCE PowerPro Connection Issues ? Hi Jeff ? You said the USB to Serial cable worked in your mate¡¯s computer, that confirms the Cable is okay. From your Console Log, it shows COM 3. Make sure you are using the SAME USB Port on your computer each time. ? With Decoder Pro showing the Roster page: Select the Edit Tab, then Select the Preferences Tab, then Select Defaults on the Drop Down window. ? Make sure ALL selections are ¡°ticked¡± for NCE and not Internal. ? If you made any changes, make sure you select SAVE at the L/H bottom. ? As others have said, maybe you need to upgrade from 4.16 ? If it still does not work, check your ¡°Serial¡± connection using this page: ? ? Regards Marcus ?? |
||
¿ªÔÆÌåÓýJeff,
It looks more like a transient error in the JMRI or the Pure Java Comm library we use. Or possibly a poor contact between pins 2 & 3. Is it reproducible every time you start JMRI? Dave in Australia |
||
¿ªÔÆÌåÓýI¡¯m not sure if it was the same set of errors but yes, I got several errors about three times before I saved the last one. ? I did upgrade Java yesterday, too.? Could that be related? ? -- Jeff ? From: [email protected] [mailto:[email protected]] On Behalf Of Dave Heap
Sent: Thursday, September 19, 2019 6:16 PM To: [email protected] Subject: Re: [jmriusers] NCE PowerPro Connection Issues ? Jeff,
It looks more like a transient error in the JMRI or the Pure Java Comm library we use. Or possibly a poor contact between pins 2 & 3. ? Is it reproducible every time you start JMRI? ? Dave in Australia ? |
||
¿ªÔÆÌåÓýJeff,
1) Unplugged from the Power Pro end. or 2) Plugged into the Power Pro.
Unlikely. |
||
Jeff,
toggle quoted message
Show quoted text
Since you are using Windows, a JMRI upgrade may leave some old stuff behind depending on how old the previous version was. I always do a clean install. This involves using the Control Panel to remove the old JMRI version followed by manually deleting the residual JMRI directory in C:\Program Files (x86). Note: If you have placed custom components, such as icons, in the install location instead of the user files location, be sure to back them up before doing the cleanup steps. The user data, such as rosters, panels, operations files, etc., are located at C:\Users\<username>\JMRI. Dave Sand On Sep 19, 2019, at 5:30 PM, Jeff Mutter <jwmutter@...> wrote: |
||
Thanks for the responses, Dave and Dave! I'm tied up for the weekend, but will try your suggestions Monday.
toggle quoted message
Show quoted text
-- Jeff -----Original Message----- |
||
Dave -- I removed all the JMRI files and folders but the JMRI folders in the Users folder, rebooted the computer, reinstalled JMRI v.4.17.4, rebooted again, and still got the same thing.
toggle quoted message
Show quoted text
-- Jeff -----Original Message----- |
||
¿ªÔÆÌåÓýDave ¨C yes, the errors are the same if the adapter is plugged into the serial port on the command station as when it¡¯s not (but still plugged into the USB port on the computer), which are both the same as the errors which showed up when I shorted the 2 and 3 pins on the adapter. ? Looking back at the original log I posted on Wednesday, I believe the errors are the same as I got back then, too. ? -- Jeff ? From: [email protected] [mailto:[email protected]] On Behalf Of Dave Heap
Sent: Thursday, September 19, 2019 7:02 PM To: [email protected] Subject: Re: [jmriusers] NCE PowerPro Connection Issues ? Jeff, ?
? Do you still get the same errors if you aren't trying the loopback mode but just have it: 1) Unplugged from the Power Pro end. or 2) Plugged into the Power Pro.
? Unlikely. |
||
Jeff,
It sounds like we are not getting to the USB device. But there are a few options left to try. 1. Create a new profile to get a fresh start. Just in case something is in the existing profile causing issues. 2. If the USB has jumpers on, remove them all. Then try this at 9600 baud. Depending on versions and other things, this eliminates any possible issues with cab bus id etc... -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
||
¿ªÔÆÌåÓýJeff,
I can send you privately some instructions for a non-JMRI test of your serial connection to the Power Pro. That takes a big set of variables out of the equation. But I'll need to fit it around other priorities, if you are prepared to wait... (I'll need to do it offline as the email will have embedded screenshot images.) Dave in Australia |