home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
new plugin for changing channels (DirecTV w/serial port)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="astrocreep" data-source="post: 32602" data-attributes="member: 17755"><p>Just got it working. I had to make some modifications in order for it to work on my D10-200. I guess it uses the same command set, but formats it a little differently. Still needs some testing (which I intend to do now..), but here is the code.</p><p></p><p>And did I mention how nice it is to be blaster-less?</p><p></p><p><strong></strong></p><p><strong></strong></p><p><strong> private const byte COMMAND_PARSER_RESET = 0xFF;</strong></p><p><strong> private const byte D10_200_DEVICE_TYPE = 0x0D;</strong></p><p><strong></strong></p><p><strong> public bool TuneD10_200(Int32 channelNum)</strong></p><p><strong> {</strong></p><p><strong> string hexString = channelNum.ToString("x4");</strong></p><p><strong> byte[] bytes = new byte[7]{COMMAND_PREFIX, COMMAND_CHANNEL_SET, getByte(hexString, 0), getByte(hexString, 2), COMMAND_PARSER_RESET, COMMAND_PARSER_RESET, D10_200_DEVICE_TYPE};</strong></p><p><strong></strong></p><p><strong> _serialPort.Write(bytes, 0,7);</strong></p><p><strong></strong></p><p><strong> byte returnVal = (byte)_serialPort.ReadByte();</strong></p><p><strong></strong></p><p><strong> if (returnVal == RETURN_PROCESSING)</strong></p><p><strong> {</strong></p><p><strong> returnVal = (byte)_serialPort.ReadByte();</strong></p><p><strong> }</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong> if (returnVal == RETURN_COMPLETE)</strong></p><p><strong> {</strong></p><p><strong> return true;</strong></p><p><strong> }</strong></p><p><strong></strong></p><p><strong> return false;</strong></p><p><strong> }</strong></p><p><strong></strong></p><p><strong></strong></p></blockquote><p></p>
[QUOTE="astrocreep, post: 32602, member: 17755"] Just got it working. I had to make some modifications in order for it to work on my D10-200. I guess it uses the same command set, but formats it a little differently. Still needs some testing (which I intend to do now..), but here is the code. And did I mention how nice it is to be blaster-less? [b] private const byte COMMAND_PARSER_RESET = 0xFF; private const byte D10_200_DEVICE_TYPE = 0x0D; public bool TuneD10_200(Int32 channelNum) { string hexString = channelNum.ToString("x4"); byte[] bytes = new byte[7]{COMMAND_PREFIX, COMMAND_CHANNEL_SET, getByte(hexString, 0), getByte(hexString, 2), COMMAND_PARSER_RESET, COMMAND_PARSER_RESET, D10_200_DEVICE_TYPE}; _serialPort.Write(bytes, 0,7); byte returnVal = (byte)_serialPort.ReadByte(); if (returnVal == RETURN_PROCESSING) { returnVal = (byte)_serialPort.ReadByte(); } if (returnVal == RETURN_COMPLETE) { return true; } return false; } [/b] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
new plugin for changing channels (DirecTV w/serial port)
Contact us
RSS
Top
Bottom