LinHES Forums http://forum.linhes.org/ |
|
Serial IR receiver experiment http://forum.linhes.org/viewtopic.php?f=2&t=8596 |
Page 1 of 1 |
Author: | cameraready [ Sat Feb 18, 2006 11:13 pm ] |
Post subject: | Serial IR receiver experiment |
I have a PVR150 non MCE (1045) that's installed in my backend, hidden in a closet. I would like to get a remote to use with my frontend, but the Hauppauge remote that came with my 150 is just sitting here collecting dust. Going through some misc computer parts, I discovered my Lego Mindstorms serial IR tower. So I thought it might be worth a try to see if I could get it to work with my remote. I added a fresh 9-volt battery to the unit and plugged it on com1. Following the wiki instructions for recompiling lirc, I reconfigured lirc to connect to my serial port and recompiled. This creates the lirc_serial module for use with serial IR receivers. I then edited /etc/init.d/bootmisc.sh and added the lines at the end. Code: # enable serial IR port setserial /dev/ttyS0 uart none modprobe lirc_serial /usr/local/sbin/lircd # Then changed /etc/modutils/lirc Code: root@mythtv:/home/mythtv# cat /etc/modutils/lirc #This file is modified by lirc's maintainer scripts. #Any 'options' line asociated with the selected hardware will be replaced. #However 'add options' lines will be left alone, so you can use that for #additional module parameters. # ej: add options lirc_serial sense=0 And Code: update-modules Then restarted the frontend. At this point I'm not seeing any obvious problems, but I can't get irw to work or irrecord to detect anything from the remote. IRW gives me the Connection refused error. Here's what dmesg reports for tty and lirc. Code: root@mythtv:/home/mythtv# dmesg | grep tty ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A root@mythtv:/home/mythtv# dmesg | grep lirc lirc_dev: IR Remote Control driver registered, at major 61 caller is init_port+0xb1/0x290 [lirc_serial] [<deea6a01>] init_port+0xb1/0x290 [lirc_serial] [<deea732a>] init_module+0x3a/0xa0 [lirc_serial] lirc_serial: auto-detected active high receiver lirc_dev: lirc_register_plugin: sample_rate: 0 Here's what my /etc/lirc/hardware.conf and lircd log look like. Code: root@mythtv:/home/mythtv# cat /etc/lirc/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="dev/input" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/lirc1" MODULES="lirc_dev lirc_serial" Code: root@mythtv:/home/mythtv# cat /var/log/lircd
Feb 18 22:38:13 mythtv lircd 0.7.2pvr150: removed client Feb 18 22:38:13 mythtv lircd 0.7.2pvr150: removed client Feb 18 22:38:32 mythtv lircd 0.7.2pvr150: removed client Feb 18 22:38:35 mythtv lircd 0.7.2pvr150: caught signal Feb 18 22:39:58 mythtv lircd 0.7.2pvr150: lircd(serial) ready Feb 18 22:40:43 mythtv lircd 0.7.2pvr150: accepted new client on /dev/lircd Feb 18 22:40:50 mythtv lircd 0.7.2pvr150: accepted new client on /dev/lircd I've tried different variables in the hardware.conf, but it doesn't seem to make any difference. Am I attempting the impossible, or should I just order a Streamzap remote? ![]() EDIT: I'm using R5A26 on a Via EPIA M1000. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |