- August 5, 2011
- 9
- 6
- Home Country
- China
Hi,
For TBS5980 USB DVB-S2 CI Box, the USB devices initiation method must be used.
On OnInit() function you may find the following method that is used to get m_pKsCtrl variable .
//Get the interface
//USB Devive init ALL use it 5980 QBOXS QBOXS2 5922 QBOX3
if((DeviceType==3)||(DeviceType==4)||like 5921 QBOXS2 and son)
{
m_pKsCtrl = NULL;
if(!ll_init && m_pTunerDevice != NULL)
{
hr = m_pTunerDevice->QueryInterface(__uuidof( m_pKsCtrl ),
reinterpret_cast< void** >( &m_pKsCtrl ) );
if (FAILED(hr))
{
ll_init = 1;
MessageBox("m_pTunerDevice QueryInterface Failed","error",MB_OK);
m_pKsCtrl = NULL;
return FALSE;
}
}
}
If by mistake you used the PCI/PCIe devices initiation method, you just can't get DiSEqC work with "QBOX" method.
//PCI or PCI-E initDeviceType = 6921,8921,6920,8920,
if((DeviceType==1)||(DeviceType==2)||(DeviceType==5))
{
m_pKsCtrl = NULL;
m_pTunerPin=NULL;
m_pTunerPin = FindPinOnFilter(m_pTunerDevice, "Input0");
if(!ll_init && m_pTunerPin != NULL)
{
hr = m_pTunerPin->QueryInterface(IID_IKsPropertySet,
reinterpret_cast<void**>(&m_pKsCtrl));
if (FAILED(hr))
{
ll_init = 1;
MessageBox("m_pTunerDevice QueryInterface Failed","error",MB_OK);
m_pKsCtrl = NULL;
return FALSE;
}
}
}
Thanks!
For TBS5980 USB DVB-S2 CI Box, the USB devices initiation method must be used.
On OnInit() function you may find the following method that is used to get m_pKsCtrl variable .
//Get the interface
//USB Devive init ALL use it 5980 QBOXS QBOXS2 5922 QBOX3
if((DeviceType==3)||(DeviceType==4)||like 5921 QBOXS2 and son)
{
m_pKsCtrl = NULL;
if(!ll_init && m_pTunerDevice != NULL)
{
hr = m_pTunerDevice->QueryInterface(__uuidof( m_pKsCtrl ),
reinterpret_cast< void** >( &m_pKsCtrl ) );
if (FAILED(hr))
{
ll_init = 1;
MessageBox("m_pTunerDevice QueryInterface Failed","error",MB_OK);
m_pKsCtrl = NULL;
return FALSE;
}
}
}
If by mistake you used the PCI/PCIe devices initiation method, you just can't get DiSEqC work with "QBOX" method.
//PCI or PCI-E initDeviceType = 6921,8921,6920,8920,
if((DeviceType==1)||(DeviceType==2)||(DeviceType==5))
{
m_pKsCtrl = NULL;
m_pTunerPin=NULL;
m_pTunerPin = FindPinOnFilter(m_pTunerDevice, "Input0");
if(!ll_init && m_pTunerPin != NULL)
{
hr = m_pTunerPin->QueryInterface(IID_IKsPropertySet,
reinterpret_cast<void**>(&m_pKsCtrl));
if (FAILED(hr))
{
ll_init = 1;
MessageBox("m_pTunerDevice QueryInterface Failed","error",MB_OK);
m_pKsCtrl = NULL;
return FALSE;
}
}
}
Thanks!