View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jul 22, 2006 11:45 am 
Offline
Joined: Fri Jan 21, 2005 9:14 am
Posts: 124
Location: New York
This is going to be a LONG post. Background: My Myth system had two PVR-250 tuner cards and was running well. The silver dogbone A415-HPG remote was working perfectly on the first PVR-250. Life was good. Then Cablevision moved certain analog channel to digital only, so I was forced to get a digital STB for my Myth box. So, I bought a third tuner card, a PVR-150 with the IR Blaster, to record from and control the STB.

Original tuner configuration:

PCI slot 0: PVR-250 tuner0 (w/remote receiver)
PCI slot 1: empty
PCI slot 2: PVR-250 tuner1

I installed the PVR-150:

New tuner configuration:

PCI slot 0: PVR-250 tuner0
PCI slot 1: PVR-150 tuner1 (w/remote receiver and IRBlaster)
PCI slot 2: PVR-250 tuner2

In order to get the remote working via the PVR-150 I had to make one change to /etc/lirc/hardware.conf:

Code:
DEVICE="/dev/lirc"

was changed to

DEVICE="/dev/lirc1"


Then I quit mythfrontend, restarted lirc, restarted the front end, and the remote was working again. So far so good.

At this point, I'm basically where I was before I added the PVR-150, only now I have three tuners instead of two. Now to get the IR Blaster working. This is where I have been spinning my wheels for two days.

Prior to installing R5C7 I followed the instructions at http://www.blushingpenguin.com/mark/blog/?p=24 and http://mysettopbox.tv/phpBB2/viewtopic.php?t=6206 with no luck. After installing R5C7 and following the instructions at http://www.knoppmythwiki.org/index.php? ... hSetTopBox the results were the same.

These results are as follows, and point to what I'd believe is a clue to what's going on if I weren't so clueless: the firmware file haup-ir-blaster.bin will load only when module lirc_i2c is disabled and replaced by module lirc_pvr150. However, when this is done, lirc stops working completely - the remote no longer works, the ir blaster still doesn't work, and lirc dies.

Here is the relevant line in /etc/lirc/hardware.conf set to load lirc_i2c, the corresponding relevant syslog, and the results of the irw and irsend commands:

Code:
MODULES="lirc_dev lirc_i2c"


