MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Development » Improvement Suggestions


Reply
 
LinkBack Thread Tools Display Modes
Old 2009-02-18, 19:03   #1 (permalink)
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, 89 views)
File Type: zip HcwHelper.zip (2.9 KB, 64 views)

Last edited by teosoft; 2009-02-18 at 19:13.. Reason: wrong file uploaded
teosoft is offline   Reply With Quote
Old 2009-04-30, 21:06   #2 (permalink)
Portal User
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Using HcwHelper.cs

I'm experiencing exactly the same problem as you were with the DSR-0112 Remote. I'm really pleased you've come up with a solution to the problem. I've download the HcwHelper.cs and the .xml document that you have posted. I've put the .xml file in the right folder and I now have the option to choose the 35 button remote. However I'm new to MediaPortal and C# and am unsure how use the .cs file.

I'm assuming the HcwHelper.cs replaces HcwHelper.exe in "C:\Program Files\Team MediaPortal\MediaPortal" after it has been compiled? I've tried compiling the .cs file but I get errors on line 31 "using MediaPortal.Configuration;" (also on lines 32, 33, 35 & 50).

I'd be really grateful if you could explain how I could get this working, it's driving me crazy!

Thanks in advance.
pbrightwell is offline   Reply With Quote
Old 2009-05-03, 21:56   #3 (permalink)
Portal User
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I don't know why it is not compiling. Probably you tried to compile just the file instead of the whole HcwHelper. Nevertheless, since the developers don't seem to incorporate the patch to the MediaPortal distribution I am attaching my compiled version of the HcwHelper.

Hope this help.
Attached Files
File Type: rar HcwHelper.rar (6.7 KB, 54 views)
teosoft is offline   Reply With Quote
Old 2009-05-03, 22:32   #4 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 8,823
Thanks: 243
Thanked 414 Times in 371 Posts

Country:

My System

Default

teosoft

Nothing but immediate fixes are getting put into code for 1.0.2 atm, so yes very viable addition, just not yet
__________________
Ray

Check your codecs are fine with Filmerit.
How to post your logs
Paranoid Delusion is offline   Reply With Quote
Old 2009-05-07, 17:48   #5 (permalink)
Portal User
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

TEOSOFT

Thanks for compiling this for me. It works a treat.

Thanks again.

Paul
pbrightwell is offline   Reply With Quote
Reply

Bookmarks

Tags
35-button remote control, dsr-0112, remote control

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MCE Remote control, numeric buttons not working efla General Support 6 2009-04-19 22:07
Hauppauge DSR-0112 remote -edited- teosoft Remotes 0 2009-02-05 15:19
Which buttons/remote control to use for comskip? artisticcheese Television (MyTV frontend and TV-Server) 5 2008-11-22 14:21
rc6 remote control. buttons are sticky and goes fast yaniv Installation, configuration support 2 2008-05-05 22:32
Support for buttons(play,rew,stop ect) and Vol Control of FIC Spectra HTPC carpov other Input / Ouput interfaces 0 2008-02-11 14:18


All times are GMT +1. The time now is 03:27.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden