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

zoolo

Portal Member
December 3, 2013
10
8
54
Home Country
Sweden Sweden
You can try with this TVLibrary.dll just to see what name it reports.
It will log the name when it tries to see if its a TBS tuner like below:

[2013-12-17 14:00:13,012] [Log ] [TVService] [INFO ] - Check for TBS
[2013-12-17 14:00:13,018] [Log ] [TVService] [INFO ] - Turbosight: Checking if [PCTV 80e/290e/460e BDA 2875 TVTuner] is TBStuner
[2013-12-17 14:00:13,019] [Log ] [TVService] [DEBUG] - Turbosight: tuner filter name does not match
[2013-12-17 14:00:13,020] [Log ] [TVService] [INFO ] - Check for KNC
 

Attachments

  • TVLibrary.zip
    207.7 KB

SLAiNTRAX

Portal Member
December 17, 2012
14
2
31
Home Country
Norway Norway
[2013-12-17 14:07:37,677] [Log ] [DVB EPG timer] [INFO ] - Check for TBS
[2013-12-17 14:07:37,686] [Log ] [DVB EPG timer] [INFO ] - Turbosight: Checking if [TBS 5680 DVBC Tuner] is TBStuner
[2013-12-17 14:08:42,528] [Log ] [11 ] [DEBUG] - CiMenuSupported called cardid 3
[2013-12-17 14:08:42,531] [Log ] [11 ] [DEBUG] - CiMenuSupported card TBS 5680 DVBC Tuner supported: False
 

SLAiNTRAX

Portal Member
December 17, 2012
14
2
31
Home Country
Norway Norway
Could you help me trick the code to get the CI working? I'll try something myself when I get home later today.
 

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    The list is only used to say whether the tuner has a CI slot or not. SLAiNTRAX's tuner is not even detected as a TBS tuner so it doesn't get to that point.
    Thanks mm for clarification. I hadn't a look on the log because I was on my mobile and from the conversation here I got it wrong ;)


    Last time I checked, the code looked like it had been reverse compiled and shoved into one class to make it so that the TvLibrary.Interfaces.dll is not required. Maybe I am wrong... but I do know it will make no difference for this problem.
    I don't know if it is reverse compiled, but I know that a list with supported tuners is needed and every time a new tuner appears we have to update the list :/
    And yes, TBS maintains its own list^^
    it looks like this (just a snipped, there are some more :D ):

    //added 2012 11 29 liuy 19 cards
    {L"TBS 6680 BDA DVBC Tuner A", DRIVER_NXP}, //CI
    {L"TBS 6680 BDA DVBC Tuner B", DRIVER_NXP}, //CI


    {L"TBS 5990 DVBS/S2 Tuner A", DRIVER_NXP}, //CI
    {L"TBS 5990 DVBS/S2 Tuner B", DRIVER_NXP}, //CI


    {L"TBS 6985 DVBS/S2 Tuner A", DRIVER_NXP},
    {L"TBS 6985 DVBS/S2 Tuner B", DRIVER_NXP},
    {L"TBS 6985 DVBS/S2 Tuner C", DRIVER_NXP},
    {L"TBS 6985 DVBS/S2 Tuner D", DRIVER_NXP},

    {L"TBS 6221 DVBT/T2 Tuner", DRIVER_NXP},
    {L"TBS 6281 DVBT/T2 Tuner A", DRIVER_NXP},
    {L"TBS 6281 DVBT/T2 Tuner B", DRIVER_NXP},

    {L"TBS 6285 DVBT/T2 Tuner A", DRIVER_NXP},
    {L"TBS 6285 DVBT/T2 Tuner B", DRIVER_NXP},
    {L"TBS 6285 DVBT/T2 Tuner C", DRIVER_NXP},
    {L"TBS 6285 DVBT/T2 Tuner D", DRIVER_NXP},

    {L"TBS 5220 DVB-T/T2 BDA Tuner", DRIVER_USB}, //DVBT Dongle
    {L"TBS 5220 DVBC Tuner", DRIVER_USB},

    {L"TBS 5881 DVB-T/T2 Tuner", DRIVER_USB}, //CI
    {L"TBS 5881 DVBC Tuner", DRIVER_USB}, //CI

    Anyway, thanks for your clarification ;)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Here is the latest version with tvlibrary.interfaces.dll
    it is needed, because there were code changes in DVBSChannel.cs and the file DvbCinditionalAccess.cs was added or modified ;)
     

    Attachments

    • tbs.rar
      364.2 KB

    SLAiNTRAX

    Portal Member
    December 17, 2012
    14
    2
    31
    Home Country
    Norway Norway
    I got it working 10min ago. Changed one line to skip the check. CI works and is recognized as a usb tuner.

    Code:
    from:
    if ((this._propertySet != null) && (this._propertySet.QuerySupported(UsbBdaExtensionPropertySet, 0x12, out support) == 0))
    
    to:
    if ((this._propertySet != null) && (this._tunerFilterName.StartsWith("TBS")))
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I got it working 10min ago. Changed one line to skip the check. CI works and is recognized as a usb tuner.
    Great. :)

    Could you please try something for me. Please change this:

    Code:
    if ((this._propertySet != null) && (this._propertySet.QuerySupported(UsbBdaExtensionPropertySet, 0x12, out support) == 0))

    ...to...
    Code:
    if ((this._propertySet != null) && (this._propertySet.QuerySupported(UsbBdaExtensionPropertySet, 1, out support) == 0))

    ...and see if it still works. Note the 0x12 changes to 1.
     

    mm1352000

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

    Users who are viewing this thread

    Top Bottom