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
Development
General Development (no feature request here!)
TBS: CI/CAM support and other improvements
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="DJBlu" data-source="post: 840934" data-attributes="member: 54957"><p>I have only tested this out on a 6984 and 6981 card.</p><p></p><p>Works with 6981 not with 6984</p><p></p><p>[ATTACH]98536[/ATTACH]</p><p></p><p>You need the following driver too.</p><p></p><p><a href="http://hotfile.com/dl/145158752/e8114ee/20120204_driver-release_Unicable.rar.html" target="_blank">6981 Drivers</a></p><p></p><p>It gets the tune time to around 1 second from 3-3.5 seconds</p><p></p><p>not lightning quick but faster than before.</p><p></p><p>Just emailed to ask if they are updating their drivers to allow the rest of the TBS cards to have this feature. Will keep you posted.</p><p></p><p>The following goes in Turbosight.cs</p><p></p><p>[CODE]/// Turbosight.cs</p><p></p><p> private enum BdaExtensionProperty</p><p> {</p><p> Reserved = 0,</p><p> NBC_PARAMS = 10, // Property for setting the DVB-S2 parameter</p><p> BlindScan = 11, // Property for accessing and controlling the hardware blind scan capabilities.</p><p> TbsAccess = 21 // TBS property for enabling control of the common properties in the BdaExtensionCommand enum.</p><p> }</p><p></p><p> private struct BDA_NBC_PARAMS</p><p> {</p><p> public int rolloff;</p><p> public int pilot;</p><p> public int dvbtype;// 1 for dvbs 2 for dvbs2 0 for auto</p><p> public int fecrate;</p><p> public int modtype;</p><p> }</p><p></p><p> private const int TbsNBCParamsSize = 20;</p><p></p><p> /// <summary></p><p> /// Sets the DVB-Type for TBS PCIe Card.</p><p> /// </summary></p><p> /// <param name="reply">The reply message.</param></p><p> /// <returns><c>true</c> if a reply is successfully received, otherwise <c>false</c></returns></p><p> public void SetDVBS2(DVBSChannel channel)</p><p> {</p><p> //Set the Pilot</p><p> Log.Log.Info("Turbosight: Set DVB-S2");</p><p> if(channel.ModulationType != ModulationType.ModNbc8Psk && channel.ModulationType != ModulationType.ModNbcQpsk)</p><p> return;</p><p> int hr;</p><p> KSPropertySupport supported;</p><p> _propertySet.QuerySupported(BdaExtensionPropertySet, (int)BdaExtensionProperty.NBC_PARAMS,</p><p> out supported);</p><p> if ((supported & KSPropertySupport.Set) == KSPropertySupport.Set)</p><p> {</p><p> BDA_NBC_PARAMS DVBNBCParams = new BDA_NBC_PARAMS();</p><p> DVBNBCParams.fecrate = (int)channel.InnerFecRate;</p><p> DVBNBCParams.modtype = (int)channel.ModulationType;</p><p> DVBNBCParams.pilot = (int)channel.Pilot;</p><p> DVBNBCParams.rolloff = (int)channel.Rolloff;</p><p> DVBNBCParams.dvbtype = 2; //DVB-S2</p><p> Log.Log.Info("Turbosight: Set DVB-S2: {0}", DVBNBCParams.dvbtype);</p><p> Marshal.StructureToPtr(DVBNBCParams, _generalBuffer, true);</p><p> DVB_MMI.DumpBinary(_generalBuffer, 0, TbsNBCParamsSize);</p><p></p><p> hr = _propertySet.Set(_propertySetGuid,(int)BdaExtensionProperty.NBC_PARAMS,</p><p> _generalBuffer, TbsNBCParamsSize,</p><p> _generalBuffer, TbsNBCParamsSize</p><p> );</p><p></p><p> if (hr != 0)</p><p> {</p><p> Log.Log.Info("Turbosight: Set DVB-S2 returned {0}", hr, DsError.GetErrorText(hr));</p><p> }</p><p> }</p><p> else</p><p> {</p><p> Log.Log.Info("Turbosight: Set DVB-S2 not supported");</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p>And call it in SendDiseqcCommand</p><p></p><p>[CODE] SetDVBS2(channel); // Don't need to know the result of this.</p><p> </p><p> return (successDiseqc && successTone);</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="DJBlu, post: 840934, member: 54957"] I have only tested this out on a 6984 and 6981 card. Works with 6981 not with 6984 [ATTACH]98536.vB[/ATTACH] You need the following driver too. [URL="http://hotfile.com/dl/145158752/e8114ee/20120204_driver-release_Unicable.rar.html"]6981 Drivers[/URL] It gets the tune time to around 1 second from 3-3.5 seconds not lightning quick but faster than before. Just emailed to ask if they are updating their drivers to allow the rest of the TBS cards to have this feature. Will keep you posted. The following goes in Turbosight.cs [CODE]/// Turbosight.cs private enum BdaExtensionProperty { Reserved = 0, NBC_PARAMS = 10, // Property for setting the DVB-S2 parameter BlindScan = 11, // Property for accessing and controlling the hardware blind scan capabilities. TbsAccess = 21 // TBS property for enabling control of the common properties in the BdaExtensionCommand enum. } private struct BDA_NBC_PARAMS { public int rolloff; public int pilot; public int dvbtype;// 1 for dvbs 2 for dvbs2 0 for auto public int fecrate; public int modtype; } private const int TbsNBCParamsSize = 20; /// <summary> /// Sets the DVB-Type for TBS PCIe Card. /// </summary> /// <param name="reply">The reply message.</param> /// <returns><c>true</c> if a reply is successfully received, otherwise <c>false</c></returns> public void SetDVBS2(DVBSChannel channel) { //Set the Pilot Log.Log.Info("Turbosight: Set DVB-S2"); if(channel.ModulationType != ModulationType.ModNbc8Psk && channel.ModulationType != ModulationType.ModNbcQpsk) return; int hr; KSPropertySupport supported; _propertySet.QuerySupported(BdaExtensionPropertySet, (int)BdaExtensionProperty.NBC_PARAMS, out supported); if ((supported & KSPropertySupport.Set) == KSPropertySupport.Set) { BDA_NBC_PARAMS DVBNBCParams = new BDA_NBC_PARAMS(); DVBNBCParams.fecrate = (int)channel.InnerFecRate; DVBNBCParams.modtype = (int)channel.ModulationType; DVBNBCParams.pilot = (int)channel.Pilot; DVBNBCParams.rolloff = (int)channel.Rolloff; DVBNBCParams.dvbtype = 2; //DVB-S2 Log.Log.Info("Turbosight: Set DVB-S2: {0}", DVBNBCParams.dvbtype); Marshal.StructureToPtr(DVBNBCParams, _generalBuffer, true); DVB_MMI.DumpBinary(_generalBuffer, 0, TbsNBCParamsSize); hr = _propertySet.Set(_propertySetGuid,(int)BdaExtensionProperty.NBC_PARAMS, _generalBuffer, TbsNBCParamsSize, _generalBuffer, TbsNBCParamsSize ); if (hr != 0) { Log.Log.Info("Turbosight: Set DVB-S2 returned {0}", hr, DsError.GetErrorText(hr)); } } else { Log.Log.Info("Turbosight: Set DVB-S2 not supported"); } } [/CODE] And call it in SendDiseqcCommand [CODE] SetDVBS2(channel); // Don't need to know the result of this. return (successDiseqc && successTone); }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
TBS: CI/CAM support and other improvements
Contact us
RSS
Top
Bottom