I bought the Asrock 330HT to replace my Popcorn C-200 that really sucks, and thought that installing MP would be a breeze with the built-in remote and all.
HAHAHAHAHA. Yeah, sure.
Only a few buttons worked, and choosing "General HID" in the setup didn't make it much better.
It may work better on Vista or W7, but I was running on XP, SP3 fully updated to comply with the "best" platform for Mediaportal.
After spending some time with the Mediaportal code, I've found a solution and a fix.
The problem is twofold.
First of all, the Asrock HID device is not recognized as a valid remote, because it's not listed in the XML file. That was an easy fix.
The file "eHome infrared Transceiver list XP.xml" in the MP data directory (usually C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal), contains a list of all VID/PID combinations checked. The Asrock device is not a USB device and doesn't have a VID/PID, so it's obviously not going to be found.
Checking the Device Manager in Windows, reveals a direct HID id that can be used.
Adding the line:
to the XML file will let the MP code find your device.
Note that due to a lot of installation problems with the CIR driver on the Asrock, I may have gotten multiple instances of the HID devices, so the number "col02" above, may be different you your system. You can perhaps see that from the Device Manager, otherwise try with "col01", "col03" or something like that.
That should have done it, if it wasn't for the small detail, that the data coming out of the Asrock remote driver is not in the same format as the data from other HID devices, or, at least in the format that Mediaportal code expects.
So, I had to change the code in Remote.cs file to handle the correct format.
I've included it all in the attached ZIP file - a new RemotePlugins.dll, the source to Remote.cs and he eHome... XML file.
Please note that this was made for MP version 1.1.0 Beta. The DLL may or may not work on earlier versions.
To make the remote fully work, select both MCE remote and General HID in the Remote section of MP configuration. All buttons will now work, except for the "i" button that does not seem to send anything at all. You can even switch your 330HT on and off (standby) with the power button on the remote.
Have fun, and let me know how it works for you.
HAHAHAHAHA. Yeah, sure.
Only a few buttons worked, and choosing "General HID" in the setup didn't make it much better.
It may work better on Vista or W7, but I was running on XP, SP3 fully updated to comply with the "best" platform for Mediaportal.
After spending some time with the Mediaportal code, I've found a solution and a fix.
The problem is twofold.
First of all, the Asrock HID device is not recognized as a valid remote, because it's not listed in the XML file. That was an easy fix.
The file "eHome infrared Transceiver list XP.xml" in the MP data directory (usually C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal), contains a list of all VID/PID combinations checked. The Asrock device is not a USB device and doesn't have a VID/PID, so it's obviously not going to be found.
Checking the Device Manager in Windows, reveals a direct HID id that can be used.
Adding the line:
Code:
<transceiver deviceid="#*ntn0530&col02" name="Asrock Remote" />
Note that due to a lot of installation problems with the CIR driver on the Asrock, I may have gotten multiple instances of the HID devices, so the number "col02" above, may be different you your system. You can perhaps see that from the Device Manager, otherwise try with "col01", "col03" or something like that.
That should have done it, if it wasn't for the small detail, that the data coming out of the Asrock remote driver is not in the same format as the data from other HID devices, or, at least in the format that Mediaportal code expects.
So, I had to change the code in Remote.cs file to handle the correct format.
I've included it all in the attached ZIP file - a new RemotePlugins.dll, the source to Remote.cs and he eHome... XML file.
Please note that this was made for MP version 1.1.0 Beta. The DLL may or may not work on earlier versions.
To make the remote fully work, select both MCE remote and General HID in the Remote section of MP configuration. All buttons will now work, except for the "i" button that does not seem to send anything at all. You can even switch your 330HT on and off (standby) with the power button on the remote.
Have fun, and let me know how it works for you.