Lenz LI-USB On Windows 8.1 x64 with JMRI

LI-USB
The Lenz LI-USB is the USB interface for the Lenz Digital Plus Train / Model Railroad Layout control. The idea is to allow computer control of your model railway.

Lenz however have only ever released very primitive software and drivers which only work on Windows XP. As Windows XP support ends in April 2014, and because I don’t wish to run a separate computer with XP, I decided to make this guide. The frustration I experienced in getting this device to work, with their official software and drives caused me to do things the JMRI way.

Firstly, ignore everything that Lenz says or gives you, forget the CD / drivers or software. Its not required, and JMRI will provide a much better method anyway.

Step 1 – Download Drivers
Get the FTDI VCP Chip drivers from here. You want the Windows Certified Driver in the ZIP file, at the time of writing it was version 2.08.30. For Windows 8 64 bit, you want this one. Download it, and extract the folder to some place where you can find it.

Step 2 – Attach the Hardware
Attach the LI-USB to your Lenz kit, power and layout. Plug in the USB cable to your PC.

Step 3 – Open Device Manager

start_button

Open up Device Manager, you can do this by right clicking on the start button.

 

 

 

Step 4 – Driver Install Part 1

Your device manager should show the LI-USB as having a problem (it has no driver) as below:
part1-1

 

 

 

 

 

Open the properties by double clicking on the LI-USB and click update driver.
part1-2

 

 

 

 

 

 

 

Choose Browse my computer for driver software.
part1-3

 

 

 

 

 

Choose Let me pick from a list…
part1-4

 

 

 

 

 

Choose Show All Devices and press Next.
part1-5

 

 

 

 

 

Windows will then list all of its drivers it has, ignore those and press ‘Have Disk…’
part1-6

 

 

 

 

 

On the popup box, press Browse…
part1-7

 

 

 

 

Navigate to the place where you extracted the files, windows will show 2 potential inf files, choose the ftdibus.inf and press Open.
part1-8

 

 

 

 

 

The next box will list all the drivers in that inf file, choose ‘USB Serial Converter’ this should be the top one in the list, and doesn’t have any letters at the end (not A,B or C etc). Press Next.
part1-9

 

 

 

 

 

Windows will display a warning about the driver not being recommended. This is because the hardware ID on the LI-USB is set different to the FTDI driver file, its safe to continue so press Yes.
part1-10

 

 

 

 

Windows should then install the driver, and show the following message, press close to exit.
part1-11

 

 

 

 

 

The LI-USB will get renamed to USB Serial Converter, and should show as working properly, as below.
part1-12

 

 

 

 

 

 

 

Step 5 – Driver Install Part 2
Your device manager should now update and now show a USB Serial Port as having a problem (it has no driver) as below:
part2-1

 

 

 

 

 

Open the properties by double clicking on the USB Serial Port and click update driver.
part2-2

 

 

 

 

 

 

 

Choose Browse my computer for driver software.
part2-3

 

 

 

 

 

Choose Let me pick from a list…
part2-4

 

 

 

 

 

Choose Show All Devices and press Next.
part2-5

 

 

 

 

 

Windows will then list all of its drivers it has, ignore those and press ‘Have Disk…’
part2-6

 

 

 

 

 

On the popup box, press Browse…
part1-7

 

 

 

 

Navigate to the place where you extracted the files, windows will show 2 potential inf files, choose the ftdibus.inf and press Open.
part1-8

 

 

 

 

 

The next box will list all the drivers in that inf file, choose ‘USB Serial Port’ this should be at the bottom of the list, and might be selected already. Press Next.
part2-9

 

 

 

 

 

Windows will display a warning about the driver not being recommended. This is because the hardware ID on the LI-USB is set different to the FTDI driver file, its safe to continue so press Yes.
part1-10

 

 

 

 

Windows should then install the driver, and show the following message, press close to exit.
part2-11

 

 

 

 

 

The USB Serial Port will get renamed to USB Serial Port (COM #) where # will be the number, remember this as you will need it for the JMRI settings later. It should show as working properly, as below.

part2-12

 

 

 

 

 

 

 

 

The lights for USB (green) and Xpressnet (red) should now be lit on your LIUSB hardware.

Step 6 – Download and install Java
JAVA can be downloaded from here.

Step 7 – Download and install JMRI
JRMI can be downloaded from here.

Step 8 – Configure JMRI
Once installed, start the JMRI Panel Pro. When it opens, it should display the preferences box as below.
jmri-1

 

 

 

 

Choose Lenz for the System manufacturer, Lenze LIUSB for the System connection, and enter the port number from step 5 (COM#). Press Save.
jmri-2

 

 

 

 

JRMI will then offer to restart PanelPro, choose Restart.
jmri-3

 

 

 

Step 9 – Test & Wagons Roll
From the Tools menu, choose Throttles then New Throttle.
jmri-4

 

 

 

 

 

When the Throttle box opens, type in the number of the Loco / Engine into the address panel on the bottom right and press set.
Note – On this picture you may notice the power button on the top is red, this will depend on if your track power is on or not. If track power is off, (red) press the button to turn it on.
jmri-5

 

 

 

 

 

 

 

The throttle should now look something like the one below. Try moving the Loco by using the slider on the left, change direction with the forward/reverse settings or try the lights / sounds etc by pressing the function buttons. If nothing happens, check all the connections on your hardware and or reboot the machine. Also make sure you typed in the right address for the loco that’s on the track!

jmri-6

Ubuntu 10.10 GDM, Nvidia and TPM Issue

I recently did a clean install of Ubuntu 10.10 64 bit on my Vaio SZ7, using the standard driver module for X everything worked fine. GDM (Gnome’s graphic login), Plymouth (the red dots progress boot screen) and X were all working well.

I wanted to install the Nvidia accelerated driver for the effects in X and also to help with video performace. I used Ubuntu’s installer to add in the propriatory driver it recommended and rebooted. This is where the problems began. I started to notice a TPM send error on the console right at the end of the boot (usually on tty1 right after the login prompt) and then GDM wouldnt appear, leaving me with just the the text console.

I tried different versions of the driver, including from Nvidia’s site, I tried the fixplymouth script (which fixed plymouth but didnt solve my GDM issue) I even tried removing various packages and drivers as suggested on various Nvidia and ubuntu forums, ie nouveau and the nv modules. I also tried removing GDM and reinstalling it. GDM2 wasnt an option as the repository gave me 404’s when i tried to update apt.

However, during my googleing, I had left the laptop to boot. It got to the usual place, and I just left it there while reading. Then something caught my eye, the flash of the Nvidia logo, and then X and GDM started. Long story short, GDM starts up, but it takes 2 minutes from when the text console appears. From reading various configs in /etc/init/ I found out GDM waits for other things, ie drivers to load up first… This got me thinking and also that TPM error was annoying me. I knew TPM was disabled in the BIOS so I had been ignoring it.

I decided to try killing the TPM error. I did a lsmod to see what was loaded, and then did an rmmod on anything with TPM in the name. The moment the last one was killed, the Nvidia logo popuped up and I was in GDM.

I went back to the console, edited /etc/modprobe.d/blacklist.conf and added the following lines on the end of the file:

blacklist tpm_infineon
blacklist tpm_tis
blacklist tpm

Saved the file and rebooted. GDM came up right after plymouth.

Obviously, I don’t suggest you use this method if you actually use TPM and have it enabled in your BIOS etc, but as I don’t use it I had no problem killing it.