View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 19 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Nov 27, 2005 3:31 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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?


Last edited by iscraigh on Tue Nov 29, 2005 12:33 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 11:00 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Try:
Code:
cd /usr/src
ls -al *lirc*


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 11:39 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
shows the files under lirc-0.7.2pvr150

dpkg-reconfigure lirc-modules-source

still will not work


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 11:48 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
That is because those packages have been removed. untar the source that is there and recompile LIRC the "normal" way...

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 9:35 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 10:01 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 1:45 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
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=

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 12:32 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 1:20 am 
Offline
Joined: Tue Nov 22, 2005 8:13 pm
Posts: 13
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 9:00 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
don't know the pvr150 with irblaster i set up worked out of the box with r5a26


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 2:57 pm 
Offline
Joined: Tue Nov 22, 2005 8:13 pm
Posts: 13
Do you know if that is the hauppauge transceiver or the Phillip or SMK eHome tansceiver?

Mine definitely did NOT work OOB.

Bill


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 6:46 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
Happauge


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 1:30 pm 
Offline
Joined: Fri May 06, 2005 6:31 am
Posts: 79
Location: Spain
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)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 1:41 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 1:42 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
irsend --device=/dev/lircd1 SEND_ONCE SA2000 10


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 0 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