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

IRBlaster R5A26 old walkthrough does not work *Solved*
http://forum.linhes.org/viewtopic.php?f=14&t=7107
Page 1 of 2

Author:  iscraigh [ Sun Nov 27, 2005 3:31 pm ]
Post subject:  IRBlaster R5A26 old walkthrough does not work *Solved*

Ok I have set this up a couple of times and not had a problem but with this revision I seem to be.

Using these instructions

http://mysettopbox.tv/phpBB2/viewtopic.php?t=4462

I start here
Also unpack the lirc-modules

Code:
tar -xzvf lirc-modules.tar.gz

I get an error Cannot open no such file or directory


So I try to apt get and get the message that i have the latest version

so i run

dpkg-reconfigure lirc-modules-source

follow the directions but get a failure at the end because it cannot find the source files

Any how to get this working.

Also tuner is starting on channel 9 even when setup is set at 3

had same problem on another box using r5a22


thanks

Craig

Edit

not sure how but the blaster now sends (found command for unzipping a bz2 file). so irsend sends.....irw recieves.........change_channel script works. Myth does not respond to ir input but if irw works then it is not a hardware problem not sure where to look. suggestions?

Author:  tjc [ Sun Nov 27, 2005 11:00 pm ]
Post subject: 

Try:
Code:
cd /usr/src
ls -al *lirc*

Author:  iscraigh [ Sun Nov 27, 2005 11:39 pm ]
Post subject: 

shows the files under lirc-0.7.2pvr150

dpkg-reconfigure lirc-modules-source

still will not work

Author:  cesman [ Sun Nov 27, 2005 11:48 pm ]
Post subject: 

That is because those packages have been removed. untar the source that is there and recompile LIRC the "normal" way...

Author:  iscraigh [ Mon Nov 28, 2005 9:35 am ]
Post subject: 

I have done this (setup make make install) and that got the blaster part going. IRW recieves the commands and the hex string seems to match my lircd.conf. irsend sends a command to the DCT. Channel change script works from command line.

Neither works from myth; it does not recieve signals and when i use the keyboard to change channels nothing happens.

I am going to reinstall tonight and then try to recompile again and see what happens any help much appreciated.

Craig

Author:  tjc [ Mon Nov 28, 2005 10:01 am ]
Post subject: 

Did you reboot after installing the newly compiled version? Because of the order dependancies it's really hard to test a new lircd or configuration otherwise...

Author:  elgordo123 [ Mon Nov 28, 2005 1:45 pm ]
Post subject: 

Here is my post. I am going about it a different way, and using a Actisys200L. This works for me, maybe some of the steps are interchangeable with yours? I had to follow the mythtv docs (that USED to be on mythtv site) to manually uninstall lirc and then recompile and reinstall it.
http://mysettopbox.tv/phpBB2/viewtopic. ... highlight=

Author:  iscraigh [ Tue Nov 29, 2005 12:32 am ]
Post subject: 

Okay for anyone else i did get it working I did not take as good of notes as i should have but I will give you enough info to put you in the right direction.

First go to /usr/src/

cd /usr/src/

extract lirc source

tar -jxvf lirc<tab> #it will auto complete

change directory to the newly made lirc.0.7.2pvr150 directory

cd /usr/src/lirc.0.7.2pvr150

run setup

./setup.sh


Here I am going by memory but choose serial then
transmitter and software generated

then menu item 3

then

make

then

make install

after this i followed these directions from my previous attempts

5. Edit "/etc/modutils/lirc" ("/etc/modutils/lirc" might be overwritten if you ever update the lirc package)

Code:
alias char-major-61-0 lirc_i2c
alias char-major-61-1 lirc_serial(2 cards look further down for directions)
options lirc_serial irq=3 io=0x2f8 # for COM2
#options lirc_serial irq=4 io=0x3f8 # for COM1


6. Update modules.conf

Code:
update-modules


7. Add the following lines to the end of "/etc/init.d/bootmisc.sh" (or wherever you put stuff that runs on boot)

Code:
/sbin/modprobe lirc_i2c
/usr/sbin/lircd --device=/dev/lirc --output=/dev/lircd
/bin/setserial /dev/ttyS1 uart none # for COM2 or use /dev/ttyS0 for COM1
/sbin/modprobe lirc_serial
/usr/sbin/lircd --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid


8. Setup lirc1. If you are using udev or devfs, you may need to do something different, or maybe nothing at all, but if you are using KnoppMyth, you will need to do this:

Code:
cd /dev
mknod /dev/lirc1 c 61 1 (see below if you have 2 cards)