/var/log/syslog:
Code:
.
.
.
Jul 22 12:21:20 mythtv kernel: lirc_dev: IR Remote Control driver registered, at major 61
Jul 22 12:21:20 mythtv kernel: ivtv:  ==================== START INIT IVTV ====================
Jul 22 12:21:20 mythtv kernel: ivtv:  version 0.4.4 (tagged release) loading
Jul 22 12:21:20 mythtv kernel: ivtv:  Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
Jul 22 12:21:20 mythtv kernel: ivtv:  In case of problems please include the debug info between
Jul 22 12:21:20 mythtv kernel: ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
Jul 22 12:21:20 mythtv kernel: ivtv:  any module options, when mailing the ivtv-users mailinglist.
Jul 22 12:21:20 mythtv kernel: ivtv0: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 12:21:20 mythtv kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 16
Jul 22 12:21:20 mythtv kernel: ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [LNKA] -> GSI 16 (level, high) -> IRQ 19
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
Jul 22 12:21:20 mythtv kernel: tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
Jul 22 12:21:20 mythtv kernel: saa7115 2-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
Jul 22 12:21:20 mythtv kernel: msp3400 2-0040: chip=MSP3445G-B8 +nicam +simple +simpler +radio mode=simpler
Jul 22 12:21:20 mythtv kernel: msp3400 2-0040: msp34xxg daemon started
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=MSP3445G-B8, addr=40]
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: Hauppauge model 32062, rev B185, serial# 2869081
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: audio processor is MSP3445 (idx 12)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: decoder processor is SAA7115 (idx 19)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: has no radio, has IR remote
Jul 22 12:21:21 mythtv kernel: ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 12:21:22 mythtv kernel: ivtv0: Encoder revision: 0x02050032
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 12:21:22 mythtv kernel: tuner 2-0061: type set to 50 (TCL 2002N)
Jul 22 12:21:22 mythtv kernel: ivtv0: Initialized WinTV PVR 250, card #0
Jul 22 12:21:22 mythtv kernel: ivtv:  ======================  NEXT CARD  ======================
Jul 22 12:21:22 mythtv kernel: ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
Jul 22 12:21:22 mythtv kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 19
Jul 22 12:21:22 mythtv kernel: ACPI: PCI Interrupt 0000:02:07.0[A] -> Link [LNKD] -> GSI 19 (level, high) -> IRQ 20
Jul 22 12:21:22 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
Jul 22 12:21:22 mythtv kernel: tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #1)
Jul 22 12:21:22 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=(tuner unset), addr=61]
Jul 22 12:21:22 mythtv kernel: cx25840 3-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
Jul 22 12:21:26 mythtv kernel: cx25840 3-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
Jul 22 12:21:26 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
Jul 22 12:21:26 mythtv kernel: wm8775 3-001b: chip found @ 0x36 (ivtv i2c driver #1)
Jul 22 12:21:26 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: Hauppauge model 26152, rev C599, serial# 8960893
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: audio processor is CX25843 (idx 37)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: decoder processor is CX25843 (idx 30)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: has no radio, has IR remote
Jul 22 12:21:26 mythtv kernel: eth0: no IPv6 routers present
Jul 22 12:21:27 mythtv kernel: ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 12:21:27 mythtv kernel: ivtv1: Encoder revision: 0x02050032
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 12:21:27 mythtv kernel: tuner 3-0061: type set to 50 (TCL 2002N)
Jul 22 12:21:28 mythtv kernel: ivtv1: Initialized WinTV PVR 150, card #1
Jul 22 12:21:28 mythtv kernel: ivtv:  ======================  NEXT CARD  ======================
Jul 22 12:21:28 mythtv kernel: ivtv2: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 12:21:28 mythtv kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 18
Jul 22 12:21:28 mythtv kernel: ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKC] -> GSI 18 (level, high) -> IRQ 21
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=tveeprom, addr=50]
Jul 22 12:21:28 mythtv kernel: tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #2)
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=(tuner unset), addr=61]
Jul 22 12:21:28 mythtv kernel: saa7115 4-0021: saa7115 found @ 0x42 (ivtv i2c driver #2)
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=saa7115, addr=21]
Jul 22 12:21:28 mythtv kernel: msp3400 4-0040: chip=MSP4448G-A2 +nicam +simple +simpler +radio mode=simpler
Jul 22 12:21:28 mythtv kernel: msp3400 4-0040: msp34xxg daemon started
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=MSP4448G-A2, addr=40]
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: Hauppauge model 32032, rev B185, serial# 2835936
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: audio processor is MSP4448 (idx 27)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: decoder processor is SAA7115 (idx 19)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: has no radio, has IR remote
Jul 22 12:21:29 mythtv kernel: ivtv2: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 12:21:29 mythtv kernel: ivtv2: Encoder revision: 0x02050032
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 12:21:29 mythtv kernel: tuner 4-0061: type set to 50 (TCL 2002N)
Jul 22 12:21:29 mythtv kernel: ivtv2: Initialized WinTV PVR 250, card #2
Jul 22 12:21:29 mythtv kernel: ivtv:  ====================  END INIT IVTV  ====================
Jul 22 12:21:29 mythtv kernel: cx2388x v4l2 driver version 0.0.5 loaded
Jul 22 12:21:29 mythtv kernel: lirc_i2c: chip found @ 0x18 (Hauppauge IR)
Jul 22 12:21:29 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=Hauppauge IR, addr=18]
Jul 22 12:21:29 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 10
Jul 22 12:21:30 mythtv kernel: lirc_i2c: chip found @ 0x71 (Hauppauge IR (PVR150))
Jul 22 12:21:30 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=Hauppauge IR (PVR150), addr=71]
Jul 22 12:21:30 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 10
Jul 22 12:21:30 mythtv kernel: lirc_i2c: chip found @ 0x18 (Hauppauge IR)
Jul 22 12:21:30 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=Hauppauge IR, addr=18]
Jul 22 12:21:30 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 10
Jul 22 12:21:30 mythtv lircd-0.8.0pre4-pvr150[3656]: lircd(all) ready
.
.
.


