[olug] MythTV + PVR150 + IR Blaster

Jon Larsen relayer at levania.org
Wed Sep 19 12:55:32 UTC 2007


I'm using a separate IRBlaster to control my digital cable box.  I 
purchased it from irblaster.info for $15.  It hooks into an RS-232 Serial 
port.  

I used a lirc how to document which had instructions to configure both 
the IR Receiver from my pvr-250 and the serial irblaster.  You may need to 
read a couple different howtos' and merge them together. 

I used this as my howto.
http://www.eggshellskull.com/lirc/blaster/index.php

I am using Fedora Core 6 and the ATRPMs repo for the mythtv files.

If you have a built-in irblaster function, I assume you'll need to use i2c 
to talk to it. 

Below is how mine is setup for the Serial irblaster.

Here is what I have in my /etc/modprobe.conf

alias char-major-61-0 lirc_i2c
alias char-major-61-1 lirc_serial
options lirc_serial irq=4 io=0x3f8
####IR setup####
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install lirc_i2c
install lirc_serial setserial /dev/ttyS0 uart none; /sbin/modprobe --ignore-install lirc_serial

And my lircd.conf file:

begin remote

name grayHauppauge
bits 13
flags RC5
eps 30
aeps 100

one 0 0
zero 0 0
gap 200966
repeat_bit 2

begin codes
Power 0x00000000000017BD
Go 0x0000000000001FBB
TV 0x000000000000179C
Videos 0x0000000000001F98
Music 0x0000000000001799
Pictures 0x0000000000001F9A
Guide 0x000000000000179B
Radio 0x0000000000001F8C
UP 0x0000000000001794
LEFT 0x0000000000001F96
RIGHT 0x0000000000001797
DOWN 0x0000000000001F95
OK 0x00000000000017A5
Back-Exit 0x0000000000001F9F
Menu 0x000000000000178D
Prev-Channel 0x0000000000001F92
Mute 0x000000000000178F
Volume-UP 0x0000000000001F90
Volume-DOWN 0x0000000000001791
Channel-UP 0x0000000000001FA0
Channel-DOWN 0x00000000000017A1
Record 0x0000000000001FB7
Stop 0x00000000000017B6
Rewind 0x0000000000001FB2
Forward 0x00000000000017B4
Play 0x0000000000001FB5
Previous 0x00000000000017A4
Next 0x0000000000001F9E
Pause 0x00000000000017B0
1 0x0000000000001F81
2 0x0000000000001782
3 0x0000000000001F83
4 0x0000000000001784
5 0x0000000000001F85
6 0x0000000000001786
7 0x0000000000001F87
8 0x0000000000001788
9 0x0000000000001F89
0 0x0000000000001780
star 0x0000000000001F8A
hash 0x000000000000178E
red 0x0000000000001F8B
green 0x00000000000017AE
yellow 0x0000000000001FB8
blue 0x00000000000017A9
end codes

end remote 

begin remote
 name  DCT2000
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100
 
  header       9036  4424
  one           556  2185
  zero          556  4424
  ptrail        556
  gap          100025
  toggle_bit      0
 
 
      begin codes
          HELP                     0x000000000000B3F2
          POWER                    0x000000000000AFF9
          MUTE                     0x0000000000000FF7
          PAGE+                    0x000000000000A3F3
          PAGE-                    0x00000000000023FB
          LOCK                     0x00000000000097F6
          EXIT                     0x000000000000B7F4
          AUP                      0x000000000000D3F6
          ADOWN                    0x00000000000053FE
          ALEFT                    0x00000000000093F1
          ARIGHT                   0x00000000000013F9
          OK                       0x00000000000077F8
          GUIDE                    0x000000000000F3F4
          MENU                     0x00000000000067F9
          VOL+                     0x0000000000004FF3
          VOL-                     0x0000000000008FFB
          LAST                     0x00000000000037FC
          FAV                      0x00000000000057FA
          CH+                      0x0000000000002FF5
          CH-                      0x000000000000CFFD
          A                        0x00000000000017FE
          B                        0x0000000000001BF1
          C                        0x000000000000EBF9
          1                        0x0000000000007FF0
          2                        0x000000000000BFF8
          3                        0x0000000000003FF4
          4                        0x000000000000DFFC
          5                        0x0000000000005FF2
          6                        0x0000000000009FFA
          7                        0x0000000000001FF6
          8                        0x000000000000EFFE
          9                        0x0000000000006FF1
          0                        0x000000000000FFFF
          BYPASS                   0x000000000000D7F2
          MUSIC                    0x000000000000F7F0
          STOP                     0x00000000000063FD
          PAUSE                    0x00000000000007FF
          PLAY                     0x000000000000E3F5
          REW                      0x00000000000087F7
          REC                      0x00000000000073FC
          FFWD                     0x00000000000047FB
      end codes
 
end remote


and here is the change channel script I use to blast the channel changes:
[root at myth ~]# cat /usr/local/bin/chchannel 

#!/bin/sh
REMOTE_NAME=DCT2000
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
sleep 0.4 # note, you may have to tweak the interdigit delay up a bit
done
irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME OK

Seems to me after reading a couple of the links on your del.icio.us page 
that the built-in ivtv-i2c method is a bit complicated.  I did not have to 
compile the kernel or lirc to get mine to work, I just used the RPMS 
(which makes upgrading easier).


On Sun, 16 Sep 2007, Jeff Hinrichs - DM&T wrote:

> Date: Sun, 16 Sep 2007 21:13:15 -0500
> From: Jeff Hinrichs - DM&T <jeffh at dundeemt.com>
> Reply-To: Omaha Linux User Group <olug at olug.org>
> To: Omaha Linux User Group <olug at olug.org>
> Subject: [olug] MythTV + PVR150 + IR Blaster
> 
> Took my first crack at a myth box this weekend.  Pretty good for a
> first crack.  However, I am stuck at getting my PVR150 IR Blaster to
> work.  (Using with my cox digital box)  Anyone have a similar setup
> and care to share how they got the built-in IR Blaster to work?
> 
> I've been through the links listed here: http://del.icio.us/dundeemt/irblaster
> 
> Latest IVTV for the 2.6.20 kernel and what I think is the latest
> firmware for the pvr150.  Is there an easier way to skin this cat?
> 
> I've got the PVR150 receiving codes and confirmed via irw  -- now I
> just need to get my external channel changer running.
> 
> 
> -thanks,
> 
> Jeff
> 
> Ubuntu 7.04
> Mythbox .20.2
> ivtv .10.5
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 

-- 
Jon H. Larsen  - relayer -at- levania -dot- org
Operations Manager, Omaha Linux Users Group - http://www.olug.org/
AnimeSunday.org - http://www.animesunday.org/
Website - http://www.levania.org/~relayer/
GPG/PGP Pubkey - http://www.levania.org/~relayer/relayerpubkey.txt



More information about the OLUG mailing list