TBS: CI/CAM support and other improvements (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Here is an updated version of the patch for MP 1.4 which adds some more cards with ci support:
    TBS 5881 DVB-T/T2 Tuner
    TBS 5881 DVBC Tuner
    TBS 6680 BDA DVBC Tuner A
    TBS 6680 BDA DVBC Tuner B
    TBS 5990 DVBS/S2 Tuner A
    TBS 5990 DVBS/S2 Tuner B
    TBS 5680 DVBC Tuner

    Installation:

    1. Close MediaPortal, stop the TV service and close TV Server configuration.
    2. make a backup of the old files
    3. copy all files from the archive to: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server
    4. Start the TV service again

    @mm1352000 I'm allowed to link this post in your first post? So that the people can find it easier? Don't want to edit your post without asking you...
     

    Attachments

    • tbs.rar
      324.9 KB
    Last edited:

    Elof

    MP Donator
  • Premium Supporter
  • December 18, 2005
    94
    16
    Home Country
    Sweden Sweden
    I can't verify that the new cards work since I have three TBS5880 cards but those work as before, perhaps with even faster channel switching? Thanks for the update!

    I only have one problem with the setup. It seems like it's only the first card that's used after a restart of the TV server can use it's CI-port? All cards can receive free channels but only one, the first one used, can decrypt the coded ones. If I restart the TV-server I can change "working" card by manually start a timeshift so I know that all CAM and SmartWi-cards is working.
     

    momeijer

    Portal Member
    February 16, 2011
    33
    10
    Home Country
    Netherlands Netherlands
    Step by step guide to add CI support for TBS cards to MediaPortal.
    (for people with [at least a little] programming experience)

    Step1: Download and install Microsoft Visual Studio (www.microsoft.com/express -> “Express for Windows Desktop”)
    Step2: Download MediaPortal SourceCode from GitHub. (https://github.com/MediaPortal/MediaPortal-1/tree/Release_1.3.0)
    ->Click on the button “ZIP” to download the source-code and extract it to your harddisk.
    Step3: open the downloaded source code with Visual Studio by opening the file : …\TvEngine\TVLibrary\TvLibrary.sln
    Step4: In solution-explorer open “Library”->”TvLibrary”->”Implementations”->”DVB”->”ConditionalAccess”. (If solution explorer is not already open, it can be opened using menu: “View”->Solution Explorer (or keyboard-shortcut: Ctrl+Alt+L))
    Step5: Do a right-mouse-click on “ConditionalAccess” in the context-menu select “Add”->”New Folder” and name it “Turbosight”.
    Step6: drag&drop the attached file “Turbosight.cs” (inside Visual Studio) on the folder “Turbosight” which you created in Step5.
    Step7: replace “Library”->”TvLibrary”->”Implementations”->”DVB”->”ConditionalAccess”->”ConditionalAccess.cs” with the attached file.
    Step8: drag&drop the attached file “DvbConditionalAccess.cs” to “Library”->”TvLibrary.Interfaces”.
    Step9: replace “Library”->”TvLibrary.Interfaces”->”Implementations”->”Channels”->DVBSChannel.cs with the attached file.
    Step10: Compile the project. (eg. By right-mouse-click on “Library” -> “Build”)
    Step11: Close Visual Studio, stop TVServer-windows-service and copy “../TvEngine3/TvLibrary/TVLibrary/bin/Debug[or Rlease]/TvLibrary.dll and TvLibrary.Interfaces.dll to your MediaPortal TVServer directory. also copy TBSCiApi.dll from the attached file to the TVServer-directory.


    Is it just me or did anyone notice that above solution does not work anymore with the latest origin/master builds?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    it is working, my patch is based on the master from some days ago, but maybe it is due to the fact that the cable card branch was merged...
    Will check it out next weekend :) if I should forget about it, remember me :p
     

    momeijer

    Portal Member
    February 16, 2011
    33
    10
    Home Country
    Netherlands Netherlands
    it is working, my patch is based on the master from some days ago, but maybe it is due to the fact that the cable card branch was merged...
    Will check it out next weekend :) if I should forget about it, remember me :p


    I usually compile latest master with Markus1980Wien's provided source code and instructions. As said, for me this does not work anymore due to compilation errors.

    For your information. It compiles fine without Markus1980Wien's solution. But, when use your patch (tbs.rar) on my MP 1.4 (latest master), TVService will not start anymore. Your patch works fine on generic MP 1.4 version.

    Thanks for your effort(s)!
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    For your information. It compiles fine without Markus1980Wien's solution. But, when use your patch (tbs.rar) on my MP 1.4 (latest master), TVService will not start anymore.
    that doesn't surprise me^^ If you look at this commit:
    https://github.com/MediaPortal/MediaPortal-1/commit/713ee742a777b48783672acda2e94f2a279a395f
    you see the great work from mm to add cable card support, if you now compile a MP version based on latest master and replace some dlls with the ones from my patch you don't have to be surprised :D (what I want to say: MP version with cable card support + replacement of dlls which get also changed by the cable card patch => not good)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I usually compile latest master with Markus1980Wien's provided source code and instructions. As said, for me this does not work anymore due to compilation errors.
    try the conditionalasccess.cs attached here :)

    Edit:
    If you want do it the right way:
    check out the MP1.4 src
    apply the patch
    merger current master :) There is a conflict which you have to resolve by the using
    you have to take all 3 (the one from the old file and the two from the new file)
     

    Attachments

    • ConditionalAccess.rar
      7.2 KB
    Last edited:

    doctor64

    Portal Member
    December 6, 2009
    40
    9
    49
    Home Country
    Ukraine Ukraine
    Hello!
    First, thank you for great work - i finally can drop ugly set-top box setup.

    Video, even on encrypted channels is working like a charm, but i have problems with accessing CI Menu
    text returned by CAM, which must be in ukrainian cyrillic is unreadable.
    something like
    [2013-08-07 02:23:07,669] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: sending message EnterMenu
    [2013-08-07 02:23:07,670] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: sending message GetMmi
    [2013-08-07 02:23:09,670] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: received MMI response Menu to message GetMmi
    [2013-08-07 02:23:09,670] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: response length = 112
    [2013-08-07 02:23:09,672] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: menu
    [2013-08-07 02:23:09,672] [Log ] [Turbosight MMI handler] [DEBUG] - title = ??U?OYO UOYi
    [2013-08-07 02:23:09,680] [Log ] [Turbosight MMI handler] [DEBUG] - sub-title = 
    [2013-08-07 02:23:09,680] [Log ] [Turbosight MMI handler] [DEBUG] - footer = ??aOaYoai ?? - OONa?aO, Exit - OOUaO
    [2013-08-07 02:23:09,680] [Log ] [Turbosight MMI handler] [DEBUG] - # entries = 4
    [2013-08-07 02:23:09,682] [Log ] [Turbosight MMI handler] [DEBUG] - entry 1 = ¦Ya?aU??oi
    [2013-08-07 02:23:09,682] [Log ] [Turbosight MMI handler] [DEBUG] - entry 2 = Aaa?Y?OUOYYi
    [2013-08-07 02:23:09,682] [Log ] [Turbosight MMI handler] [DEBUG] - entry 3 = ·?U?OUOYYi ?? U?OOUa
    [2013-08-07 02:23:09,682] [Log ] [Turbosight MMI handler] [DEBUG] - entry 4 = ??ea?
    [2013-08-07 02:23:09,692] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: resuming polling...
    [2013-08-07 02:24:26,793] [Log ] [20 ] [DEBUG] - SelectCiMenu called
    [2013-08-07 02:24:26,793] [Log ] [20 ] [DEBUG] - Turbosight: select menu entry, choice = 0
    [2013-08-07 02:24:27,702] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: sending message MenuAnswer
    [2013-08-07 02:24:27,702] [Log ] [Turbosight MMI handler] [DEBUG] - Turbosight: resuming polling...
    [2013-08-07 02:24:28,553] [Log ] [20 ] [INFO ] - Controller: StopTimeShifting 2
    Used MP 1.4, with latest patch from FreakJ.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I think I have an idea, will provide a Testbuild to you tomorrow ;)
    What do you need? MP 1.4?
     

    Users who are viewing this thread

    Top Bottom