9. Make a "/etc/lirc/lircd.conf" file that includes configurations for both devices (remote and set-top box) by concatenating the two configuration files together. For example, if your set-top box file is "stb.conf" and the file for your remote is "remote.conf", then:

Code:
cat remote.conf stb.conf > /etc/lirc/lircd.conf

(save your old lircd.conf first)

10. Test - either run the commands from step 7, or reboot. Then get syslog printing out so you can see what's going on:

Code:
tail /var/log/syslog -f &


To test the remote use "irw".

To test the transmitter, use "irsend"


Code:
irsend --device=/dev/lircd1 SEND_ONCE XXXXX 3 (see below if you have 2 cards)

(should send a "3" to the set-top box)

Note: replace "XXXXX" with value from the "name" line in the lircd configuration file for your set-top box.

11. Make a channel changing script "change_channel.sh" for use with Mythtv

Code:
#!/bin/sh
STB_NAME=XXXXX
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd1 SEND_ONCE $STB_NAME $digit
sleep 0.4
done
irsend --device=/dev/lircd1 SEND_ONCE $STB_NAME SELECT


Note: replace "XXXXX" with value from the "name" line in the lircd configuration file for your set-top box. Put it someplace useful, like /usr/local/bin and don't forget to make the script executable by all.

12. Run mythtv-setup to tell it to use "change_channel.sh"


There is a lot of good information out there. I suggest that you take a look at:

http://www.lirc.org
http://losdos.dyndns.org:8080/public/my ... _LIRC.html

______________________________________________________________________________________
2 pvr 250's

In your /etc/modutils/lirc you'll need something like

Code:
alias char-major-61-0 lirc_i2c
alias char-major-61-1 lirc_i2c
alias char-major-61-2 lirc_serial
options lirc_serial irq=3 io=0x2f8 # for COM2


Then in /etc/init.d/bootmisc.sh put something like

Code:
/sbin/modprobe lirc_i2c
/usr/sbin/lircd --device=/dev/lirc --output=/dev/lircd
/usr/sbin/lircd --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid
/bin/setserial /dev/ttyS1 uart none
/sbin/modprobe lirc_serial
/usr/sbin/lircd --device=/dev/lirc2 --output=/dev/lircd2 --pidfile=/var/run/lircd2.pid


You'll also need to make the extra devices in /dev

Code:
cd /dev
mknod /dev/lirc1 c 61 1
mknod /dev/lirc2 c 61 2


lircd will be your first x50 card, lircd1 will be the second and lircd2 will be com2


Then I rebooted and it worked

Craig

Author:  docdailey [ Tue Dec 06, 2005 1:20 am ]
Post subject: 

does this work for the pvr-150 mce kit? It has the two irblaster plugs on it. phillips/smk eHome remote.

The reason I ask is every time I try to get the irblaster on this thing working I somehow screw up my remote and have to start from scratch.

is there anything inherent to this that would mess up the remote when I do it?

thanks

Author:  iscraigh [ Tue Dec 06, 2005 9:00 am ]
Post subject: 

don't know the pvr150 with irblaster i set up worked out of the box with r5a26

Author:  docdailey [ Tue Dec 06, 2005 2:57 pm ]
Post subject: 

Do you know if that is the hauppauge transceiver or the Phillip or SMK eHome tansceiver?

Mine definitely did NOT work OOB.

Bill

Author:  iscraigh [ Tue Dec 06, 2005 6:46 pm ]
Post subject: 

Happauge

Author:  aspain [ Sun Jan 08, 2006 1:30 pm ]
Post subject: 

When I try to send a channel with 2 numbers :
/usr/local/bin/change_channel.sh 35

The pc send only the first number

If I try to send 1 number, it's ok :
/usr/local/bin/change_channel.sh 3
or
/usr/local/bin/change_channel.sh 5


I use this script :

#!/bin/sh
STB_NAME=SA2000
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd1 SEND_ONCE $STB_NAME $digit
#sleep 0.4
done
irsend --device=/dev/lircd1 SEND_ONCE $STB_NAME SELECT

I'm on R5A26
and I use a Scientific Atlanta (SA2000)

Author:  iscraigh [ Sun Jan 08, 2006 1:41 pm ]
Post subject: 

Try taking out the last line in the channel change script, the one that says to send a select. Should not matter but i use that to speed up channel changes on the DCT2500. What happens when you run the irsend command from a prompt?

Craig

Author:  iscraigh [ Sun Jan 08, 2006 1:42 pm ]
Post subject: 

irsend --device=/dev/lircd1 SEND_ONCE SA2000 10

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