Query about LIRC/setting up Hauppauge-A415-HPG-WE-A remote control

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Query about LIRC/setting up Hauppauge-A415-HPG-WE-A remote control

Alex Macfarlane Smith
Hiya,

I've been trying to set this remote control up (it's attached to a
Dib0700 Hauppauge NOVA-TD 500), but seem to be getting 2 key events for
every button press on it (this doesn't appear to be the same as the
generally reported issue of duplicated key presses, as the events coming
from dib0700.c look to be correct)

 From my reading of the debug from lircd, it would seem that the driver
is sending a down and an up event (value 1 and value 0 respectively),
but irw is just showing this as 2 key events (and hence when it gets as
far as mythtv, pressing 1 actually types in 11).

I've attached a debug log from lircd/irw from pressing the '1' key on
the remote (and my config file, in case it's set up wrongly).

Any help would be much appreciated :)

Cheers,

Alex.

root@hamster:/home/aardvark/lirc# daemons/lircd -n -H devinput -d /dev/input/event5 /etc/lirc/lircd.conf
lircd: started server socket
lircd: parsing '/etc/lirc/lircd.conf'
lircd: "begin" "remote"
lircd: parsing remote
lircd: creating first remote
lircd: "name" ""Hauppauge-A415-HPG-WE-A""
lircd: parsing "Hauppauge-A415-HPG-WE-A" remote
lircd: "bits" "16"
lircd: "eps" "30"
lircd: "aeps" "100"
lircd: "one" "0"
lircd: "zero" "0"
lircd: "pre_data_bits" "16"
lircd: "pre_data" "0x1"
lircd: "gap" "403983"
lircd: "toggle_bit_mask" "0x80000000"
lircd: "begin" "codes"
lircd:     begin codes
lircd: "TV" "0x0179"
lircd:       TV                   0x0000000000000179
lircd: "Videos" "0x0189"
lircd:       Videos               0x0000000000000189
lircd: "Music" "0x0188"
lircd:       Music                0x0000000000000188
lircd: "Pictures" "0x00E2"
lircd:       Pictures             0x00000000000000E2
lircd: "Radio" "0x0181"
lircd:       Radio                0x0000000000000181
lircd: "Guide" "0x016D"
lircd:       Guide                0x000000000000016D
lircd: "Off" "0x0074"
lircd:       Off                  0x0000000000000074
lircd: "Go" "0x0162"
lircd:       Go                   0x0000000000000162
lircd: "Up" "0x0067"
lircd:       Up                   0x0000000000000067
lircd: "Down" "0x006C"
lircd:       Down                 0x000000000000006C
lircd: "Left" "0x0069"
lircd:       Left                 0x0000000000000069
lircd: "Right" "0x006A"
lircd:       Right                0x000000000000006A
lircd: "Ok" "0x0160"
lircd:       Ok                   0x0000000000000160
lircd: "Menu" "0x008B"
lircd:       Menu                 0x000000000000008B
lircd: "Back/Exit" "0x009E"
lircd:       Back/Exit            0x000000000000009E
lircd: "Vol+" "0x0073"
lircd:       Vol+                 0x0000000000000073
lircd: "Vol-" "0x0072"
lircd:       Vol-                 0x0000000000000072
lircd: "PrevCh" "0x016B"
lircd:       PrevCh               0x000000000000016B
lircd: "Mute" "0x0071"
lircd:       Mute                 0x0000000000000071
lircd: "Ch+" "0x0192"
lircd:       Ch+                  0x0000000000000192
lircd: "Ch-" "0x0193"
lircd:       Ch-                  0x0000000000000193
lircd: "Stop" "0x0080"
lircd:       Stop                 0x0000000000000080
lircd: "Record" "0x00A7"
lircd:       Record               0x00000000000000A7
lircd: "Rew" "0x00A8"
lircd:       Rew                  0x00000000000000A8
lircd: "Play" "0x00CF"
lircd:       Play                 0x00000000000000CF
lircd: "FFW" "0x00D0"
lircd:       FFW                  0x00000000000000D0
lircd: "Pause" "0x0077"
lircd:       Pause                0x0000000000000077
lircd: "Replay" "0x0195"
lircd:       Replay               0x0000000000000195
lircd: "Skip" "0x0197"
lircd:       Skip                 0x0000000000000197
lircd: "1" "0x0002"
lircd:       1                    0x0000000000000002
lircd: "2" "0x0003"
lircd:       2                    0x0000000000000003
lircd: "3" "0x0004"
lircd:       3                    0x0000000000000004
lircd: "4" "0x0005"
lircd:       4                    0x0000000000000005
lircd: "5" "0x0006"
lircd:       5                    0x0000000000000006
lircd: "6" "0x0007"
lircd:       6                    0x0000000000000007
lircd: "7" "0x0008"
lircd:       7                    0x0000000000000008
lircd: "8" "0x0009"
lircd:       8                    0x0000000000000009
lircd: "9" "0x000A"
lircd:       9                    0x000000000000000A
lircd: "Star" "0x0037"
lircd:       Star                 0x0000000000000037
lircd: "0" "0x000B"
lircd:       0                    0x000000000000000B
lircd: "Char" "0x0029"
lircd:       Char                 0x0000000000000029
lircd: "Red" "0x018E"
lircd:       Red                  0x000000000000018E
lircd: "Green" "0x018F"
lircd:       Green                0x000000000000018F
lircd: "Yellow" "0x0190"
lircd:       Yellow               0x0000000000000190
lircd: "Blue" "0x0191"
lircd:       Blue                 0x0000000000000191
lircd: "end" "codes"
lircd:     end codes
lircd: "end" "remote"
lircd: end remote
lircd: config file read
lircd: lircd(devinput) ready
lircd: registering local client
lircd: accepted new client on /dev/lircd
lircd: initializing '/dev/input/event5'
lircd: devinput_rec
lircd: time 1238327634.397465  type 1  code 2  value 1
lircd: code 80010002
lircd: trying ""Hauppauge-A415-HPG-WE-A"" remote
lircd: devinput_decode
lircd: pre: 8001
lircd: code: 2
lircd: post: 0
lircd: code:                   0000000080010002

lircd: pre
lircd: found: 1
lircd: writing to client 0
lircd: trigger
lircd: devinput_rec
lircd: time 1238327634.397469  type 1  code 2  value 0
lircd: code 00010002
lircd: trying ""Hauppauge-A415-HPG-WE-A"" remote
lircd: devinput_decode
lircd: pre: 1
lircd: code: 2
lircd: post: 0
lircd: code:                   0000000000010002

lircd: pre
lircd: found: 1
lircd: writing to client 0
lircd: trigger
lircd: devinput_rec
lircd: time 1238327634.397471  type 0  code 0  value 0
lircd: code 00000000


aardvark@hamster:/var/log$ irw
0000000000010002 00 1 "Hauppauge-A415-HPG-WE-A"
0000000000010002 00 1 "Hauppauge-A415-HPG-WE-A"



begin remote
  name "Hauppauge-A415-HPG-WE-A"
  bits           16
  eps            30
  aeps          100
  one             0     0
  zero            0     0
  pre_data_bits   16
  pre_data       0x1
  gap          403983
  toggle_bit_mask 0x80000000
     begin codes
         TV                       0x0179
         Videos                   0x0189
         Music                    0x0188
         Pictures                 0x00E2
         Radio                    0x0181
         Guide                    0x016D
         Off                      0x0074
         Go                       0x0162
         Up                       0x0067
         Down                     0x006C
         Left                     0x0069
         Right                    0x006A
         Ok                       0x0160
         Menu                     0x008B
         Back/Exit                0x009E
         Vol+                     0x0073
         Vol-                     0x0072
         PrevCh                   0x016B
         Mute                     0x0071
         Ch+                      0x0192
         Ch-                      0x0193
         Stop                     0x0080
         Record                   0x00A7
         Rew                      0x00A8
         Play                     0x00CF
         FFW                      0x00D0
         Pause                    0x0077
         Replay                   0x0195
         Skip                     0x0197
         1                        0x0002
         2                        0x0003
         3                        0x0004
         4                        0x0005
         5                        0x0006
         6                        0x0007
         7                        0x0008
         8                        0x0009
         9                        0x000A
         Star                     0x0037
         0                        0x000B
         Char                     0x0029
         Red                      0x018E
         Green                    0x018F
         Yellow                   0x0190
         Blue                     0x0191
     end codes
end remote

------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Query about LIRC/setting up Hauppauge-A415-HPG-WE-A remote control

Alex Macfarlane Smith
Alex Macfarlane Smith wrote:

> Hiya,
>
> I've been trying to set this remote control up (it's attached to a
> Dib0700 Hauppauge NOVA-TD 500), but seem to be getting 2 key events for
> every button press on it (this doesn't appear to be the same as the
> generally reported issue of duplicated key presses, as the events coming
> from dib0700.c look to be correct)
>
>  From my reading of the debug from lircd, it would seem that the driver
> is sending a down and an up event (value 1 and value 0 respectively),
> but irw is just showing this as 2 key events (and hence when it gets as
> far as mythtv, pressing 1 actually types in 11).
>
> I've attached a debug log from lircd/irw from pressing the '1' key on
> the remote (and my config file, in case it's set up wrongly).
>
> Any help would be much appreciated :)
>
> Cheers,
>
> Alex.
>
I've 'fixed' it by hacking

toggle_bit_mask 0x80000000

to

toggle_bit_mask 0x00000000

which I think stops up events working at all, but seems to do the job in
terms of getting keys to work correctly. I suspect there's a better way tbh.

Alex.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com