Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HTvision USB2LCD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
polu
n00b
n00b


Joined: 02 Mar 2007
Posts: 16

PostPosted: Thu Jan 31, 2008 4:13 pm    Post subject: HTvision USB2LCD Reply with quote

I have an HTvision USB LCD device. It's an HD44780 compatible character LCD.

When I hook the LCD up to a Windows computer, a new serial port is created (COM3), and I can use the LCD using the Crystalfontz driver. (16x2, 9600)

But when I connect it to my Gentoo machine, it's not recognized at all. Not even as Serial device:
Code:
usb 2-1: new full speed USB device using ohci_hcd and address 4
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: USB disconnect, address 4
usb 2-1: new full speed USB device using ohci_hcd and address 5
usb 2-1: configuration #1 chosen from 1 choice


I have USBSerial enabled in my kernel:
Code:
CONFIG_USB_SERIAL=y


Well, maybe it does work, but how do I know which device in "/dev/" is my USB LCD?
Back to top
View user's profile Send private message
polu
n00b
n00b


Joined: 02 Mar 2007
Posts: 16

PostPosted: Thu Jan 31, 2008 6:42 pm    Post subject: Reply with quote

Never mind. I've got it working. :D

Make sure usbserial is a module. (NOT included in the kernel)

Run "lsusb -v" to grep the vendor and product id:
Code:

Bus 002 Device 002: ID 04d8:000a Microchip Technology, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x04d8 Microchip Technology, Inc.
  idProduct          0x000a
  bcdDevice            0.00
  iManufacturer           1 HTvision
  iProduct                2 USB-LCD
  iSerial                 3 V08.0b


Modprobe usbserial with these parameters:

Code:
modprobe usbserial vendor=0x04d8 product-0x000a


Create an usbserial device:

Code:
mknod /dev/ttyUSB0 c 188 0


I can now send data to the LCD using LCD4Linux. The text doesn't show up 100% correctly but it's a start! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum