Re: Hauppauge IR remote codes & basic C programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




(Don't worry if you see 37fd or 37bd. That's normal; bit 11 is toggled by
the remote control on each new key press. Bits 12 to 15 are fixed; bits 0 to
5 are the key code.)

Plugging the numbers into ((value >> 6) & 0x1F), we get 0x1F and 0x1E.


Sorry, I'm confused.  How do we arrive at 0x1F and 0x1E ?

Here's where I'm up to now:

[root@media ~]# echo 1 >/sys/module/cx88xx/parameters/ir_debug
[root@media ~]# input-events -t 240 2
/dev/input/event2
  bustype : BUS_PCI
  vendor  : 0x70
  product : 0x9002
  version : 1
  name    : "cx88 IR (Hauppauge Nova-T DVB-T"
  phys    : "pci-0000:00:0a.2/ir0"
  bits ev : EV_SYN EV_KEY EV_REP

waiting for events
08:23:22.630077: EV_KEY KEY_MENU pressed
08:23:22.630083: EV_SYN code=0 value=0
08:23:22.877343: EV_KEY KEY_MENU released
08:23:22.877349: EV_SYN code=0 value=0

08:23:31.256247: EV_KEY KEY_MENU pressed
08:23:31.256253: EV_SYN code=0 value=0
08:23:31.503517: EV_KEY KEY_MENU released
08:23:31.503523: EV_SYN code=0 value=0

------------>>> above: Hit the 'menu' key on the R808, and then the 'mute' key on my Phillips TV remote

and the 'dmesg' for that action:

cx88[0] IR: biphase decoded: 3fcd
ir samples: ###___##___###___###___###___##___###___######___##______###___######______##_____________________________________________________
cx88[0] IR: biphase decoded: 3fcd
ir samples: ###___#####______###___###___##___###___######___##______###___######______##_______________________________________________
cx88[0] IR: biphase decoded: 37cd
ir samples: ###___######______##___###___###___###___#####___###______##___######______###______________________________________________________________
cx88[0] IR: biphase decoded: 37cd
ir samples: ##___###___###___###___##___###___###___#####___###______###___#####______###_____________________________________

cx88[0] IR: biphase decoded: 300d
ir samples: ##___######___###___###___##____##___###___###___###______##___######______###________________________________________
cx88[0] IR: biphase decoded: 300d
ir samples: ###___##___######___###___###___###___##___###___###______###___#####______###__________________________________________
cx88[0] IR: biphase decoded: 380d
ir samples: ###___###___######___##___###___###___###___###___##______###___######______###___________________________________________________________
cx88[0] IR: biphase decoded: 380d
ir samples: ###___###___###___##___###___###___###___#####___###______##___######______###____________________________________________

3fcd/37cd = Hauppauge menu button
300d/380d = Phillips mute button

------------>>> above: As you can see, the cx88xx is seeing different codes, but the IR decode is seeing it as the same keystroke...

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux