Hi
I'm trying to change the LNb setting sent to tune a sat channel.
I use a 22khz switch to change between to satellite.
The switch use the lnbSwitchFreq setting to operate.
The log files show that the lnbSwitch setting is changed, but the tuner doesn't work.
The tuner work fine if a change the LnbSwitchFrequency in "settings" table in MSSQL!!!
here what I changed in TvCardDVBS.cs:
and in Twinhan.cs
Could anyone help me?
I've search a lot in the code and I can't see where the tuner realy get's it Lnb switch frequency setting!
Thanks
Math.
I'm trying to change the LNb setting sent to tune a sat channel.
I use a 22khz switch to change between to satellite.
The switch use the lnbSwitchFreq setting to operate.
The log files show that the lnbSwitch setting is changed, but the tuner doesn't work.
The tuner work fine if a change the LnbSwitchFrequency in "settings" table in MSSQL!!!
here what I changed in TvCardDVBS.cs:
Code:
public ITvSubChannel Tune(int subChannelId, IChannel channel)
...
int lowOsc = 9750;
int hiOsc = 10600;
int lnbSwitch = 11700;
BandTypeConverter.GetDefaultLnbSetup(Parameters, dvbsChannel.BandType, out lowOsc, out hiOsc, out lnbSwitch);
[COLOR="Red"] if(dvbsChannel.SatelliteIndex == 114){//sat 91
lnbSwitch = 12700;
}else{//sat 82
lnbSwitch = 12200;
}[/COLOR]
Log.Log.Info("LNB low:{0} hi:{1} switch:{2} sat:{3}", lowOsc, hiOsc, lnbSwitch, dvbsChannel.SatelliteIndex);
and in Twinhan.cs
Code:
public void SendDiseqCommand(ScanParameters parameters, DVBSChannel channel)
...
BandTypeConverter.GetDefaultLnbSetup(parameters, channel.BandType, out LNBLOFLowBand, out LNBLOFHighBand, out LNBLOFHiLoSW);
if (LNBLOFHiLoSW == 0) LNBLOFHiLoSW = 18000; // dont use lo/hi switch...
[COLOR="Red"] if (channel.SatelliteIndex == 114)
{//91
LNBLOFHiLoSW = 12700;
}
else
{
LNBLOFHiLoSW = 12200;
}[/COLOR]
Could anyone help me?
I've search a lot in the code and I can't see where the tuner realy get's it Lnb switch frequency setting!
Thanks
Math.