Modifying LNB setting sent to DVB-s Card (1 Viewer)

M4TH

Portal Member
January 19, 2007
44
0
49
Montréal, Qc
Home Country
Canada Canada
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:
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.
 

M4TH

Portal Member
January 19, 2007
44
0
49
Montréal, Qc
Home Country
Canada Canada
Maybe writing a plugin for TVserver with the TvServerEventType.StartZapChannel event changing the database entry would work better and be simpler the maintain!
 

Rhys.Goodwin

Portal Pro
November 20, 2006
336
1
Home Country
New Zealand New Zealand
Maybe writing a plugin for TVserver with the TvServerEventType.StartZapChannel event changing the database entry would work better and be simpler the maintain!

Plugin?- ! This core functionality material isn't it?
 

Users who are viewing this thread

Top Bottom