GenLI v.2A – versión USB
GenLI es un sencillo interface entre el bus XpressNet de Lenz, el usado en el Lokmaus, y el PC por medio del puerto serie, funcionando a una velocidad de 9600b lo que permite controlar los trenes desde el PC con cualquier programa que soporte el interface LI100 de Lenz.
Nelu ha reemplazado el MAX232 con el chip FT232 para usar el puerto USB en lugar del puerto serie.
Se necesita un driver para el chip USB, que crea un puerto COM virtual, se puede descargar de la web de FTDI:
http://www.ftdichip.com/Drivers/VCP.htm
Dispone de cinco LED que indican que hay tensión en el bus XpressNet (D4), en el bus USB (D1usb), transmisión y recepción por USB (D2usb y D3usb) y que el buffer de entrada de GenLI está lleno (D1) estando a la espera de que la central recoja los datos.
Si es necesario, porque ya existe un dispositivo con la dirección que usa GenLI en el bus XpressNet, permite modificar fácilmente la dirección del interface a través de un menú de texto. Para ello con cualquier programa terminal serie, como el Hyperterminal de Windows, configure una nueva conexión en el puerto virtual a que esta conectado GenLI con los valores 9600,8N1:
Conecte los cables del GenLI al ordenador y a la central, y conecte la central, a continuación escriba dccdcc en el Hyperterminal con lo que GenLI mostrará el siguiente menú:
Para cambiar la dirección en el bus escriba a y a continuación el nuevo número de dispositivo entre 1 y 31.
Para finalizar pulse b y desconecte la central, cierre el Hyperterminal y vuelva a conectar la central para que GenLI funcione en la nueva dirección.
Algunas centrales, como Lokmaus, por defecto sólo exploran unas pocas direcciones en el bus XpressNet. Las primeras direcciones y las 29 y 30 suelen explorarse, téngalo en cuenta cuando indique una nueva dirección, con la configuración por defecto en la dirección 29 suele funcionar en todas las centrales con bus XpressNet. Si GenLI no es explorado por la central se encenderá permanentemente el D1 de ocupado (Busy) cuando el PC envié unos pocos datos
GenLI v.2A – USB version
GenLI is a simple interface between XpressNet bus by Lenz, the same that uses Lokmaus, and the PC with a serial port, working at 9600b, this permits to control trains from PC with every program that supports LI100 interface from Lenz.
Nelu has replaced the MAX232 with the FT232 chip to use the USB port instead the serial port.
You need a driver for the USB chip, that creates a COM virtual port, you can download from the FTDI website:
http://www.ftdichip.com/Drivers/VCP.htm
It has five LED indicating power present at XpressNet bus (D4), in USB bus (D1usb), transmission and reception in the USB bus (D2usb y D3usb) and the GenLI input buffer is full (D1) and is waiting to send to command station.
If necessary, because is already another XpressNet device with the same address that uses GenLI en el bus XpressNet, permits an easy way to modify the interface address from a text menu. To do that, with a serial terminal program, like Hyperterminal in Windows, configure a new connection in the virtual serial port that is connected GenLI with the values 9600,8N1:
Connect the wires from GenLI to PC and to command station, and connect the system, next write dccdcc in Hyperterminal and GenLI shows the following menu:
To change the bus addresses write a and the new device address between 1 to 31.
To end write b and turn off the command station, close Hyperterminal and power on the command station, now GenLI works with the new address.
Some command stations, like Lokmaus, by default only explores a few XpressNet bus addresses. The first ones and usually 29 and 30, take in account when you change to a new address, the default configuration in address 29 should work in the major part of XpressNet command stations. If GenLI is not explored by command station the D1 (Busy) lights permanently when the PC sends a few data.
Lado Componentes / Componet side
Lado Soldaduras / Solder side
5
5
4
4
3
3
2
2
1
1
D D
C C
B B
A A
<Doc> <RevCode>
<Title>
A3
1 1
Tuesday, March 04, 2008 Title
Size Document Number Rev
Date: Sheet of
+5V +5V
Vusb
+5V
+5V
+5V
+12V
+12V
+5V
R7usb 2k2
C12 100n
U1 PIC16F628
1 2 3 4 5
6 7 8 9 10 11 12 13 14
15 16 17 18
RA2/AN2/VREF RA3/AN3/CMP1 RA4/TOCLK/CMP2 RA5/MCLR/VPP VSS
RB0/INT RB1/RX/DT RB2/TX/CK RB3/CCP1 RB4/PGM RB5 RB6/T1OSO/T1CLK/PGC RB7/T1OSI/PGD VDD
RA6/OCS2/CLKOUT RA7/OSC1/CLKIN RA0/AN0 RA1/AN1
Y1usb
6MHz R1usb
27R C2usb
33n
R2usb 27R
D1
C4usb LED
22p
C5usb
22p R5usb
4k7
R6usb 10k
JP1
XpressNet 1 2 3 4 1 2 3 4 U2
MAX485 1 2 3 4
5
6
7
8
RO RE DE DI
GND
A
+VCC B
R3usb 1k5
U5 LM7805C/TO
1 3
2
IN OUT
GND
R4usb
470
U3
FT232BM 25
24
23
22
21
20
19 5
28
4
32
1
2
29 9
18
17
31
14 15 16
12
10 11
13
6
30 263
8
7
27
TXD
RXD
RTS#
CTS#
DTR#
DSR#
DCD#
RSTOUT#
XTOUT
RESET#
EECS
EESK
EEDATA
AGND GND
RI#
GND
TEST
PWRCTL PWREN#
TXDEN
TXLED#
SLEEP#
RXLED#
VCC-IO
3V3OUT
AVCC VCCVCC
USBDM
USBDP
XTIN
R30 R9usb R8usb
220R
Y1
20MHz CN1
CN-USB 1 2 3 4
5
D3
1N4148 R3 R C1usb
10n
D4 LED C14
100n
C3usb 0.1u
C13 100n
D1usb
YELLOW
+ C9
100u L1usb
10uH
D2usb
RED
+ C7
470u/25V
D3usb
GREEN
C8 100n
C5
22p
R1
470
C6
22p
C10 100n
C11 100n