[mythtv-users] lirc setup troubles
Jason
jason at wkrp.com
Thu Oct 7 03:20:24 UTC 2010
I'm using mythbuntu and I'm trying to configure my lirc to transmit
with an irblaster. My end goal is to control two set top boxes.
However for the moment I'm just trying to get one working.
I have an on board serial port which I'm not using. I purchased a 2
port serial card for this.
lspci -vv
05:01.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O
Controller (rev 01) (prog-if 02)
Subsystem: LSI Logic / Symbios Logic Device 0002
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
>TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 22
Region 0: I/O ports at ef00 [size=8]
Region 1: I/O ports at ee00 [size=8]
Region 2: I/O ports at ed00 [size=8]
Region 3: I/O ports at ec00 [size=8]
Region 4: I/O ports at eb00 [size=8]
Region 5: I/O ports at ea00 [size=16]
Kernel driver in use: serial
Kernel modules: parport_serial
setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0xef00, IRQ: 22
/dev/ttyS2, UART: 16550A, Port: 0xee00, IRQ: 22
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
The one IR blaster I'm testing is the model that has the visible light.
I have plugged it into ports one and two (ttyS1 / S2) and echo data to
the port making the IR flash. So I know that works. I did have to do a
"setserial /dev/ttyS1 uart 16550A" to get that to work otherwise I got
the error "echo: write error: Input/output error". This gets reset on
reboot.
I've tried following the Mythbuntu 8.04 (I use 10.04) install guide
section 12.2 on IR Transmitting with no luck.
I have tried the "sudo dpkg-reconfigure lirc". I wanted to just see it
work so I picked the Serial port direct TV for my transmitter. Figured
I should see the traffic and then I could use the code file I created later.
This is what it created in my hardware.conf file.
#Chosen IR Transmitter
TRANSMITTER="Serial Port (UART) : Direct TV Receiver"
TRANSMITTER_MODULES="lirc_dev lirc_serial"
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE="/dev/lirc1"
TRANSMITTER_LIRCD_CONF="directtv/general.conf"
TRANSMITTER_LIRCD_ARGS=""
I selected the ttyS2 and this is what I got for my hardware config.
cat /etc/modprobe.d/lirc-serial.conf
#COM1 equivalent, /dev/ttyS0
#options lirc_serial irq=4 io=0x3f8
#COM2 equivalent, /dev/ttyS1
options lirc_serial irq=3 io=0x2f8
I've tried setting it to: irq=22 io=0xef00 - with no luck.
I did notice in my processes this:
root 5602 0.0 0.0 3028 692 ? Ss 23:11 0:00
/usr/sbin/lircd --output=/var/run/lirc/lircd --device=/dev/lirc0 --listen
root 5609 0.0 0.0 3076 748 ? Ss 23:11 0:00
/usr/sbin/lircd --output=/var/run/lirc/lircd1 --device=/dev/lirc1
--connect=localhost 8765 --pidfile=/var/run/lirc/lircd1.pid
however I have no /dev/lirc1
ls -la /dev/lirc*
crw-rw---- 1 root root 61, 0 2010-10-06 22:54 /dev/lirc0
lrwxrwxrwx 1 root root 19 2010-10-06 23:11 /dev/lircd ->
/var/run/lirc/lircd
lrwxrwxrwx 1 root root 19 2010-10-06 23:11 /dev/lircd1 ->
/var/run/lirc/lircd
How do I get that created?
---
Does anyone have any ideas what I could be doing wrong? Is there a set
up guide that I'm just not coming across that covers all the steps?
What I've found is a bit out of date I think.
Thank you,
Jason
More information about the mythtv-users
mailing list