[pvrusb2] Trouble with lirc

Frans Meulenbroeks fransmeulenbroeks at yahoo.com
Tue May 9 05:21:24 CDT 2006


Hi all,

Actually I encountered the same problem and I was
about to query whether anyone had more info.

I am on 2.6.16. Lirc 0.8.0 did not compile. Apparently
something has changed wrt i2c driver struct
initialisation. I patched this locally by changing the
struct (using some other code as example).

This made lirc to compile.
I figured out I needed lirc_i2c.
After that mode2 is giving me data, but when I start
lircd and irw nothing is received.
I haven't really found a way to specify that I have a
hauppauge receiver (I assume it does detect this
automagically).

I happen to know my way around remotes and found some
more info. The hauppauge remote uses the RC5 protocol.
This sends 1 toggle bit, 6 bits of system code (tv,
vcr, cd, ...) and 7 bits of command code.

When I repeatedly press key 1 I get as data either
0x1781 or 0x1f81. So it seems the high order bit of
the  2nd byte (the one being 7 or f) is the toggle
bit.
the leftmost 1 is the command code (if I press 2 I get
1782 or 1f82). the command code for digit 1 is 1, for
digit 2 is 2 etc. 
The odd thing is that the rest does not look like the
system code. It seems to be mostly ones, whereas the
system code for tv is 0 (vcr = 3, btw if I use a vcr
remote pressing 3 gives me either 1143 or 1943).
no output for a dvd remote.

I haven't had time yet to enable debug in the driver
to see what is happening, and I probably won't have
time before the weekend.

If you happen to have thoughts about this, please
share them.

Also I am interested to hear from people who have the
remote running with lirc (even if it is 0.7.0).
Especially I am interested in the output of mode2 when
the "1" key on the remote is pressed. (mode2 needs to
be run when lircd is not active), and in the output of
irw for that key (needs a running lircd).

Apart from that I am interested in the actual lirc
conf file (mine was the one for a standard rc5 control
which is supplied with lirc 0.8.0).
Here the scancode for key 1 is 0x1001 (which seems
sensible).

Best regards, Frans.

--- Mike Isely <isely at isely.net> wrote:

> On Mon, 8 May 2006, Rick Immel wrote:
> 
> > How do you setup lirc for pvrusb2?  I am running a
> 2.6.16 kernel and the
> > latest version of lirc (0.8.0) will not compile. 
> I was able to obtain a
> > CVS snapshot of lirc (0.8.1) that does compile,
> but will not work.  Is
> > there another version I should be using?  I assume
> that you setup lirc
> > for a Hauppauge PVR-x50 card just like you setup
> up MythTV.  Is that
> > correct?   Or should you setup lirc  as a USB or
> serial device?   In
> > other words, what should you select in the
> setup.sh menus to configure
> > lirc?  BTW both the pvrusb2 driver and MythTV are 
> working OK.
> 
> Rick:
> 
> Your assumption is correct; set up lirc for a
> Hauppauge PVR-x50 card.  The 
> lirc driver you need is the I2C driver, NOT any kind
> of USB driver.  The 
> actual IR receiver is an I2C chip inside the PVR
> USB2 device itself; the 
> pvrusb2 driver exports an I2C adapter interface to
> the kernel through 
> which the lirc I2C driver will attach an operate the
> chip.  So from the 
> viewpoint of lirc this is all I2C and the USB aspect
> of the device is 
> completely invisible to it.
> 
> I probably should add a clarification about this. 
> It never even occurred 
> to me that the fact that the PVR USB2 device is a
> USB peripheral that 
> there might be some confusion here.
> 
> As for the other issues you hit with compiling lirc,
> I can't suggest much 
> there.  I've been running lirc 0.7.0 here on a
> somewhat older kernel. 
> Whatever that problem is must be related to lirc and
> the kernel and not to 
> the pvrusb2 driver itself.  But, if you do get it to
> compile, it's the 
> "Hauppauge" (aka I2C) driver that you want to
> select.
> 
>    -Mike
> 
> -- 
>                          |         Mike Isely       
>   |     PGP fingerprint
>       Spammers Die!!     |                          
>   | 03 54 43 4D 75 E5 CC 92
>                          |   isely @ pobox (dot) com
>   | 71 16 01 E2 B5 F5 C1 E8
>                          |                          
>   |
> _______________________________________________
> pvrusb2 mailing list
> pvrusb2 at isely.net
>
http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the pvrusb2 mailing list