Larry,
This was a doozy of a problem. I took me a while to figure this one out the sad thing is I've seen this before. The issue is in the initial handshake event.
This is the quirk.
On boot up JMRI is looking to contact the Power Cab Command station but it will not be able to communicate with it until NCE USB interface is established. The NCE USB interface will not go active until it gets a Cab ID.
After the Power Cab gives the Cab ID to the USB interface its not looking to do anything else and that handshake transaction is complete. Mean while JMRI is reporting no communication with the Power Cab and just cycles through.?
To mitigate this problem you have to connect the Power Cab coiled cable to the USB Interface just as Panel Pro is sending out its handshake to the Power Cab. Not only will the Power Cab set up the USB Interface it will reply to
JMRI. Once JMRI receives a? reply it will call the connection good and wait. At That point you can open NCE:Show Cab: and hit refresh and all the CABs will be identified. Once this is done all of the devices are logged and connected.?
I tested this a few times and even reformatted a new scan disk and imaged it. You only have to do this on the initial install. ?
- Set up the RPi4
- The jumpers on the NCE USB interface must be on 2, 3 and 4 or 3 and 4 this supports the Power Cab and its two sub types. 7.3.3 or 7.3.7 and 19200 baud.? ?
- Connected the USB port on the RPi4 to the NCE USB interface with a USB AB cable. (Leave the Power Cab unconnected) ?
- Start JMRI Panel Pro. (It will try to configure itself and you will have to change some settings.)
- Go into Preference:Default and make sure that all the the radio buttons are set got NCE.?
- Go into connections and set the baud rate to 19200 (click the advance check box)
- Make sure the the ttyUSB0 is selected along with the Power Cab option.
- save and restart. (make sure that it open NCE, sometimes it defaults to Digitrax)
- When the Panel Pro windows comes up within a second or two connect the Power Cab to the NCE USB interface (coiled wire.)
- The ttyUSB0 connection will flash red but go back to black.?
- Open NCE:Show Cab and refresh. You will see it connect to the NCE interface first. The it will find the Power Cab.
Once this occurs the interface is setup and it will have everything to boot up on its own.
This seems to be an inherent problem with the Power Cab as well. I re-flashed Stretch for a RPi3 and had the same problem
Cleared it with the same process. The other NCE command stations seems to operate different hence no complaints.
There may be a better and faster way to do this but like an ant. This was the path I took to get it working.
Inobu?