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

romadd64

MP Donator
  • Premium Supporter
  • October 24, 2007
    82
    15
    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
    Denmark Denmark
    Country flag
    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
    Denmark Denmark
    Country flag
    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

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    • Thread starter
    • Moderator
    • #64
    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

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    • Thread starter
    • Moderator
    • #65
    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
    Denmark Denmark
    Country flag
    bought some new diseqc's.

    sadly the patch is not applyable on current svn.

    could u fix it ?

    /gibman
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    • Thread starter
    • Moderator
    • #67
    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
    Denmark Denmark
    Country flag
    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

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    • Thread starter
    • Moderator
    • #69
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    MrGrymReaper Hardware Accelerated Encoding of TV Server Watch / Listen Media 5
    J Clock speed vs multi-core CPU's Can MediaPortal benefit from multi core cpu's? General 0
    E [solved] TV-Server Configuration Missing TV-Server 9
    F MediaPortal 1.16 server crashing due to user error? General Support 5
    E TV-SERVER control TV-Server 3
    CanadianEh MP TV server rebuild with Colossus 2 - Kodi clients receive PMT error when playing videos recoreded by Colossus 2 TV-Server 1
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 7
    M TV Server Preview Window is blank, sounds works Television (MyTV frontend and TV-Server) 3
    catalpa ...immer mal wird der Server abgekoppelt :( Allgemeines Support- und Diskussionsforum 0
    A Keine Verbindung mit Kodi auf Server Allgemeines Support- und Diskussionsforum 11
    CyberSimian Unhandled exception in TV Server TV-Server 0
    Grisu002 Failed to startup - TV Server funktioniert nicht Allgemeines Support- und Diskussionsforum 0
    ajs [WiP] 5030: Add UHD Thumb size to TV Server MediaPortal 1 0
    toricred [solved] Configuring TV Server to use NAS General 5
    T Client / Server slow channel-to-channel change (zapping) General Support 1
    T Server / client channel logo location Installation, configuration support 6
    framug [solved] Some changes/fix in MP1 configuration client and server Submit: code patches (MediaPortal/TV-Server/etc.) 14
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    M TV Server can't tune to some DVB-S multiplexes while other software can General 0
    J TV Server setup question Newcomers Forum 0
    D [solved] Changed username in Win10, now TV Server config crashes on fresh install Installation, configuration support 1
    I [solved] Connection to TV Server MySQL General Support 8
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    F After resume, TV Server connection screen is shown General Support 4
    R TV server crash with WintTV quadHD General 0
    Similar threads

























    Top Bottom