Note that lirc_i2c only recognizes the ir receiver chip in each card, which is expected, since we need lirc_pvr150 to recognize the ir transmitter. Also as expected, ir transmit won't work. I'm only showing this to demonstrate that the ir receiver and remote are working; that haup-ir-blaster.bin wasn't loaded; and irsend doesn't work under this configuration.

Code:
root@mythtv:~# irw
00000000000017a5 00 OK grayHauppauge

root@mythtv:~# irsend -d /dev/lirc1 SEND_ONCE blaster 1
irsend: could not connect to socket
irsend: Connection refused
root@mythtv:~#


Now, just for fun let's modprobe for lirc_pvr150:

Code:
root@mythtv:~# modprobe lirc_dev debug=1 && modprobe lirc_pvr150 debug=1
root@mythtv:~# tail /var/log/syslog
Jul 22 12:40:44 mythtv kernel: kobject_register failed for i2c ir driver (-17)
Jul 22 12:40:44 mythtv kernel:  [kobject_register+54/96] kobject_register+0x36/0x60
Jul 22 12:40:44 mythtv kernel:  [bus_add_driver+64/160] bus_add_driver+0x40/0xa0
Jul 22 12:40:44 mythtv kernel:  [driver_register+66/80] driver_register+0x42/0x50
Jul 22 12:40:44 mythtv kernel:  [pg0+409085318/1067881472] i2c_add_driver+0x46/0xc0 [i2c_core]
Jul 22 12:40:44 mythtv kernel:  [pg0+411540778/1067881472] init_module+0x5a/0x60 [lirc_pvr150]
Jul 22 12:40:44 mythtv kernel:  [sys_init_module+338/528] sys_init_module+0x152/0x210
Jul 22 12:40:44 mythtv kernel:  [syscall_call+7/11] syscall_call+0x7/0xb


We've seen this error before, and I am certain it's caused by the module lirc_i2c being loaded when lirc_pvr150 is modprobed.

One question I don't know the answer to is whether lirc_i2c is intended to be replaced by lirc_pvr150, and if not, how to make them coexist without causing this error?

Alternate /etc/lirc/hardware.conf replacing lirc_i2c with lirc_pvr150

Now let's go through the same exercise, except now we replace lirc_i2c with lirc_pvr150 and reboot.

/etc/lirc/hardware.conf
Code:
#MODULES="lirc_dev lirc_i2c"
MODULES="lirc_dev lirc_pvr150"



