This plugin allows one to control their DirecTV reciever via serial port. It was originally created by Garry and has now been modified by CorruptByte and Micheloe to work with version 0.2 RC3 and RC4. It has further been modified to send both new and old command sets for DirecTV recievers. I have only been able to test it on 0.2 RC4 for now.
Instructions:
Drag the DirecTVTune.dll file into your \plugins\process directory.
Go into media portal configuration and navigate to the plugins pane. Make sure the plugin is enabled and set your COM port. You may also choose which type of command set you want to use to control your reciever, "new" or "old". Those who will choose old will generally have a reciever that is 3 years or more old.
There is also an option to turn on extensive debugging. This option gives a more detailed description of exactly what the program does as it does it. This option will also give you the actual conversation between the PC and the reciever. The log file can be found in \logs\mediaportal.log and will output its conversation in decimal. Those decimal numbers will need to be converted to hex so you can look up their meaning on http://dtvcontrol.com/index.aspx?content=cmds
You can easily convert decimal to hex using the calculator built into Windows XP, just switch to scientific mode.
4/24/2006 6:35:07 AM DirecTVTune: sending "set channel" command: 250 70
4/24/2006 6:35:07 AM DirecTVTune:Tune(): received: 240
4/24/2006 6:35:07 AM DirecTVTune:Tune(): send: 1 22
4/24/2006 6:35:07 AM DirecTVTune:Tune(): received: 242
The preceeding was an except from the debug . The numbers at the End are what you would convert from decimal into hex, so 250=FA and 70=46. If you go to dtvcontrol.com using the link above, you can look up FA 46 to see that it means.
According to the site, all new commands begin with FA. 46 is the command to "set channel". The computer then waits for the reciever to respond that it has recieved the order with F0. The channel number is then sent and you are told if it was successful or not.
The source has been included with this plugin so that others may change it as media portal evolves. Thank you Garry and Micheloe for your great coding, I hate IR Blasters!