Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Undefined problem double x over in Panel Pro editor
#paneleditor
¿ªÔÆÌåÓýIt makes no difference which I position the mouse button over I do not in any case get the drag image to move into any of the spaces on the icon panel. No worries, in the middle of the night I woke up with a solution! I just used the turnout function, moved two of each to the panel, rotated one of each 180 degrees, resized them to 75%, and ?placed them so that they look like a double cross over. They are all numbered with the same turnout number so they work in unison ! Done deal, working for me. A rather around the block solution but it works. Thanks for the input, this baby is put to bed! Lol ? Terry Cummins S.E. Michigan ? Sent from for Windows 10 ? From: Dave Sand
Sent: Monday, February 10, 2020 9:38 PM To: [email protected] Subject: Re: [jmriusers] Undefined problem double x over in Panel Pro editor #paneleditor ? Terry, ? Just to be clear, you position the mouse over a turnout name, click and hold the mouse button, move the move over a "undefined" box and release the mouse button? ? What version of JMRI are you running? ? ? Dave Sand ? ? ----- Original message ----- From: mrclassicman <mrclassicman512@...> Subject: Re: [jmriusers] Undefined problem double x over in Panel Pro editor #paneleditor Date: Monday, February 10, 2020 8:19 PM ? Dave, I uploaded a screen shot of the Panel Pro Editor screen open with the "undefined boxes". Sorry I don't know why the screen shot is so fuzzy. Additionally I tried as you suggested moving the names to the boxes and or the icons to the boxes and there is no common dragging the image, as with all of the other placed icons, present. There must be something very simple that I am missing as everything else has worked perfectly! So I am back to looking at this tomorrow. There must be some means for defining the required boxes and it must be deep in the program. The image is has been loaded into the photo section under the heading "Panel Pro Editor X over" -- Terry Cummins S.E. Michigan ? ? -- Terry Cummins S.E. Michigan |
|||||
For the record, here are changes I made to DCC++ BaseStation code for 6 byte packets.
PacketRegister.h:
PacketRegister.cpp: in?RegisterList::loadPacket starting from Line 70: and in?RegisterList::writeTextPacket, starting from Line 203: Sorry I failed to make myself clear regarding sscanf() behavior, certainly it will report correct number of arguments scanned for 2, 3, 4, and 5 cases. What I meant was that it would report nBytes=6 when there are more arguments passed to it than is noted in its format string, and thus RegisterList::writeTextPacket() won't report this as an error. Regards Tim |
|||||
Update, spent a couple of hours late into the night trying everything that was suggested. Nothing seemed to change. Finally decided just to clear everything off and start over this morning. So I deleted the entire program and reinstalled it this morning. I do not know what is different, but the system is working! I have throttle control and I have programmability. thanks for all the help and suggestions, Bruce Mount Airy, Maryland
toggle quoted message
Show quoted text
On Feb 10, 2020, at 8:33 PM, Dave Heap <dgheap@...> wrote: |
|||||
Locked
Re: Undefined problem double x over in Panel Pro editor
#paneleditor
¿ªÔÆÌåÓýIt makes no difference which I position the mouse button over I do not in any case get the drag image to move into any of the spaces on the icon panel. No worries, in the middle of the night I woke up with a solution! I just used the turnout function, moved two of each to the panel, rotated one of each 180 degrees, resized them to 75%, and ?placed them so that they look like a double cross over. They are all numbered with the same turnout number so they work in unison ! Done deal, working for me. A rather around the block solution but it works. Thanks for the input, this baby is put to bed! Lol ? Terry Cummins S.E. Michigan ? Sent from for Windows 10 ? From: Dave Sand
Sent: Monday, February 10, 2020 9:38 PM To: [email protected] Subject: Re: [jmriusers] Undefined problem double x over in Panel Pro editor #paneleditor ? Terry, ? Just to be clear, you position the mouse over a turnout name, click and hold the mouse button, move the move over a "undefined" box and release the mouse button? ? What version of JMRI are you running? ? ? Dave Sand ? ? ----- Original message ----- From: mrclassicman <mrclassicman512@...> Subject: Re: [jmriusers] Undefined problem double x over in Panel Pro editor #paneleditor Date: Monday, February 10, 2020 8:19 PM ? Dave, I uploaded a screen shot of the Panel Pro Editor screen open with the "undefined boxes". Sorry I don't know why the screen shot is so fuzzy. Additionally I tried as you suggested moving the names to the boxes and or the icons to the boxes and there is no common dragging the image, as with all of the other placed icons, present. There must be something very simple that I am missing as everything else has worked perfectly! So I am back to looking at this tomorrow. There must be some means for defining the required boxes and it must be deep in the program. The image is has been loaded into the photo section under the heading "Panel Pro Editor X over" -- Terry Cummins S.E. Michigan ? ? -- Terry Cummins S.E. Michigan |
|||||
Tim, Dave, "By adding debug print of nBytes I learned it is always set to 6, and it is the number of parameters the "%d %x %x %x %x %x"?format
string expects (1 decimal for register number, and 5 hexes for
parameters). It appears sscanf() just ignores the rest of input once it
successfully stuffes all variables in its list." It is very easy to make this code a lot more robust so it catches the 'too many parameters' as an invalid packet. Instead of passing in the actual message, pass in a modified one with a known trailing character (any will do, say 'X'). So in the example the string going in would become: "M 0 1 2 3 4 5 6X" and the scanf string: "%d %x %x %x %x %xX" No difference in result for this message, but if you have that extra input as in "M 0 1 2 3 4 5 6 7 8", (again passed in with the appended 'X' as): "M 0 1 2 3 4 5 6 7 8X" Using scanf with the same "%d %x %x %x %x %xX" now fails, detecting invalid packet, because it cannot match the now required 'X'. It may not be a good moment for this change as you want the smallest possible modification at this point, but it is easy defensive programming that can catch unexpected issues, and could be something to keep in mind for later. Wouter On Tue, 11 Feb 2020 at 09:50, tnt23 <tim.tashpulatov@...> wrote: Dave, |
|||||
¿ªÔÆÌåÓýTim, Next was the well-behaved '<M 0 1 2 3 4 5>' which went through perfectly silent. But you didn't try ?'<M 0 1 2 3>' . I don't think you'll get nBytes=6 when the number of supplied parameters are less than those in the format string and variables). See <> Please set the DCC++ code as per my crossed-in-delivery email. Dave in Australia |
|||||
¿ªÔÆÌåÓýTim, To late at night for me to be thinking code. We want to minimise changes and possible breaking of existing code, JMRI and other. Please change: 1) Documentation at lines 482 ff of SerialCommand.cpp needs extra parameter adding. 2) Change??PacketRegister.cpp, method?writeTextPacket?as below: /////////////////////////////////////////////////////////////////////////////// void RegisterList::writeTextPacket(char *s) volatile{ ?? ? int nReg; ? byte b[7]; ? int nBytes; ? volatile RegisterList *regs; ? ?? ? nBytes=sscanf(s,"%d %x %x %x %x %x %x",&nReg,b,b+1,b+2,b+3,b+4,b+5)-1; ?? ? if(nBytes<2 || nBytes>6){ ? ?// invalid packet ? ? INTERFACE.print("<mInvalid Packet>"); ? ? return; ? } ? ? ? ? ? ? loadPacket(nReg,b,nBytes,0,1); ? ?? } // RegisterList::writeTextPacket() ?? /////////////////////////////////////////////////////////////////////////////// I'll change: Line 2441 of??in the private build to be: ? ?if?(num_bytes?<?2?||?num_bytes?> 6)?return(null); You can then test the result with your DCC++ hardware. Dave in Australia |
|||||
Dave,
Will share the changed pieces tonight once I am at my home computer.
?
That is correct. My experience is based on feeding different variants of 'M' command to DCC++ Base Station via serial console, and watching the result. Started with '<M 0 1>', got '<mInvalid packet>' response in accordance with the (unmodified original) code:
Next was the well-behaved '<M 0 1 2 3 4 5>' which went through perfectly silent. Then I tried '<M 0 1 2 3 4 5 6 7 8'> and did not get error response. By adding debug print of nBytes I learned it is always set to 6, and it is the number of parameters the "%d %x %x %x %x %x"?format string expects (1 decimal for register number, and 5 hexes for parameters). It appears sscanf() just ignores the rest of input once it successfully stuffes all variables in its list. But I believe it is irrelevant at this point. More important is the knowledge that JMRI always passes the packet bytes to the DCC++ including last checksumbyte. I will need to think this over, too. Regards Tim
|
|||||
¿ªÔÆÌåÓýTim, (It is probably worth nothing to note that DCC++ code, as it seems, will not spot extra bytes in 'M' message. The sscanf template used will always try to read up to 5 or 6 parameters, and will always return maximum number, 5 or 6, even if being fed 10 or 15 parameters) That needs updating to scan the extra parameter and load it into the extra element of the array. What does your modified code look like? Please show us. My reading (I'm not a C++ speaker) of the code is that the sscanf ?function returns the number of successful matches*, not the number of parameters. So nBytes returns the actual number of parameters (minus 1 for the register parameter). nBytes is the number of bytes specified to loadPacket? *<> Dave in Australia |
|||||
¿ªÔÆÌåÓýTim, Of these 6 bytes, last checksum byte does not need to be passed to DCC++ as it is calculated internally by DCC++ code when forming the packet. This means that 'M' command should be passing 5 bytes to DCC++, as follows: The problem is that the NmraPacket class in JMRI creates and appends the checksum for every method (packet type) defined. <> We can't change that code without breaking every other system. Packet lengths vary (they are not all 6 bytes). Dropping the last byte of every M command changes the DCC++ specification as far as I can see and would break any non-JMRI software using the DCC++ system. But too late in the day for this sort of thinking... Dave in Australia |
|||||
¿ªÔÆÌåÓýTim, Dave,Agreed, provided the DCC++code is updated as well
Will have to be tomorrow. After dinner here and computers shut down due to storms. Dave in Australia |
|||||
On another thought, though:
Extended Decoder Control Packet address for operations mode programming (clause 485 on page 10 of s-9.2.1) looks like this: {preamble} 10AAAAAA 0 0AAA0AA1 0 (1110CCVV 0 VVVVVVVV 0 DDDDDDDD) 0 EEEEEEEE 1Of these 6 bytes, last checksum byte does not need to be passed to DCC++ as it is calculated internally by DCC++ code when forming the packet. This means that 'M' command should be passing 5 bytes to DCC++, as follows: <M 0 1 2 3 4 5>, where the first 0 after M is Register number and should not count in num_bytes. Is there a way to add parameters debugging output to console or log for the?makeWriteDCCPacketMainMsg?routine? Regards Tim |
|||||
Dave,
This makes me think the DCCppMessage.java is worth updating for 6 byte packets, too :) (It is probably worth nothing to note that DCC++ code, as it seems, will not spot extra bytes in 'M' message. The sscanf template used will always try to read up to 5 or 6 parameters, and will always return maximum number, 5 or 6, even if being fed 10 or 15 parameters) No, I did not checkout JMRI sources as I plain have no idea what to do with them in the first place :) Yet if you could build a test version for me that would be awesome. Thanks a bunch! Regards Tim |
|||||
Locked
Re: Help Setting up JMRI & NCE Power Cab Via USB
Sorry, link omitted.
On 11 Feb 2020, at 3:47 PM, Dave Heap <dgheap@...> wrote:<> Dave in Australia |
|||||
Locked
Re: Help Setting up JMRI & NCE Power Cab Via USB
¿ªÔÆÌåÓýTom,
This is the expected reply from the NCE USB and indicates all is well with COM ports, JMRI settings, and NCE USB settings. Do not change any COM ports, JMRI settings, or NCE USB settings. If you do, all you'll do is go backwards and I'll be forced to give up trying to help you!
Now JMRI has asked the NCE USB to tell the Power Cab to enter program track mode. This hasn't succeeded. I think you'll find the CAB BUS LED (so marked) beside the RJ socket has come on and stuck on. This indicates that the NCE USB is hung up waiting for a Ping from the Power Cab. This indicates a communications failure between the NCE USB and the Power Cab. This could be due to: 1) Bad wiring connection via wires 3 & 4 of the cables, sockets connecting the Power Cab to the NCE USB. They aren't needed when the Power Cab is the only device plugged in. They are essential once you have a second device (NCE USB or slave throttle). Do a bit of visual checking. 2) Bad/marginal RS485 driver chips on either/both of the Power Cab and NCE USB. 3) The problem described at the following link, possibly combined with (2) above. We are suddenly being overwhelmed by this sort of problem and we are suspecting hardware problems... ?
You tell me what you see and I'll interpret. Normal situation is both off, with brief flashes of both when you ask JMRI to do something.
The NCE USB is locked up (you have to unplug the RJ connector to reset it).See above.
You can rule that out.
I'm going to have to sign off for the night and have a life. If the "experts" get you to change settings (and hence set the whole process back), I'm out of this. Dave in Australia |
|||||
Locked
Re: Help Setting up JMRI & NCE Power Cab Via USB
Tom,
On 11 Feb 2020, at 3:11 PM, Thomas Greis <tomgreis@...> wrote:You're looking the wrong place. That is all good. Wait for the email I'm currently composing. Dave in Australia |
|||||
Locked
Re: Help Setting up JMRI & NCE Power Cab Via USB
Thomas Greis
Dave: A little bit more feedback from the system that may help you in figuring out what's going on.? Here are the error messages when I start the program with the USB cable removed:
On Monday, February 10, 2020, 08:02:44 PM PST, Thomas Greis <tomgreis@...> wrote:
Dave: Thank you for your prompt reply to my situation.? Still cannot get the program to stay "online".? Let me respond sequentially to your suggestions: 1. I had already downloaded the SiLabs driver;? the NCE website directed me to the same link you supplied.? Appears correctly in the device manager, so most likely not the issue? 2. "Com4" still is the only choice I have for the serial port,? but I do not have any serial ports on my computer ( HP Omen desktop )? I sense this may be the problem as I did get an list of errors the system found. 3. NCE USB Adapter Jumpers - I did not change these from the way they were when I bought the card. I see nothing teling me what the proper setting should be for these 4 jumpers.? They are currently not set on any of the four pin sets ( I assume that would be considered "off " ? ) .? Should they be enabled? 4. Here is the log readout,? sorry if I started it multiple times this evening trying to get it going. 2020-02-10 19:37:28,279 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main] 2020-02-10 19:37:28,279 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\User\JMRI\log\messages.log [main] 2020-02-10 19:37:28,279 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\User\JMRI\log\session.log [main] 2020-02-10 19:37:28,279 apps.AppsBase???????????????????????? INFO? - DecoderPro version 4.18+R37ad3d0 starts under Java 1.8.0_241 on Windows 10 x86 v10.0 at Mon Feb 10 19:37:28 PST 2020 [main] 2020-02-10 19:37:28,430 gui3.Apps3??????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f2a7782 [main] 2020-02-10 19:37:28,696 node.NodeIdentity???????????????????? INFO? - Using 241b5333-8ef0-4018-a06f-19d49d6487f0 as the JMRI storage identity for profile id 3f2a7782 [AWT-EventQueue-0] 2020-02-10 19:37:28,790 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main] 2020-02-10 19:37:29,123 usbdriver.UsbDriverAdapter??????????? INFO? - NCE USB COM4? port opened at 9600 baud [main] 2020-02-10 19:37:29,249 nce.NceConnectionStatus?????????????? INFO? - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0] 2020-02-10 19:37:29,281 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\User\JMRI\My_JMRI_Railroad.jmri\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\User\JMRI\My_JMRI_Railroad.jmri\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\User\JMRI\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\User\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main] 2020-02-10 19:38:30,720 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: 9E consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:38:40,728 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: A9 00 08 consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:38:50,931 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 2 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:38:51,148 nce.NceConnectionStatus?????????????? WARN? - Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:01,149 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 3 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:01,352 nce.NceConnectionStatus?????????????? WARN? - No response from NCE command station [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:11,363 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 4 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:11,566 nce.NceConnectionStatus?????????????? WARN? - No response from NCE command station [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:21,572 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 5 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:31,587 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: 9E consecutive timeouts = 6 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] Couple of questions that I have: a. The NCE USB adapter has minimal documentation ( jumper settings for one! ) and no description of what the 2 LED chips mean when they are on or off.? There is one under the USB cable connector and one under the coiled cord connector ( RJ7 ? ).? Do you happen to know if they should be one,? or off?? Currently as I type this the adapter is plugged in per directions,? powered up,? and one of the two surface mounted LED's is on:? the one under the coiled cord connector. If I plug a power cab throttle into the empty connector on the power cab board interface,? that LED goes out and the other one ( under the USB connector ) goes on. Is this correct behavior?? Note: ? with a loco on the program track the sound only comes on when I plug the throttle in,? otherwise the loco is not active. If you can figure this out,? I think I should be all set.? I'm guessing its a USB/serial port "problem" of some type.? I just don't get what it is...¡... Tom Greis
On Monday, February 10, 2020, 06:33:11 PM PST, Dave Heap <dgheap@...> wrote:
Tom, - The NCE USB uses the SiLabs CP2102 chipset. Download and install SiLabs CP210x drivers from <> - There is a Universal? driver for Windows 10. - The downloaded file will be a ".zip" - You open that file and then open the file called: "CP210xVCPInstaller_x86.exe" or "CP210xVCPInstaller_x64.exe" depending on whether your Windows is 32 bit or 64 bit. - After doing this you should get the SiLabs device appearing as a new COM port in Windows Device Manager when you plug it in. - Sometimes you may need to install the driver again after plugging in the NCE USB to get rid of the error symbol in Windows Device Manager. - If you still have questions marks, try removing driver in Device Manager and try again as above - When you have it working properly, the COM port should appear/disappear as you plug/unplug the NCE USB. - Do not try to set the baud rate in Windows Device Manager. - Ignore all other documentation to the contrary (there is some incorrect information in places) and set up as below: - It also explains how to read the version of your NCE USB (only the first digit counts, the last three report how your jumpers 2-4 are set and jumper 1 is ignored on all systems). Power Cab Instructions ================= The best beginner-level settings for a Power Cab (any version) and an NCE USB (any version)? are: - All USB Jumpers off (or at least 2, 3 & 4. Jumper 1 is ignored). - JMRI preferences are: -- System manufacturer: NCE -- System connection:? NCE USB -- Serial port: <whatever appeared/disappeared above as you plugged/unplugged> -- USB version: V7.x.x -- System: PowerCab -- Additional Connection Settings checkbox ON --- Baud rate: 9600. The JMRI console log should then report V6.3.0 or V7.3.0. If you don't get a version number or the system does not work, Use Help->System Console...->Copy to clipboard and paste into a post for us to see. |
|||||
Locked
Re: Help Setting up JMRI & NCE Power Cab Via USB
Thomas Greis
Dave: Thank you for your prompt reply to my situation.? Still cannot get the program to stay "online".? Let me respond sequentially to your suggestions: 1. I had already downloaded the SiLabs driver;? the NCE website directed me to the same link you supplied.? Appears correctly in the device manager, so most likely not the issue? 2. "Com4" still is the only choice I have for the serial port,? but I do not have any serial ports on my computer ( HP Omen desktop )? I sense this may be the problem as I did get an list of errors the system found. 3. NCE USB Adapter Jumpers - I did not change these from the way they were when I bought the card. I see nothing teling me what the proper setting should be for these 4 jumpers.? They are currently not set on any of the four pin sets ( I assume that would be considered "off " ? ) .? Should they be enabled? 4. Here is the log readout,? sorry if I started it multiple times this evening trying to get it going. 2020-02-10 19:37:28,279 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main] 2020-02-10 19:37:28,279 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\User\JMRI\log\messages.log [main] 2020-02-10 19:37:28,279 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\User\JMRI\log\session.log [main] 2020-02-10 19:37:28,279 apps.AppsBase???????????????????????? INFO? - DecoderPro version 4.18+R37ad3d0 starts under Java 1.8.0_241 on Windows 10 x86 v10.0 at Mon Feb 10 19:37:28 PST 2020 [main] 2020-02-10 19:37:28,430 gui3.Apps3??????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f2a7782 [main] 2020-02-10 19:37:28,696 node.NodeIdentity???????????????????? INFO? - Using 241b5333-8ef0-4018-a06f-19d49d6487f0 as the JMRI storage identity for profile id 3f2a7782 [AWT-EventQueue-0] 2020-02-10 19:37:28,790 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "NCE" [main] 2020-02-10 19:37:29,123 usbdriver.UsbDriverAdapter??????????? INFO? - NCE USB COM4? port opened at 9600 baud [main] 2020-02-10 19:37:29,249 nce.NceConnectionStatus?????????????? INFO? - NCE EPROM revision = 7.3.0 [AWT-EventQueue-0] 2020-02-10 19:37:29,281 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\User\JMRI\My_JMRI_Railroad.jmri\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\User\JMRI\My_JMRI_Railroad.jmri\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\User\JMRI\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\User\ [main] 2020-02-10 19:37:29,296 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main] 2020-02-10 19:38:30,720 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: 9E consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:38:40,728 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: A9 00 08 consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:38:50,931 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 2 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:38:51,148 nce.NceConnectionStatus?????????????? WARN? - Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:01,149 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 3 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:01,352 nce.NceConnectionStatus?????????????? WARN? - No response from NCE command station [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:11,363 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 4 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:11,566 nce.NceConnectionStatus?????????????? WARN? - No response from NCE command station [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:21,572 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: AA consecutive timeouts = 5 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 2020-02-10 19:39:31,587 jmrix.AbstractMRTrafficController???? WARN? - Timeout on reply to message: 9E consecutive timeouts = 6 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] Couple of questions that I have: a. The NCE USB adapter has minimal documentation ( jumper settings for one! ) and no description of what the 2 LED chips mean when they are on or off.? There is one under the USB cable connector and one under the coiled cord connector ( RJ7 ? ).? Do you happen to know if they should be one,? or off?? Currently as I type this the adapter is plugged in per directions,? powered up,? and one of the two surface mounted LED's is on:? the one under the coiled cord connector. If I plug a power cab throttle into the empty connector on the power cab board interface,? that LED goes out and the other one ( under the USB connector ) goes on. Is this correct behavior?? Note: ? with a loco on the program track the sound only comes on when I plug the throttle in,? otherwise the loco is not active. If you can figure this out,? I think I should be all set.? I'm guessing its a USB/serial port "problem" of some type.? I just don't get what it is...¡... Tom Greis
On Monday, February 10, 2020, 06:33:11 PM PST, Dave Heap <dgheap@...> wrote:
Tom, - The NCE USB uses the SiLabs CP2102 chipset. Download and install SiLabs CP210x drivers from <> - There is a Universal? driver for Windows 10. - The downloaded file will be a ".zip" - You open that file and then open the file called: "CP210xVCPInstaller_x86.exe" or "CP210xVCPInstaller_x64.exe" depending on whether your Windows is 32 bit or 64 bit. - After doing this you should get the SiLabs device appearing as a new COM port in Windows Device Manager when you plug it in. - Sometimes you may need to install the driver again after plugging in the NCE USB to get rid of the error symbol in Windows Device Manager. - If you still have questions marks, try removing driver in Device Manager and try again as above - When you have it working properly, the COM port should appear/disappear as you plug/unplug the NCE USB. - Do not try to set the baud rate in Windows Device Manager. - Ignore all other documentation to the contrary (there is some incorrect information in places) and set up as below: - It also explains how to read the version of your NCE USB (only the first digit counts, the last three report how your jumpers 2-4 are set and jumper 1 is ignored on all systems). Power Cab Instructions ================= The best beginner-level settings for a Power Cab (any version) and an NCE USB (any version)? are: - All USB Jumpers off (or at least 2, 3 & 4. Jumper 1 is ignored). - JMRI preferences are: -- System manufacturer: NCE -- System connection:? NCE USB -- Serial port: <whatever appeared/disappeared above as you plugged/unplugged> -- USB version: V7.x.x -- System: PowerCab -- Additional Connection Settings checkbox ON --- Baud rate: 9600. The JMRI console log should then report V6.3.0 or V7.3.0. If you don't get a version number or the system does not work, Use Help->System Console...->Copy to clipboard and paste into a post for us to see. |
|||||
Locked
Re: Help with DS64's and JMRI
EsK,
The DS64 roster entry is only usable via a LocoNet connection. This is because the JMRI code for the LocoNet connection has the appropriate interpretation of the CV number "115:12", but none of the other connection types understands this format. Why? Because the mechanism for configuring the DS64 is a special one which is only available on LocoNet. Other systems don't have the connectivity or the communication protocols required for that configuration mechanism. (The same is true for the Digitrax SE8C, BDL16x, and PM4x devices.) Instead, you will need to program the DS64 OpSw settings using turnout commands after pressing the proper DS64 button to get the DS64 into its "OpSw setting mode". See the DS64 manual. But you may choose to use the JMRI roster entry to figure out what values to use for the various OpSw settings. Use the friendly pages of the roster entry to choose the configuration you want. Then look at the roster entry "OPSWs" page to find the actual settings. The OpSw numbers can be inferred from the CV numbers. For example, "115:12" implies DS64 OpSw 12. A value of 0 implies "T"hrown, and a value of 1 implies "C"losed. Ignore the OpSw numbered as "1", and only pay attention to the ones which begin with "115:". And if you use this method for SE8C or PM4x or BDL16x configuration, different "prefix" numbers will apply; the prefix "115:" implies DS64, other values imply the other device types. Regards, Billybob |
|||||
Locked
Re: Help with DS64's and JMRI
The LocoNet menu's DS64 Configuration tool is _only_ able to work across a LocoNet cable; it cannot perform any useful function with a DS64 without a connected and functional LocoNet. As such, it will be useless (and not even available) when the JMRI system connection is via a SPROG device.
It is _NOT_ possible to change the DS64 "Board ID" using either a JMRI Roster entry _or_ via the LocoNet DS64 Configuration tool. Neither of these tools, nor the specific LocoNet messaging protocol, has the appropriate capabilities. Regards, Billybob |