/var/log/syslog:
Code:
.
.
.
Jul 22 13:06:12 mythtv kernel: lirc_dev: IR Remote Control driver registered, at major 61
Jul 22 13:06:12 mythtv kernel: ivtv:  ==================== START INIT IVTV ====================
Jul 22 13:06:12 mythtv kernel: ivtv:  version 0.4.4 (tagged release) loading
Jul 22 13:06:12 mythtv kernel: ivtv:  Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
Jul 22 13:06:12 mythtv kernel: ivtv:  In case of problems please include the debug info between
Jul 22 13:06:12 mythtv kernel: ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
Jul 22 13:06:12 mythtv kernel: ivtv:  any module options, when mailing the ivtv-users mailinglist.
Jul 22 13:06:12 mythtv kernel: ivtv0: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 13:06:12 mythtv kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 16
Jul 22 13:06:12 mythtv kernel: ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [LNKA] -> GSI 16 (level, high) -> IRQ 19
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
Jul 22 13:06:12 mythtv kernel: tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
Jul 22 13:06:12 mythtv kernel: saa7115 2-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
Jul 22 13:06:12 mythtv kernel: msp3400 2-0040: chip=MSP3445G-B8 +nicam +simple +simpler +radio mode=simpler
Jul 22 13:06:12 mythtv kernel: msp3400 2-0040: msp34xxg daemon started
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=MSP3445G-B8, addr=40]
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: Hauppauge model 32062, rev B185, serial# 2869081
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: audio processor is MSP3445 (idx 12)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: decoder processor is SAA7115 (idx 19)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: has no radio, has IR remote
Jul 22 13:06:13 mythtv kernel: ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 13:06:13 mythtv kernel: ivtv0: Encoder revision: 0x02050032
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 13:06:13 mythtv kernel: tuner 2-0061: type set to 50 (TCL 2002N)
Jul 22 13:06:14 mythtv kernel: ivtv0: Initialized WinTV PVR 250, card #0
Jul 22 13:06:14 mythtv kernel: ivtv:  ======================  NEXT CARD  ======================
Jul 22 13:06:14 mythtv kernel: ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
Jul 22 13:06:14 mythtv kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 19
Jul 22 13:06:14 mythtv kernel: ACPI: PCI Interrupt 0000:02:07.0[A] -> Link [LNKD] -> GSI 19 (level, high) -> IRQ 20
Jul 22 13:06:14 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
Jul 22 13:06:14 mythtv kernel: tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #1)
Jul 22 13:06:14 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=(tuner unset), addr=61]
Jul 22 13:06:14 mythtv kernel: cx25840 3-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
Jul 22 13:06:18 mythtv kernel: cx25840 3-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
Jul 22 13:06:18 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
Jul 22 13:06:18 mythtv kernel: wm8775 3-001b: chip found @ 0x36 (ivtv i2c driver #1)
Jul 22 13:06:18 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: Hauppauge model 26152, rev C599, serial# 8960893
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: audio processor is CX25843 (idx 37)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: decoder processor is CX25843 (idx 30)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: has no radio, has IR remote
Jul 22 13:06:19 mythtv kernel: eth0: no IPv6 routers present
Jul 22 13:06:19 mythtv kernel: ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 13:06:19 mythtv kernel: ivtv1: Encoder revision: 0x02050032
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 13:06:19 mythtv kernel: tuner 3-0061: type set to 50 (TCL 2002N)
Jul 22 13:06:19 mythtv kernel: ivtv1: Initialized WinTV PVR 150, card #1
Jul 22 13:06:19 mythtv kernel: ivtv:  ======================  NEXT CARD  ======================
Jul 22 13:06:19 mythtv kernel: ivtv2: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 13:06:19 mythtv kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 18
Jul 22 13:06:19 mythtv kernel: ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKC] -> GSI 18 (level, high) -> IRQ 21
Jul 22 13:06:19 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=tveeprom, addr=50]
Jul 22 13:06:19 mythtv kernel: tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #2)
Jul 22 13:06:19 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=(tuner unset), addr=61]
Jul 22 13:06:20 mythtv kernel: saa7115 4-0021: saa7115 found @ 0x42 (ivtv i2c driver #2)
Jul 22 13:06:20 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=saa7115, addr=21]
Jul 22 13:06:20 mythtv kernel: msp3400 4-0040: chip=MSP4448G-A2 +nicam +simple +simpler +radio mode=simpler
Jul 22 13:06:20 mythtv kernel: msp3400 4-0040: msp34xxg daemon started
Jul 22 13:06:20 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=MSP4448G-A2, addr=40]
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: Hauppauge model 32032, rev B185, serial# 2835936
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: audio processor is MSP4448 (idx 27)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: decoder processor is SAA7115 (idx 19)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: has no radio, has IR remote
Jul 22 13:06:21 mythtv kernel: ivtv2: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 13:06:21 mythtv kernel: ivtv2: Encoder revision: 0x02050032
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 13:06:21 mythtv kernel: tuner 4-0061: type set to 50 (TCL 2002N)
Jul 22 13:06:21 mythtv kernel: ivtv2: Initialized WinTV PVR 250, card #2
Jul 22 13:06:21 mythtv kernel: ivtv:  ====================  END INIT IVTV  ====================
Jul 22 13:06:21 mythtv kernel: lirc_pvr150: ivtv i2c driver #0: no devices found
Jul 22 13:06:21 mythtv kernel: lirc_pvr150: chip found with RX and TX
Jul 22 13:06:21 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=Hauppauge PVR150 IR RX, addr=71]
Jul 22 13:06:21 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=Hauppauge PVR150 IR TX, addr=70]
Jul 22 13:06:21 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: firmware of size 209327 loaded
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: 575 codesets loaded
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: Hauppauge PVR-150 IR blaster: firmware version 1.3.0
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: ivtv i2c driver #2: no devices found
Jul 22 13:06:22 mythtv lircd-0.8.0pre4-pvr150[3629]: lircd(all) ready
.
.
.
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: accepted new client on /dev/lircd
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: could not open /dev/lirc1
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: default_init(): No such device
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: caught signal


