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-05-15, 00:37   #1 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Montréal, Qc
Age: 33
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Question Modifying LNB setting sent to DVB-s Card

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);

      if(dvbsChannel.SatelliteIndex == 114){//sat 91
        lnbSwitch = 12700;
      }else{//sat 82
        lnbSwitch = 12200;
      }

      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...

      if (channel.SatelliteIndex == 114)
      {//91
        LNBLOFHiLoSW = 12700;
      }
      else
      {
        LNBLOFHiLoSW = 12200;
      } 
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 is offline   Reply With Quote
Old 2007-05-17, 00:08   #2 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Montréal, Qc
Age: 33
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Maybe writing a plugin for TVserver with the TvServerEventType.StartZapChannel event changing the database entry would work better and be simpler the maintain!
M4TH is offline   Reply With Quote
Old 2007-05-17, 06:29   #3 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 335
Thanks: 1
Thanked 1 Time in 1 Post

Country:

My System

Default

Quote:
Originally Posted by M4TH View Post
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?
Rhys.Goodwin is offline   Reply With Quote
Reply

Bookmarks

Tags
card, dvbs, lnb, modifying, setting

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
LNB/Diseqc setting per Satellites M4TH Improvement Suggestions 6 2007-07-12 07:05
Monoblock LNB - BDA DVB-S DiSEqC problems tijera The old Bugreport Forum 25 2007-06-15 09:34
MyTV use wrong LNB switch(Mhz) setting M4TH 0.2.2.0 Final and SVN Builds 0 2007-01-25 06:39
Technotrend DVB-S no LNB switch Erbsenkopp General Support 19 2006-08-17 11:11
Technotrend DVB-S no LNB switch Erbsenkopp General Support 0 2006-08-03 10:04


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


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