MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-07-16, 11:40   #1 (permalink)
Portal Member
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default DisEqc fix for some BDA DVB-S cards (Terratec,Pinnacle,etc)

Hi,
I posted this at wrong forum, since this is for TV-Server, it belong here.

I wrote this so I could use my Terratec Cinergy DVB-S 1200 with 4-port DisEqC switch in the latest TV-Server SVN(Rev. 15142)
I's based on the IBDA_FrequencyFilter.put_range function.
I'ts based on the C++ code from a post in DVBN forum "http://dvbn.happysat.org/viewtopic.php?t=39553", the orginal author is "biloute2121".
What I did, was to port it from c++ and implement it in TVServer.

PS!, use it at your own risk!!
Hopefully some one from the hardcore team can take a look at it and mabye add it to the svn.
The code is attatched to this post.
Please post your test teults.

Have fun!
/Digi

If you use this code, remember to change the type from int to ulong in the functions:

BDAFaces.cs
public interface IBDA_FrequencyFilter
.................................................. .........
[PreserveSig]
int put_Range([In] ulong ulRange);//int ulRange); //Changed by digi

[PreserveSig]
int get_Range([Out] out ulong pulRange);//int pulRange); //Changed by digi
----------------------------------------------

And add the following code in:
ConditionalAccess.cs

#Region Variables
............................
//Add this line
GenericBDAS _genericbdas = null;
.........................

public ConditionalAccess(IBaseFilter tunerFilter, IBaseFilter analyzerFilter)
..........................

//Add the foolowing code after the hauppauge callings:
Log.Log.WriteFile("Check for Generic BDA card");
_genericbdas = new GenericBDAS(tunerFilter, analyzerFilter);
if (_genericbdas.IsGenericBDAS)
{
Log.Log.WriteFile("Generic BDA card detected");
return;
}
_genericbdas = null;
.............................
And do the same in :
public void SendDiseqcCommand(ScanParameters parameters, DVBSChannel channel)
............................
if (_genericbdas != null)
{
_genericbdas.SendDiseqCommand(parameters, channel);
System.Threading.Thread.Sleep(100);
}
----------------------
Attached Files
File Type: zip GenericBDA.zip (8.8 KB, 20 views)
digidigi is offline   Reply With Quote
Old 2007-07-16, 11:54   #2 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

Thanks,

Its now in SVN

Frodo
frodo is offline   Reply With Quote
Reply

Bookmarks

Tags
bda, cards, diseqc, dvbs, fix, pinnacle, terratec

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DisEqc fix for some BDA cards (Terratec,Pinnacle,etc) digidigi General Development (no feature request here!) 0 2007-07-14 23:08
Monoblock LNB - BDA DVB-S DiSEqC problems tijera The old Bugreport Forum 25 2007-06-15 09:34
SkyStar2 + BDA Drivers +DISEQC ? Rhys.Goodwin Get Support 1 2007-03-23 07:25
Pinnacle DVB-T cards tjf support 3 2007-01-28 13:36
Technotrend BDA DiseqC Support, Chrashes janbrau General Support 3 2006-05-14 22:32


All times are GMT +1. The time now is 11:15.


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