It appears that lirc_pvr150s loads up nicely, finds the ir receiver and transmitter chip on the PVR-150, finds and loads the haup-ir-blaster.bin firmware. While it looks great, now nothing works. I am fairly certain lirc dies (the last 4 lines above) at the moment mythfrontend starts up and connects as a client to lirc. Let's restart lirc and do a few more tests:

Code:
root@mythtv:~# ps ax | grep lir
 3599 ?        S      0:00 [lirc_pvr150]

#lirc died when mythfrontend initialized, let's restart it for a receive test

root@mythtv:~# /etc/init.d/lirc restart
Stopping lirc daemon: lircmd lircd.
Starting lirc daemon: lircd.
root@mythtv:~# ps ax | grep lir
 3599 ?        S      0:00 [lirc_pvr150]
 5912 ?        Ss     0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc1
 5914 ttyp0    R+     0:00 grep lir

# lirc is running try to receive a command from the remote

root@mythtv:~# irw
root@mythtv:~# ps ax | grep lir
 3599 ?        S      0:00 [lirc_pvr150]
 5917 ttyp0    R+     0:00 grep lir

# irw exits back to the shell, lirc died again, restart it again for a transit test

root@mythtv:~# /etc/init.d/lirc restart
Stopping lirc daemon: lircmd lircd.
Starting lirc daemon: lircd.
root@mythtv:~# ps ax | grep lir
 3599 ?        S      0:00 [lirc_pvr150]
 5933 ?        Ss     0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc1
 5935 ttyp0    S+     0:00 grep lir
root@mythtv:~# irsend -d /dev/lirc1 SEND_ONCE blaster 1
irsend: could not connect to socket
irsend: Connection refused
root@mythtv:~# ps ax | grep lir
 3599 ?        S      0:00 [lirc_pvr150]
 5933 ?        Ss     0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc1
 5938 ttyp0    R+     0:00 grep lir
root@mythtv:~#

# interestingly, irsend did not crash lirc



To summarize:

The haup-ir-blaster.bin firmware only loads when module lirc_pvr150 is loaded. If module lirc_i2c is loaded, then loading lirc_pvr150 will cause the "kobject_register failed" errors. And when module lirc_pvr150 is loaded and initializes, lirc crashes when an ir receiving client attaches to it, and also, irsend and the irblaster still does not work.

