LinHES Forums
http://forums.linhes.org/

Help with a USB to serial adapter for IR receiver
http://forums.linhes.org/viewtopic.php?f=5&t=16342
Page 1 of 1

Author:  nbdwt73 [ Thu Sep 06, 2007 9:06 pm ]
Post subject:  Help with a USB to serial adapter for IR receiver

I am stumped and unsure what to try next... I have a new machine (Dell 531s, dual core Athlon 4000) replacing an older HP machine that has worked fine for years. I have a serial IR attached and it works fine. The new one has no serial port so I bought a usb to serial adapter. The adapter is recognized but I cannot get the IR receiver to be recognized and I am past my knowledge now. Specific info follows...

root@mythtest2:/# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 002: ID 04b4:0711 Cypress Semiconductor Corp.
Bus 001 Device 001: ID 0000:0000

root@mythtest2:/# ls -l /dev/lir*
crw-rw---- 1 root video 61, 0 Sep 6 18:22 /dev/lirc0
srw-rw-rw- 1 root root 0 Sep 6 18:22 /dev/lircd

My hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
START_LIRCMD=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/ttyUSB0"
MODULES="lirc_dev lirc_serial"

Any hints? Thanks.

Oops - forgot the syslog...

root@mythtest2:/# cat /var/log/syslog | grep lirc

Sep 7 08:13:02 mythtest2 kernel: lirc_dev: IR Remote Control driver registered, at major 61
Sep 7 08:13:03 mythtest2 kernel: lirc_serial: auto-detected active low receiver
Sep 7 08:13:03 mythtest2 kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Sep 7 08:13:03 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: lircd(all) ready
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: accepted new client on /dev/lircd
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: could not get hardware features
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: this device driver does not support the new LIRC interface
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: major number of /dev/ttyUSB0 is 188
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: LIRC major number is 61
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: check if /dev/ttyUSB0 is a LIRC device
Sep 7 08:13:13 mythtest2 lircd-0.8.2-CVS-pvr150[2900]: caught signal

root@mythtest2:/# dmesg |grep -i usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
usb 1-3: new low speed USB device using ohci_hcd and address 2
usb 1-3: configuration #1 chosen from 1 choice
usb 1-4: new full speed USB device using ohci_hcd and address 3
usb 1-4: configuration #1 chosen from 1 choice
usbcore: registered new driver hiddev
input: USB To keyboard Mouse Converter as /class/input/input0
input: USB HID v1.00 Keyboard [USB To keyboard Mouse Converter] on usb-0000:00:02.0-3
input: USB To keyboard Mouse Converter as /class/input/input1
input: USB HID v1.00 Mouse [USB To keyboard Mouse Converter] on usb-0000:00:02.0-3
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usb 1-4: pl2303 converter now attached to ttyUSB0
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

Thanks again everybody...

Author:  bruce_s01 [ Fri Sep 07, 2007 10:14 am ]
Post subject: 

It looks like lirc is running as you have both lirc devices in /dev.
Have you tried running irw yet?

Bruce S.

Author:  nbdwt73 [ Fri Sep 07, 2007 11:42 am ]
Post subject: 

I have and I get no response. As best I can tell everything looks like it should work but I am missing something... Any other ideas?

Author:  mjl [ Fri Sep 07, 2007 12:19 pm ]
Post subject: 

Hi,

I see this as two separate issues.. no irw response & usb/serial

For the usb receiver, I use the 150 with dogbone. Assuming R5F1 some folks have had to make a couple of tweaks in the hardware config to look at the correct location. There was just a post today in a different section about this very item. Also I think tjc's Hints&Tips covers this issue at least in part.

Maybe some can help further with the usb/serial as com ports are rapidly disapearing on new boxes we will this more frequently..

Mike.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/