View Single Post
Old 2009-02-18, 19:03   #1 (permalink)
teosoft
Portal User
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Support for Hauppauge 35-buttons Remote Control DSR-0112

Started on: 2009-02-18
last update: 2009-02-18

Summary:

Hauppauge is shipping a new 35-buttons Remote Control (model no. DSR-0112) with their USB DVB-T cards. The new remote shares the codes of the 45-buttons remote but has a different remote code. I added support to this remote code but I don't know how to upload the modifications.

Area: Hardware - Remote Control

Description:

Adding support to this remote is as easy as adding a new remote code to RemotePlugins/Remotes/HcwRemote/HCWHelper/HCWHelper.cs. The differences between the original (Revision 21478) and my modified version are as follows:
Code:
***** HCWHelperOriginal.cs
   41:      private const int HCWPVR2 = 0x001E; // 45-Button Remote
   42:      private const int HCWPVR = 0x001F; // 34-Button Remote
***** HCWHELPER.CS
   41:      private const int HCWPVR2 = 0x001E; // 45-Button Remote
   42:      private const int HCWPVR2_35BUTTONS = 0x001D; // 35-Button Remote
   43:      private const int HCWPVR = 0x001F; // 34-Button Remote
*****

***** HCWHelperOriginal.cs
  294:              case HCWPVR2:
  295:                remoteCommand = keyCode + 2000;
***** HCWHELPER.CS
  295:              case HCWPVR2:
  296:              case HCWPVR2_35BUTTONS:
  297:                remoteCommand = keyCode + 2000;
*****
Also, I have added a new section to the XML file defining the remotes (MediaPortal\InputDeviceMappings\defaults\Hauppauge HCW.xml) to support this remote.

I am attaching HCWHelper.cs (zipped) and Hauppauge HCW.xml

Hope a developer could include it in the next release.
Attached Files
File Type: xml Hauppauge HCW.xml (52.3 KB, 103 views)
File Type: zip HcwHelper.zip (2.9 KB, 74 views)

Last edited by teosoft; 2009-02-18 at 19:13.. Reason: wrong file uploaded
teosoft is offline   Reply With Quote