I'm fresh out of skills and ideas at this point. Many people have been able to get the PVR-150 IR Blaster working so hopefully I am just missing some small detail. Any suggestions from where to go from here would be greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 23, 2006 7:13 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
Quote:
root@mythtv:~# tail /var/log/syslog
Jul 22 12:40:44 mythtv kernel: kobject_register failed for i2c ir driver (-17)
Jul 22 12:40:44 mythtv kernel: [kobject_register+54/96] kobject_register+0x36/0x60
Jul 22 12:40:44 mythtv kernel: [bus_add_driver+64/160] bus_add_driver+0x40/0xa0
Jul 22 12:40:44 mythtv kernel: [driver_register+66/80] driver_register+0x42/0x50
Jul 22 12:40:44 mythtv kernel: [pg0+409085318/1067881472] i2c_add_driver+0x46/0xc0 [i2c_core]
Jul 22 12:40:44 mythtv kernel: [pg0+411540778/1067881472] init_module+0x5a/0x60 [lirc_pvr150]
Jul 22 12:40:44 mythtv kernel: [sys_init_module+338/528] sys_init_module+0x152/0x210
Jul 22 12:40:44 mythtv kernel: [syscall_call+7/11] syscall_call+0x7/0xb


ugly -- not your run of the mill error, its closer to a kernel panic.

Why not just plop down $20 and get a serial IR blaster? You have invested far more than
$20 dollars worth of effort into getting other blaster to work, cut and run.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 23, 2006 9:26 am 
Offline
Joined: Fri Jul 14, 2006 6:35 pm
Posts: 2
Russ,
I don't know if you realize this but there are multiple kinds of PVR 150 card with Blaster Boxes. The easiest way to tell them apart is wither the blaster hooks up through the PVR card or the USB. If you have the USB blaster then the default Knoppmyth settings for mceusb2 should work. For the other kind there are numerous sites. This is the most popular:

http://www.blushingpenguin.com/mark/blog/?p=24

To be honest you seem like you know more than me about this stuff, but I hope this helps or at least points you in the right direction.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 23, 2006 9:25 pm 
Offline
Joined: Fri Jan 21, 2005 9:14 am
Posts: 124
Location: New York
With a bit more tweaking I got it working, there were two main problems:

1) when lirc_pvr150 is loaded, there is no need to specify /dev/lirc1 as it assigned the first card with an IR blaster (which was the second card in my system) as /dev/lirc.

2) doing a make install of lirc-for-cecil.tar.bz2 placed the new lirc binaries in /usr/local/sbin and /usr/local/bin, leaving the existing lirc binaries in /usr/sbin and /usr/bin. I renamed the old binaries and moved the new ones in their place and….

VOILA the blaster LED now flashes and the remote works.

However this led me to a bigger - and probably fatal - problem:

None of the send_power_new commands work on my Scientific Atlanta 4200. Turns out Hauppauge does not support the SA 4200 in their firmware, and I don’t believe there is any mechanism for adding unsupported codes. I sent Hauppauge an email about this and they told me support for the SA 4200 just missed the June 2006 release and will be included in the next release (date TBA). Cool.


Top
 Profile  
 
PostPosted: Tue Jul 25, 2006 2:25 pm 
Offline
Joined: Thu Jul 06, 2006 9:35 pm
Posts: 10
I find you're post to be rather great and well appreciated by me. I appreciate you're efforts indeed funny thing is I have issues with my IR blaster No light comes on I tried it in windows with the new firmware and IRblaster utility low and behold it was a no go there again. Dunno the light blinked just fine but my cable box Motorola DCT2244 just didnt want to power down dunno if its supported or not.... I thought it was but could be wrong I'll have to recheck the supported not supported list!
I'd appreciate if you'd elaborate on the steps from the beginning on which you you're self followed and not the blushing penguin aka Mark...
I think we need to nip this IR issue in the but from the get go. I don't see a reason for knoppmyth not to give you the appropriate script and list of codsets along with the hauppauge irblaster bin file.
I really believe whole heartedly that this should not be as big of an issue as it is someone needs to take initiative know that we know it can be done and how its done I believe a lot of the effort in doing so could be eliminated. The base idea of knoppmyth was to make it as user friendly as possible.
In doing so RC58 or some soon to be announced release should support such a thing put it in the suggestion box but the box is full I guess... There are many with PVR150's like you and I have and many who are still having problems.
What we need is a good guide something not too complex because much of mythtv was way harder sounding then it actually is.
Russ if you would do the honors I'd appreciate if you'd write up a how to in you're case of what you did to get it working and post it in the tips and tricks it wouldnt hurt if some of the mod's believed in sticky option for postings as well it always helps to have stickies saves you the hassel of having to scour through countless useless post that have no relevance to what you typed in the search box.

Who says that I says that hehe!

Have a good one free speech comes at a price my hands are kinda tired from typing this sucker roflmao.

-infringer-


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 27, 2006 5:40 am 
Offline
Joined: Fri Jan 21, 2005 9:14 am
Posts: 124
Location: New York
I'll put together a writeup. Meanwhile, follow the examples above and post your own configuration & results, maybe we get get it working.


Top
 Profile  
 
PostPosted: Thu Feb 15, 2007 7:27 am 
Offline
Joined: Fri Jan 21, 2005 9:14 am
Posts: 124
Location: New York
Here's the writeup:

How to set up a PVR150 IR Blaster

This writeup explains how to set up the PVR150 IR Blaster to work with a STB, in this case, a Scientific Atlanta SA-4200 since that's what I have.

These instructions should work with any STB supported by the PVR-150 firmware.


1) Edit /etc/lirc/hardware.conf, change MODULES lines as follows:
Code:
#MODULES="lirc_dev lirc_i2c"
MODULES="lirc_dev lirc_pvr150"


2) Install /etc/lircd.conf with PVR-150 blaster codeset key definitions. You can get it from: http://www.blushingpenguin.com/mark/lmilk/lircd.conf

3) Install /usr/local/bin/change_channel

I tweaked change_channel to make things a little easier. Now all one needs to do is identify the codeset, instead of having to go through lircd.conf and deleting the thousands of lines you won't need. In this case the SA-4200 codeset prefix is identified as "0_41_KEY_" so that's what gets plugged in:
Code:
#!/usr/bin/perl
# added codeset configuration - 2006-08-14 Russell Salerno
#
# make sure to set this string to
# the corresponding remote in /etc/lircd.conf
$remote_name = "blaster";

# Let's assume you don't need to press enter after you punch in a
# channel number. Change this to 1 if your cable box expects you press
# enter after each command
$needs_enter = 0;

# Change this to point to your rc executable
$rc_command = "/usr/bin/irsend";

# Change this to your codeset prefix
$codeset = "0_41_KEY_";

# This subroutine actually sends the signal to the cable box
sub change_SIGNAL {
    my($SIGNAL) = @_;
#    print "$SIGNAL\n";
#    print "$rc_command SEND_ONCE $remote_name $SIGNAL\n";
    system ("$rc_command SEND_ONCE $remote_name $SIGNAL");
}

$SIGNAL=$ARGV[0];
open F, ">> /var/log/channel.log";
print F "channel changing $SIGNAL\n";
close F;
print "channel changing $SIGNAL\n";

# Checks if $SIGNAL begins with a digit
# If it detects that the string is made up of digits, then it puts
# spaces between the digits.  Ex. 1234 becomes 1 2 3 4
if ( $SIGNAL =~ /^\d+$/ )
{
    my $length = length($SIGNAL);
    my $counter = 0;
    my $temp;

    while( $counter < $length )
    {
        $temp .= "$codeset" . substr($SIGNAL,$counter,1) ." ";
        $counter++;
    }

    change_SIGNAL($temp);
}
else
{
    # argument we passed was not made up of digits, so it must be a
    # command that does something other than channel changing on the
    # cable box
    change_SIGNAL($codeset . $SIGNAL);
}

# Do we need to send enter
if ( $needs_enter )
{
    system ("$rc_command SEND_ONCE $remote_name $codeset" . "ENTER");
}



Naturally, you'll want to set "$codeset" to the codeset prefix corresponding to your STB.

4) Keep in mind the IR emitter provided with the PVR-150 is not really an IR emitter at all, it's a visible red LED. Some SA-4200's, including mine, won't respond to visible red light. In this case you'll need to replace the red LED with an IR LED. You can get one from Radio Shack or, even better, from that old VCR remote you have laying the drawer. :-)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu