Skip to contentSkip to conversation

Hauppauge Nova-TD-500 84xxx remote control

linux-dvb Bob 2 participants 4 messages Dec 17, 2008 Media (V4L/DVB)

lore
Share & tools
lore

Bob

author
#0 lore raw

Hi,
I used the following kludge :

The code for handling the remote is missing in linux/drivers/media/dvb/dvb-usb/dib0700_devices.c. Around line 1402 in you need to add

			},
	        },

		.rc_interval      = DEFAULT_RC_INTERVAL,
		.rc_key_map       = dib0700_rc_keys,
		.rc_key_map_size  = ARRAY_SIZE(dib0700_rc_keys),
		.rc_query         = dib0700_rc_query

pinched from the remotes above.

This enables the remote if you recompile and reload the module you should see a new input device in dmesg, in my case I can cat /dev/input/event4 and see the key presses.

Unfortunately , the code in dib0700_rc_query always returns the last key pressed so you get an event every 150mS with the same key in it. So on to the next kludge :

At the top of dib0700_rc_query I added:

static int toggle;

and after i = dib0700_ctrl_rd( blah blah) :

if ( key[2] == toggle )
return 0;
toggle = key[2];

This checks if the key fetched from the remote is the same as the last and returns if it is thus dumping all the repeats from dib0700_ctrl_rd;

Now you should find that UP , DOWN , LEFT and RIGHT keys work ok but not much else.

Kludge No.3 coming up :
Starting around line 612 in dib0700_devices.c are the key mappings for the Hauppauge remote. I changed the mapping for KEY_OK to KEY_ENTER so now I can navigate menus and select items.

And that is as far as I've got ..

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw
Quoted 29 lines · Bob

Hi,
I used the following kludge :

The code for handling the remote is missing in linux/drivers/media/dvb/dvb-usb/dib0700_devices.c. Around line 1402 in you need to add

                       },
               },

               .rc_interval      = DEFAULT_RC_INTERVAL,
               .rc_key_map       = dib0700_rc_keys,
               .rc_key_map_size  = ARRAY_SIZE(dib0700_rc_keys),
               .rc_query         = dib0700_rc_query

pinched from the remotes above.

This enables the remote if you recompile and reload the module you should see a new input device in dmesg, in my case I can cat /dev/input/event4 and see the key presses.

Unfortunately , the code in dib0700_rc_query always returns the last key pressed so you get an event every 150mS with the same key in it. So on to the next kludge :

At the top of dib0700_rc_query I added:

static int toggle;

and after i = dib0700_ctrl_rd( blah blah) :

if ( key[2] == toggle )
return 0;
toggle = key[2];

Quoted 8 lines

This checks if the key fetched from the remote is the same as the last and returns if it is thus dumping all the repeats from dib0700_ctrl_rd;

Now you should find that UP , DOWN , LEFT and RIGHT keys work ok but not much else.

Kludge No.3 coming up :
Starting around line 612 in dib0700_devices.c are the key mappings for the Hauppauge remote. I changed the mapping for KEY_OK to KEY_ENTER so now I can navigate menus and select items.

And that is as far as I've got ..

Hello Bob,

Are you using the latest code and 1.20 firmware? I pushed in a fix on December 8 that as far as I know addressed the last of the remaining dib0700 IR issues.

It is possible that your device is missing it's RC declaration, which I can add. But you shouldn't be seeing any more repeat problems.

If people are still having dib0700 IR issues, I would like to hear about it, since I thought I fixed them all...

Devin

Signature · 8 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
author
#2 lore raw
Quoted 72 lines · Devin Heitmueller

From: Devin Heitmueller <[email protected]>
Subject: Re: [linux-dvb] Hauppauge Nova-TD-500 84xxx remote control
To: [email protected]
Cc: [email protected]
Date: Wednesday, 17 December, 2008, 1:39 PM

Quoted 4 lines · Bob

Hi,
I used the following kludge :

The code for handling the remote is missing in

linux/drivers/media/dvb/dvb-usb/dib0700_devices.c. Around line 1402 in you need to add

Quoted 5 lines
                       },
               },

               .rc_interval      =

DEFAULT_RC_INTERVAL,

Quoted 2 lines
               .rc_key_map       = dib0700_rc_keys,
               .rc_key_map_size  =

ARRAY_SIZE(dib0700_rc_keys),

Quoted 5 lines

.rc_query = dib0700_rc_query

pinched from the remotes above.

This enables the remote if you recompile and reload

the module you should see a new input device in dmesg, in my case I can cat /dev/input/event4 and see the key presses.

Quoted 2 lines

Unfortunately , the code in dib0700_rc_query always

returns the last key pressed so you get an event every 150mS with the same key in it. So on to the next kludge :

Quoted 5 lines

At the top of dib0700_rc_query I added:

static int toggle;

Quoted 7 lines

and after i = dib0700_ctrl_rd( blah blah) :

if ( key[2] == toggle )
return 0;
toggle = key[2];

This checks if the key fetched from the remote is the

same as the last and returns if it is thus dumping all the repeats from dib0700_ctrl_rd;

Quoted 2 lines

Now you should find that UP , DOWN , LEFT and RIGHT

keys work ok but not much else.

Quoted 3 lines

Kludge No.3 coming up :
Starting around line 612 in dib0700_devices.c are the

key mappings for the Hauppauge remote. I changed the mapping for KEY_OK to KEY_ENTER so now I can navigate menus and select items.

Quoted 2 lines

And that is as far as I've got ..

Hello Bob,

Are you using the latest code and 1.20 firmware? I pushed in a fix on
December 8 that as far as I know addressed the last of the remaining
dib0700 IR issues.

It is possible that your device is missing it's RC declaration, which
I can add. But you shouldn't be seeing any more repeat problems.

Quoted 10 lines

If people are still having dib0700 IR issues, I would like to hear
about it, since I thought I fixed them all...

Devin

Signature · 3 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

Hi Devin ,
I am running the 1.20 firmware but missed that fix. I've just downloaded and tested the latest code and it works fine after enabling the remote.

Many thanks for your help with this.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#3 lore raw
Quoted 86 lines · Bob
Quoted 76 lines · Devin Heitmueller

From: Devin Heitmueller <[email protected]>
Subject: Re: [linux-dvb] Hauppauge Nova-TD-500 84xxx remote control
To: [email protected]
Cc: [email protected]
Date: Wednesday, 17 December, 2008, 1:39 PM

Quoted 4 lines · Bob

Hi,
I used the following kludge :

The code for handling the remote is missing in

linux/drivers/media/dvb/dvb-usb/dib0700_devices.c. Around line 1402 in you need to add

Quoted 5 lines
                       },
               },

               .rc_interval      =

DEFAULT_RC_INTERVAL,

Quoted 2 lines
               .rc_key_map       = dib0700_rc_keys,
               .rc_key_map_size  =

ARRAY_SIZE(dib0700_rc_keys),

Quoted 5 lines

.rc_query = dib0700_rc_query

pinched from the remotes above.

This enables the remote if you recompile and reload

the module you should see a new input device in dmesg, in my case I can cat /dev/input/event4 and see the key presses.

Quoted 2 lines

Unfortunately , the code in dib0700_rc_query always

returns the last key pressed so you get an event every 150mS with the same key in it. So on to the next kludge :

Quoted 5 lines

At the top of dib0700_rc_query I added:

static int toggle;

Quoted 7 lines

and after i = dib0700_ctrl_rd( blah blah) :

if ( key[2] == toggle )
return 0;
toggle = key[2];

This checks if the key fetched from the remote is the

same as the last and returns if it is thus dumping all the repeats from dib0700_ctrl_rd;

Quoted 2 lines

Now you should find that UP , DOWN , LEFT and RIGHT

keys work ok but not much else.

Quoted 3 lines

Kludge No.3 coming up :
Starting around line 612 in dib0700_devices.c are the

key mappings for the Hauppauge remote. I changed the mapping for KEY_OK to KEY_ENTER so now I can navigate menus and select items.

Quoted 2 lines

And that is as far as I've got ..

Hello Bob,

Are you using the latest code and 1.20 firmware? I pushed in a fix on
December 8 that as far as I know addressed the last of the remaining
dib0700 IR issues.

It is possible that your device is missing it's RC declaration, which
I can add. But you shouldn't be seeing any more repeat problems.

If people are still having dib0700 IR issues, I would like to hear
about it, since I thought I fixed them all...

Quoted 6 lines

Devin

--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

Quoted 4 lines

Hi Devin ,
I am running the 1.20 firmware but missed that fix. I've just downloaded and tested the latest code and it works fine after enabling the remote.

Many thanks for your help with this.

Well, that's good. I was worried there for a second. :-)

If you want to submit a patch to make your remote control work, that would help others who are using the same hardware as you (either post it to the list, or if you prefer just send me the "hg diff" of your working directory and I will do it on your behalf).

Thanks,

Devin

Signature · 8 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb