LinHES Forums http://forum.linhes.org/ |
|
Two IR Blasters http://forum.linhes.org/viewtopic.php?f=6&t=14096 |
Page 1 of 2 |
Author: | Big boy stan [ Fri Feb 09, 2007 10:58 am ] |
Post subject: | Two IR Blasters |
My backend has two PVR150s. One has the IR blaster and the other does not. I just got the PVR150's IR blaster to work with my STB. Now I need to get the other PVR150 to work with it and will need to buy a serial IR Blaster (I guess...true?). Will installing the serial IRblaster break the first one? Does anyone have a PVR150 blaster and a serial blaster working on the same BE? |
Author: | poflynn [ Fri Dec 14, 2007 11:53 pm ] |
Post subject: | Exactly my problem |
You sound like me - a 150 with integrated IR blaster working fine right now plus I have a 150MCE (essentially no blaster with this) which I'd like to add in to record from another STB. Lastly I have a single serial port and a homebrew serial blaster which I would like to use to control the second (identical) STB. I found this link which seems to describe what I need to do however I wouldn't have thought that it would have been so involved? Can't I copy all the lircd files I have right now & just re-cfg them manually? TIA, Paul |
Author: | ceenvee703 [ Sat Dec 15, 2007 7:28 am ] |
Post subject: | |
Not sure you included the link. Did you mean this one? Looks exactly up your alleys... http://www.knoppmythwiki.org/index.php? ... hSetTopBox |
Author: | poflynn [ Sat Dec 15, 2007 11:09 am ] |
Post subject: | Sheesh |
Silly me, was a bit tired last night! This is the link I was referring to: http://losdos.dyndns.org:8080/public/my ... _LIRC.html The wiki link you gave does get me half way there as it shows how to set up two instances of lirc using two 150 cards whereas I have one 150 & one serial blaster. Between the two links hopefully I can figure it out myself. I guess I need to create a new lirc1 device and somehow add to the existing conf etc files or create new ones and point to them on the cmd line. I'll be letting y'all know how I get one either way as I think others may have the same situation (or maybe I'll just update the wiki). Thx |
Author: | Greg Frost [ Sat Dec 15, 2007 3:00 pm ] |
Post subject: | |
Because your second blaster is a different type, it should make it easy. The 150 bl;aster is handled by lircd and the serial blaster can be handled by irblasterd. Just run irblaster.sh to run the configuration script that should automatically setup your serial blaster. |
Author: | poflynn [ Sat Dec 15, 2007 10:45 pm ] |
Post subject: | Cool |
No way? That easy eh? I won't get to this for a few most likely but when I do I'll be sure to update the irblaster howto wiki entry with a note, if nothing else. Thanks Greg! |
Author: | Big boy stan [ Thu Jun 05, 2008 6:30 pm ] |
Post subject: | |
I had my system working well with the PVR150 remote and the PVR150's IRblaster. Today I got my new serial IRblaster (for my 2nd verizon box). Well I installed the serial IRBlaster and ran the script but now nothing works. No PVR150 remote, No PVR150 IRblaster and No serial IRBlaster. DMESG shows Code: irc_dev: IR Remote Control driver registered, at major 61 lirc_pvr150: ivtv i2c driver #0: no devices found lirc_pvr150: ivtv i2c driver #1: no devices found Installing knfsd (copyright (C) 1996 okir@monad.swb.de). NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory NFSD: starting 90-second grace period lirc_serial: auto-detected active high receiver lirc_dev: lirc_register_plugin: sample_rate: 0 and ls -l /dev/lirc* shows Code: crw-rw---- 1 root video 61, 0 Jun 5 20:21 /dev/lirc0 srw-rw-rw- 1 root root 0 Jun 5 20:21 /dev/lircd ls -l /dev/irb* shows Code: crw-r--r-- 1 root root 61, 0 Jun 5 20:21 /dev/irblaster
srw-rw-rw- 1 root root 0 Jun 5 20:21 /dev/irblasterd My lircd.conf, lircrc, and hardware.conf files look to be unchanged. Any ideas? |
Author: | Greg Frost [ Fri Jun 06, 2008 5:14 am ] |
Post subject: | |
Ouch. perhaps it is not as easy as I first thought. I have a DVICO remote receiver which is a USB receiver, but lircd communicates with it using /dev/usb/hiddev0. This means it doesnt actually use lirc_dev, so I can also have an irblaster which uses lirc_serial communicating with lirc_dev. Unfortunately, with the PVR150, it uses lirc_i2c communicating with lirc_dev, and I dont think lirc can support two devices (your PVR 150 and the serial blaster) at the kernel level. What this means is you will probably have to follow the instructions on that other page. It essentially builds a copy of lirc but changes all of the symbol names so that it does not clash with an existing instance of lirc. If there is anyonr out there that is successfully using a PVR remote and a serial blaster, please chime in. I think you can probably get your remote and pvr blaster working again just by running irblaster.sh and then saying you don't have a serial blaster. Then reboot. |
Author: | Greg Frost [ Fri Jun 06, 2008 5:34 am ] |
Post subject: | |
Actually, I havent used a blaster for a while, but I just went back through the posts in the "Out Of Box IRBlaster Support: Contribute now!" thread, and it looks as though it should work with a pvr card and an irblaster. No one in that thread actually had a 150 blaster, but they did get pvr cards and a serial blaster working together (which would imply that lirc_serial and lirc_i2c can both interface with lirc_dev successfully. The thing that doesnt look right is that both your normal lirc device and your lirc serial device have the same minor device number. Heres what I get: Code: sh-3.1$ ls -la /dev/*ir*
crw-r--r-- 1 root root 61, 1 Jun 6 21:12 /dev/irblaster srw-rw-rw- 1 root root 0 Jun 6 21:12 /dev/irblasterd crw-rw---- 1 root video 61, 0 Jun 6 20:52 /dev/lirc0 crw-rw---- 1 root video 61, 1 Jun 6 21:12 /dev/lirc1 srw-rw-rw- 1 root root 0 May 31 12:27 /dev/lircd Notice that /dev/irblaster is the same as /dev/lirc1 and they are both different from /dev/lirc0 run /etc/init.d/irblaster stop and check that the lirc_serial module has been removed. Then run /etc/init.d/irblaster start and check that the lirc_serial module has been loaded and check /dev/*ir* again. |
Author: | poflynn [ Fri Jun 06, 2008 12:06 pm ] |
Post subject: | |
Greg Frost wrote: but I just went back through the posts in the "Out Of Box IRBlaster Support: Contribute now!" thread, and it looks as though it should work with a pvr card and an irblaster. No one in that thread actually had a 150 blaster, but they did get pvr cards and a serial blaster working together
I have the 150 & home-brew serial blasters running together very happily. First I configured the 150 & later I added the serial & per your (Greg's) instructions above, I merely ran the lirc setup script, told it I had a serial blaster & all was good. I havent' looked at this in a while but if there are specific cfg files you want me to fwd or similar stuff let me know... |
Author: | Big boy stan [ Fri Jun 06, 2008 1:58 pm ] |
Post subject: | |
Poflynn, good to hear that it is possible. Can you show me what a ls -la /dev/*ir* looks like on your setup. Also can you show me a copy of your /etc/lirc/hardware.conf file. Greg, Shouldnt the second deivce (lirc1) be described in the hardware.conf file. Mine looks like this: Code: # /etc/lirc/hardware.conf
# # Arguments which will be used when launching lircd LIRCD_ARGS="" #Don't start lircmd even if there seems to be a good config file START_LIRCMD=false #Try to load appropriate kernel modules LOAD_MODULES=true # Run "lircd --driver=help" for a list of supported drivers. DRIVER="default" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/lirc0" MODULES="lirc_dev lirc_pvr150" |
Author: | Greg Frost [ Fri Jun 06, 2008 4:22 pm ] |
Post subject: | |
The irblaster stuff uses /etc/irblaster/irblaster.conf and /etc/irblaster/hardware.conf and /dev/irblaster. You will notice in my /dev/*ir* that /dev/lirc1 and /dev/irblaster point to the same device. |
Author: | Big boy stan [ Sat Jun 07, 2008 6:22 am ] |
Post subject: | |
Well I did a lsmod and go Code: lirc_serial 16128 1 nfsd 209584 13 exportfs 8832 1 nfsd lirc_pvr150 20024 0 lirc_dev 16772 2 lirc_serial,lirc_pvr150 Then I tried to stop irblaster and go Code: root@mythtv:/dev# /etc/init.d/irblaster stop Stopping irblaster daemon: irblasterdNo process in pidfile `/var/run/irblasterd.pid' found running; none killed. ERROR: Module lirc_serial is in use When I tried to start irblaster I got Code: root@mythtv:/dev# /etc/init.d/irblaster start
################################################## ## UNABLE TO DETERMINE WHICH DEVICE lirc_serial ## ## is using. ## ################################################## Any ideas? |
Author: | Big boy stan [ Sat Jun 07, 2008 9:04 am ] |
Post subject: | |
Well still no luck. My goal now is to get back to having lirc_pvr150 running properly (both remote receiver and the PVR150 blaster) and then start over. Right now nothing is working. I did a update-rc.d -f irblaster remove and a rmmod lirc_serial and rebooted but still nothing. now when I "lsmod" I get a Code: lirc_pvr150 20024 0 lirc_dev 16772 1 lirc_pvr150 and a "ls" gives me Code: root@mythtv:/myth/backup# ls -la /dev/*ir*
srw-rw-rw- 1 root root 0 Jun 7 10:44 /dev/lircd I am in quite over my head right now and losing lots of points with the family. Any (and all) help is apprcieated. |
Author: | poflynn [ Sun Jun 08, 2008 4:55 pm ] |
Post subject: | |
Big boy stan wrote: Well still no luck. My goal now is to get back to having lirc_pvr150 running properly (both remote receiver and the PVR150 blaster) and then start over. I would say that is a good plan - focus on the 150 first. Quote: Right now nothing is working. I did a update-rc.d -f irblaster remove and a rmmod lirc_serial and rebooted but still nothing. When I wanted to get both of these working, I started with this link http://www.knoppmythwiki.org/index.php? ... hSetTopBox and got the 150 working. Then, per my earlier postings aboe, Greg advised that I could merely run the irblaster.sh setup script to get the serial one running, so I did, and it worked right away. Then after that I needed to create two channel changing scripts etc but you're far from there.. So, like we said, let's try to get the 150 working first. I'm no expert on it, I merely followed the wiki and it worked for me. Here's what my system looks like: Code: mythtv@mbe:~$ ls -la /dev/*ir* crw-r--r-- 1 root root 61, 1 May 31 10:41 /dev/irblaster srw-rw-rw- 1 root root 0 May 31 10:41 /dev/irblasterd crw-rw---- 1 root video 61, 0 May 31 10:41 /dev/lirc0 crw-rw---- 1 root video 61, 1 May 31 10:41 /dev/lirc1 srw-rw-rw- 1 root root 0 May 31 10:41 /dev/lircd Code: mythtv@mbe:~$ lsmod |grep ir lirc_serial 16128 0 lirc_pvr150 20024 5 lirc_dev 16772 2 lirc_serial,lirc_pvr150 ir_kbd_i2c 10896 1 saa7134 ir_common 33540 4 cx88xx,saa7134,ir_kbd_i2c,bttv ivtv 130624 5 lirc_pvr150 firmware_class 11648 8 lirc_pvr150,pcmcia,saa7134_dvb,tda1004x,dvb_bt8xx,bttv,cx25840,ivtv i2c_core 20864 22 lirc_pvr150,i2c_ec,cx88_vp3054_i2c,cx88xx,saa7134_dvb,saa7134,ir_kbd_i2c,tda1004x,dvb_bt8xx,bttv,wm8775,cx25840,ivtv,saa7115,msp3400,tuner,tea5767,tda8290,tuner_simple,mt20xx,i2c_algo_bit,tveeprom Code: # /etc/irblaster/hardware.conf # # Author: Greg Frost # The COM Port used by the IRBlaster. Set it to COM1 COM2 or "". IRBLASTER_SERIAL_PORT=COM1 Code: # /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="" #Don't start lircmd even if there seems to be a good config file START_LIRCMD=false #Try to load appropriate kernel modules LOAD_MODULES=true # Run "lircd --driver=help" for a list of supported drivers. DRIVER="default" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/lirc0" MODULES="lirc_dev lirc_pvr150" Code: mythtv@mbe:~$ dmesg |grep lirc lirc_dev: IR Remote Control driver registered, at major 61 lirc_pvr150: ivtv i2c driver #0: no devices found lirc_pvr150: chip found with RX and TX lirc_dev: lirc_register_plugin: sample_rate: 0 lirc_pvr150: firmware of size 302355 loaded lirc_pvr150: 743 codesets loaded lirc_pvr150: Hauppauge PVR-150 IR blaster: firmware version 2.1.0 lirc_serial: auto-detected active high receiver lirc_dev: lirc_register_plugin: sample_rate: 0 Quote: I am in quite over my head right now and losing lots of points with the family. Any (and all) help is apprcieated.
Ah man I feel for you, I've been there, and I might add, this is the reason for the death of many Myth projects and another sale for Tivo.... Pity. As I said, I'm by no stretch and expert but will be happy do run any cmds you like to see what I have... Best of luck |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |