[WiP] TV Server hardware-specific code refactoring (1 Viewer)

romadd64

MP Donator
  • Premium Supporter
  • October 24, 2007
    82
    15
    Home Country
    Italy Italy
    Gibman,

    did you try if a Set Top Box can handle your diseqc switch ?


    romadd
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    dont have a stb :)

    I succeeded in getting both diseqc's working.. although switching is very flakey.

    I've done some very intensive tests using this simple approach.

    under "scanning"

    use adv. tuning options: check

    freq:11804000
    symbol rate:27500

    I change LNB between (only 1 active at a time) :

    #1 : lbl1BB 0.8w thor
    #2 : lbl1BA 4.8e sirius 4

    my skystar2 has rock solid diseqc swithcing. always had.

    skystar2 results on LNB#2 sirius
    Code:
    	2010-12-11 11:14:56.444581 [(17)]: Found:DVBS:tv: XSI_Data Freq:11804000 ONID:86 TSID:8 SID:906 PMT:0x56 FTA:True LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.445581 [(17)]: Found:DVBS:tv: CORE SI Freq:11804000 ONID:86 TSID:8 SID:938 PMT:0x3AA FTA:True LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.446581 [(17)]: Found:DVBS:tv: TV400 Freq:11804000 ONID:86 TSID:8 SID:6000 PMT:0x1770 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.447581 [(17)]: Found:DVBS:tv:Viasat TV 2 Filmkanalen Freq:11804000 ONID:86 TSID:8 SID:6010 PMT:0x177A FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.448581 [(17)]: Found:DVBS:tv: Ticket Freq:11804000 ONID:86 TSID:8 SID:6020 PMT:0x1784 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.448581 [(17)]: Found:DVBS:tv: Viasat Nature East Freq:11804000 ONID:86 TSID:8 SID:6030 PMT:0x178E FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.449581 [(17)]: Found:DVBS:tv: MTV NO Freq:11804000 ONID:86 TSID:8 SID:6040 PMT:0x1798 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.450581 [(17)]: Found:DVBS:tv: Viasat History Freq:11804000 ONID:86 TSID:8 SID:6050 PMT:0x17A2 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.451581 [(17)]: Found:DVBS:tv: Viasat Sport Baltic Freq:11804000 ONID:86 TSID:8 SID:6060 PMT:0x17AC FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.452581 [(17)]: Found:DVBS:tv: TV4 Plus Freq:11804000 ONID:86 TSID:8 SID:6080 PMT:0x17C0 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:14:56.452581 [(17)]: Found:DVBS:tv: TV4 Film Freq:11804000 ONID:86 TSID:8 SID:6090 PMT:0x17CA FTA:False LCN:10000 SymbolRate:27500 Modulation:ModQpsk Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet

    blackgold dvb-s tuner1 (same for tuner2) results on LNB#2 sirius
    Code:
    	2010-12-11 11:19:29.564202 [(17)]: Found: DVBS:tv:Telenor ESPN America HD (1) Freq:11804000 ONID:70 TSID:38 SID:2935 PMT:0x102 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.570203 [(17)]: Found: DVBS:tv:Telenor ESPN America HD Freq:11804000 ONID:70 TSID:38 SID:2936 PMT:0x103 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.576203 [(17)]: Found: DVBS:tv:Telenor Rush HD (1) Freq:11804000 ONID:70 TSID:38 SID:3805 PMT:0x104 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.582203 [(17)]: Found: DVBS:tv:Telenor Nat Geo HD (1) Freq:11804000 ONID:70 TSID:38 SID:3806 PMT:0x100 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.588204 [(17)]: Found: DVBS:tv:Telenor Nat Geo HD Freq:11804000 ONID:70 TSID:38 SID:3807 PMT:0x10E FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.594204 [(17)]: Found: DVBS:tv:Telenor Rush HD Freq:11804000 ONID:70 TSID:38 SID:3808 PMT:0x10F FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.600204 [(17)]: Found: DVBS:tv:Telenor Silver HD (1) Freq:11804000 ONID:70 TSID:38 SID:4201 PMT:0x101 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.607205 [(17)]: Found: DVBS:tv:Telenor Silver HD Freq:11804000 ONID:70 TSID:38 SID:4205 PMT:0x110 FTA:False LCN:10000 SymbolRate:27500 Modulation:ModNotDefined Polarisation:LinearH InnerFecRate:RateNotSet DisEqc:Level1BA band:Universal Pilot:NotSet RollOff:NotSet
    	2010-12-11 11:19:29.607205 [(17)]: Scan Got 8 from 8 channels

    the channels found on the BG1 tuner are channels that are found on LNB1 thor.

    If I do a lot of scannings on this TS. It will eventually change LNB.

    I tried sending diseqc onbeforetune. no luck.
    also multiple diseqc sends will not help.

    So the problem all along has been changing the actual diseqc.

    each diseqc send request does, as expected, end up calling:
    genericbdas.cs --> protected bool SendDiSEqCCommand(ulong ulRange)

    all seems ok, code-wise. it just doesnt change lnb.

    again, my skystar2 is more than happy with diseqc.

    /gibman
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    seems like this did the trick:

    a bit exaggerated sending the diseqc 10 times.
    I'll try and find the sweet spot here. maybe 2 times is enuff.

    too bad a device has no way of knowing wether or not a diseqc switch has in fact done the switch.

    Code:
     public override void OnRunGraph(ScanParameters parameters, DVBBaseChannel channel)
        {
          if (channel is DVBSChannel)
          {
            for (int i = 0; i < 10; i++)
            {
              base.SendDiSEqCSwitchCommand(parameters, channel as DVBSChannel);
            }
          }
        }

    gibman
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi again gibman

    Your switch is a 4 port switch isn't it. What is connected to the other 2 ports?

    1 (AA): ???
    2 (AB): ???
    3 (BA): 4.8e Sirius 4
    4 (BB): 0.8w Thor

    How are you connecting your tuners - via a splitter, or changing cable from one tuner to another? If via splitter, does the splitter pass power on all ports?
    The default port that a tuner will pick up if DiSEqC is not working is port 1 (AA). I find it difficult to understand how the BGT3595 is picking up Thor (BB) if DiSEqC is not working. Are you using your Skystar to force the switch to port 4 then testing if the BGT3595 can force the switch to port 3? If so, you have to make sure that the Skystar isn't holding the switch on port 4 and that the splitter is passing the BGT3595 commands...

    Personally I use an EMP Centauri Profi Line 9x8 multiswitch. The 8 satellite inputs (the other 1 is for an aerial) are grouped like this:
    Code:
       DiSEqC   Voltage   22kHz
    1.   A       13V       Off
    2.   A       18V       Off
    3.   A       13V       On
    4.   A       18V       On
    5.   B       13V       Off
    6.   B       18V       Off
    7.   B       13V       On
    8.   B       18V       On

    DiSEqC A = Simple A or AA
    DiSEqC B = Simple B (or AB I think)

    I only use input 2 and input 5 at the moment (not enough cables to the roof ;)), but I have no problems switching between the inputs on any of the tuners/STBs connected to the multiswitch. That would be 2 tuners (both DVB-S tuners on one of my 2 Pinnacle 7010ix's) plus 1 STB.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    This is why I said try repeating the command ;)
    Some switches require this :rolleyes:

    seems like this did the trick:

    a bit exaggerated sending the diseqc 10 times.
    I'll try and find the sweet spot here. maybe 2 times is enuff.

    too bad a device has no way of knowing wether or not a diseqc switch has in fact done the switch.

    Code:
     public override void OnRunGraph(ScanParameters parameters, DVBBaseChannel channel)
        {
          if (channel is DVBSChannel)
          {
            for (int i = 0; i < 10; i++)
            {
              base.SendDiSEqCSwitchCommand(parameters, channel as DVBSChannel);
            }
          }
        }

    gibman
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    bought some new diseqc's.

    sadly the patch is not applyable on current svn.

    could u fix it ?

    /gibman
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi gibman

    Yup, it is starting to get tricky to keep it up to date with SVN head. I'll do that this evening when I get home...
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Those new diseq's seem to fare a lot better than the older ones.

    only preliminary testing.. but so far very good results.

    running older vers. of ur patch against svn head 26981-

    /gibman
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Those new diseq's seem to fare a lot better than the older ones.

    only preliminary testing.. but so far very good results.

    running older vers. of ur patch against svn head 26981-

    /gibman
    Excellent news!!! :D

    Are you having to do repeats still?
    I guess you're using the test section: what is the fail rate like?
     

    Users who are viewing this thread

    Top Bottom