IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> DVB-S tuning by BDA, What is going wrong ?
t3d
post Jul 20 2009, 05:19 AM
Post #1


Be nice to me, I am new.


Group: New Members
Posts: 2
Joined: 20-July 09
Member No.: 12,382
Card: None


BDA driver does not support DiSEqC & CI options. I think there is another way to set these options.
I wrote below simple code to view channels with Skystar USB 2 HD CI based on DirectShow BDA.It can build the graph but it works when before running it, one channel with the same carrier frequency has been seen for last time with other softwares like DVBViewer.
Does any one know what is going wrong?


This is my code :

LIF(CoCreateInstance(CLSID_FilterGraph, NULL, LSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **)&pGB));

LIF(pGB->QueryInterface(IID_IMediaControl, (void **)&pMC));

#ifdef REGISTER_FILTERGRAPH
hr = AddGraphToRot(pGB, &g_dwGraphRegister);
if (FAILED(hr))
{
Msg(TEXT("Failed to register filter graph with ROT! hr=0x%x"), hr);
g_dwGraphRegister = 0;
}
#endif

LIF(CoCreateInstance(CLSID_DVBSTuningSpace, NULL, CLSCTX_INPROC_SERVER,
IID_IDVBSTuningSpace, (void **)&p_tuningSpace));

LIF(AddFilterByCLSID(pGB,CLSID_DVBSNetworkProvider,L"Provider",&pNP));

LIF(p_tuningSpace->put_UniqueName(L"DVBS TuningSpace"));
LIF(p_tuningSpace->put_FriendlyName(L"DVBS TuningSpace"));
LIF(p_tuningSpace->put__NetworkType(CLSID_DVBSNetworkProvider));
LIF(p_tuningSpace->put_SystemType(DVB_Satellite));
LIF(p_tuningSpace->put_SpectralInversion(BDA_SPECTRAL_INVERSION_NOT_SET));
LIF(p_tuningSpace->put_LowOscillator(9750000));
LIF(p_tuningSpace->put_HighOscillator(10600000));
LIF(p_tuningSpace->put_LNBSwitch(11700000));
LIF(p_tuningSpace->put_NetworkID(318));
LIF(p_tuningSpace->CreateTuneRequest(&tr));

tr->QueryInterface(&p_tuneRequest);

LIF(p_tuneRequest->put_ONID(318));
LIF(p_tuneRequest->put_TSID(8700));
LIF(p_tuneRequest->put_SID(7905));

LIF(CoCreateInstance(CLSID_DVBSLocator, NULL, CLSCTX_INPROC_SERVER,
IID_IDVBSLocator, (void **)&locator));

LIF(locator->put_CarrierFrequency(12437000));
LIF(locator->put_SymbolRate(27500*1000));
LIF(locator->put_SignalPolarisation(BDA_POLARISATION_LINEAR_H));
LIF(locator->put_InnerFEC(BDA_FEC_VITERBI));
LIF(locator->put_InnerFECRate(BDA_BCC_RATE_3_4));
LIF(locator->put_OuterFEC(BDA_FEC_METHOD_NOT_SET));
LIF(locator->put_OuterFECRate(BDA_BCC_RATE_NOT_SET));
LIF(locator->put_Modulation(BDA_MOD_QPSK));
LIF(locator->put_Azimuth(0));
LIF(locator->put_Elevation(0));
LIF(locator->put_OrbitalPosition(0));

LIF(p_tuneRequest->put_Locator(locator));

pTuner=NULL;
LIF(pNP->QueryInterface(IID_ITuner, (void **)&pTuner));

LIF(pTuner->put_TuningSpace(p_tuningSpace));
LIF(pTuner->put_TuneRequest(p_tuneRequest));

pBDASrc=FindAndConnectFilterInCategory(pGB,pNP,L"Src",KSCATEGORY_BDA_NETWORK_TUNER);

pBDAReciever=FindAndConnectFilterInCategory(pGB,pBDASrc,L"Recieve",KSCATEGORY_BDA_RECEIVER_COMPONENT);

IPin *ppin=NULL;
ppin=GetOutPin(pBDAReciever,0);

LIF(pGB->Render(ppin));

ppin->Release();

pMC->Run();

Go to the top of the page
 
+Quote Post
bear
post Jul 20 2009, 07:41 PM
Post #2


Forum Regular


Group: Members
Posts: 3,099
Joined: 24-April 04
From: Queensland
Member No.: 808
Card: VisionPlus DVB-t


QUOTE
Does any one know what is going wrong?
Do you need to feed power to the LNB? If so you may need to turn the LNB power on via the device's own interface or power the LNB from a plug pack.
Are you using a universal LNB or a custom one? Might help if you were to specify the dish, LNB, DVBS device and satellite specifications so to better understand what is happening. BTW are you using C#, C++ etc.
Go to the top of the page
 
+Quote Post
t3d
post Jul 20 2009, 09:18 PM
Post #3


Be nice to me, I am new.


Group: New Members
Posts: 2
Joined: 20-July 09
Member No.: 12,382
Card: None


QUOTE (bear @ Jul 20 2009, 02:11 PM) *
Do you need to feed power to the LNB? If so you may need to turn the LNB power on via the device's own interface or power the LNB from a plug pack.
Are you using a universal LNB or a custom one? Might help if you were to specify the dish, LNB, DVBS device and satellite specifications so to better understand what is happening. BTW are you using C#, C++ etc.


Thanks for your reply ,Bear.

Yes, it can't set the LNB power on.

I have a 4-port switch with universal LNB and Satellite is Hotbird (13.0E). As I wrote the device is SkyStar USB 2 HD CI. It can be used by DVBViewer. But ProgDVB can not set DiSEqC & LNB power on (like my code).

Also, when my code is working (after DVBViewer) I can't change carrier frequency via ILocator. Is it Necessary to rebuild the graph?


Best Regards
Go to the top of the page
 
+Quote Post
bear
post Jul 21 2009, 10:38 AM
Post #4


Forum Regular


Group: Members
Posts: 3,099
Joined: 24-April 04
From: Queensland
Member No.: 808
Card: VisionPlus DVB-t


QUOTE
Yes, it can't set the LNB power on.
Is this something that you have checked on the cable to the LNB? LNB voltage should be +18/+14Volts for H or V polarisation.
QUOTE
have a 4-port switch with universal LNB and Satellite is Hotbird (13.0E). As I wrote the device is SkyStar USB 2 HD CI. It can be used by DVBViewer. But ProgDVB can not set DiSEqC & LNB power on (like my code).
Sorry, I don't have a SkyStar device to check this on, all I can suggest is that you look at the following links for clues on how to set this up for your device.

http://www.videolan.org/developers/vlc/mod...da/bdagraph.cpp

http://www.sat-universe.com/showthread.php?t=23544

Some cards send the DiSEqC via the piDVBTuningSpace->put_InputRange(inputRange.bstrVal) where others use m_KsTunerPropSet->QuerySupported(KSPROPSETID_BdaTunerExtensionProperties, KSPROPERTY_BDA_DISEQC, &supported) or other interfaces such as Twinhan.
Go to the top of the page
 
+Quote Post
bear
post Jun 5 2011, 06:25 PM
Post #5


Forum Regular


Group: Members
Posts: 3,099
Joined: 24-April 04
From: Queensland
Member No.: 808
Card: VisionPlus DVB-t


my bad!

This post has been edited by bear: Jun 5 2011, 06:26 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th December 2018 - 01:37 PM