[WiP] - TV Server hardware-specific code refactoring | Page 7

Discussion in 'Submit: code patches (MediaPortal/TV-Server/etc.)' started by mm1352000, October 2, 2010.

  1. romadd64
    • Premium Supporter

    romadd64 MP Donator

    Joined:
    October 24, 2007
    Messages:
    82
    Likes Received:
    15
    Ratings:
    +15 / 0
    Home Country:
    Italy Italy
    Gibman,

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




    romadd
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    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 (Text):
    1.  
    2.     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
    3.     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
    4.     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
    5.     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
    6.     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
    7.     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
    8.     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
    9.     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
    10.     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
    11.     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
    12.     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
    13.  
    blackgold dvb-s tuner1 (same for tuner2) results on LNB#2 sirius
    Code (Text):
    1.  
    2.     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
    3.     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
    4.     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
    5.     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
    6.     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
    7.     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
    8.     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
    9.     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
    10.     2010-12-11 11:19:29.607205 [(17)]: Scan Got 8 from 8 channels
    11.  
    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
     
  4. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    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 (Text):
    1.  
    2.  public override void OnRunGraph(ScanParameters parameters, DVBBaseChannel channel)
    3.     {
    4.       if (channel is DVBSChannel)
    5.       {
    6.         for (int i = 0; i < 10; i++)
    7.         {
    8.           base.SendDiSEqCSwitchCommand(parameters, channel as DVBSChannel);
    9.         }
    10.       }
    11.     }
    12.  
    gibman
     
  5. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    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 (Text):
    1.  
    2.    DiSEqC   Voltage   22kHz
    3. 1.   A       13V       Off
    4. 2.   A       18V       Off
    5. 3.   A       13V       On
    6. 4.   A       18V       On
    7. 5.   B       13V       Off
    8. 6.   B       18V       Off
    9. 7.   B       13V       On
    10. 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.
     
  6. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    This is why I said try repeating the command ;)
    Some switches require this :rolleyes:

     
  7. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    Home Country:
    Denmark Denmark
    bought some new diseqc's.

    sadly the patch is not applyable on current svn.

    could u fix it ?

    /gibman
     
  8. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    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...
     
  9. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    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
     
  10. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    Excellent news!!! :D

    Are you having to do repeats still?
    I guess you're using the test section: what is the fail rate like?
     
  11. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    Home Country:
    Denmark Denmark
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!