KNC ONE TV-Station CI/CAM not recognized (1 Viewer)

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    in my version these headers are already included... and also in actual sourceforge SVN
     

    dimka

    Portal Pro
    January 20, 2009
    117
    4
    Hillerod
    Home Country
    Denmark Denmark
    Hej guys,

    I have KNC1 with CI module at home. And it doesn't unscramble the crypted channels. So far I can do some testing as well - just let me know what to do.

    br,
    dmitry
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Hi,

    I'm still working on the api handling. I also found another initialization issue with multiple KNC1 cards.
    The CI handling I can test in about 1-2 weeks from now.

    News on this I'll post here...

    Morpheus_xx
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Some news here:

    I now have a KNC1 DVB-C card.

    Things that are fixed now:
    - KNC1 card detection (should be in current svn build)
    - CAM handling improved (if CI slot is present, CAM is or is not present) (not in svn yet)

    Currently I investigate in the CI handling as other programs work with the same library. One thing I already found out is that the "KNCBDA_CI_SendPMTCommand" function is called in the apps with different sized parameters:

    While MP sends for the same channel 118 bytes, GlobeTV only send 78 bytes. DvbViewer even does sent less information to the function, but works also.

    So I think there could be other data / structure to be sent with this function call...

    Maybe anyone else has some idea ...
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    morpheus_xx
    with current SVN and the debug tswriter which includes the KNC changes i even cannot change channel or anything else (i've a CI slot but not card inserted.) whenever i try to change a channel i get a wait for PMT... and then an exception (sorry logs already deleted and changed back so tswriter before KNC changes).
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    morpheus_xx
    i'm sorry but i do not have any CAM - so i cannot test it. I didn't know that you were already aware of the problem :) But perhaps sometimes i'll have a cam and so i hope you are able to resolve the issues :)

    Thank for your work.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    This Test5 should fix exactly this case: KNC1 card detected, CI slot available BUT no CAM inserted.

    Behaviour before (current svn build): SetupTv returns "cannot start graph", because all SendPMT retries are over, even with FTA channels
    Behaviour after fix (Test5): Handler returns ok when PMT is sent but no CAM present; FTA will tune, for scrambled you get a correct "Channel is scrambled" erro
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I added the sources and binaries for my latests modifications.

    Attention: the tswriter interface has changed, you need a "regsvr32 tswriter.ax" !

    1) This patch fixes detection and accessing multiple KNC1 cards. They are now enumerated correctly (?) by DevicePath. Checked on a system with 2 cards:

    Card 0: DVB-S with CI attached
    Code:
    25-01-2009 08:53:29.203 KNC: card 0 detected: KNC BDA DVB-S
    25-01-2009 08:53:29.203 KNC: card 0 HW Enabled
    25-01-2009 08:53:29.203 KNC: card 0 CI slot enabled successfully
    25-01-2009 08:53:29.203 KNC: card 0 CI HW enabled successfully
    25-01-2009 08:53:29.203 KNC: card 0 CAM Type: AlphaCrypt
    25-01-2009 08:53:29.250 KNC: card 0 SetDiseqc:e01038f3 length:4 repeat:1
    25-01-2009 08:53:29.437 KNC: card 0 HW DiSEqCWrite: result:1
    25-01-2009 08:53:30.390 KNC: card 0 CI IsReady 1

    Card 1: DVB-S2 withouth CI
    Code:
    25-01-2009 08:53:41.421 KNC: card 1 detected: KNC BDA DVB-S2
    25-01-2009 08:53:41.421 KNC: card 1 HW Enabled
    25-01-2009 08:53:41.421 KNC: card 1 CI slot enabled successfully
    25-01-2009 08:53:41.421 KNC: card 1 CI HW enabled successfully
    25-01-2009 08:53:41.421 KNC: card 1 detected without CAM
    25-01-2009 08:53:41.421 KNC: card 1 SetDiseqc:e01038f2 length:4 repeat:1
    25-01-2009 08:53:41.671 KNC: card 1 HW DiSEqCWrite: result:1

    2) CAM Handling improved. If slot is present but no CAM inserted, there was an error. Even with FTA channels, for the SendPMT all retries failed and "cannot build graph" error occured.
    Adding / Removing CAM is detected dynamically. Status written to tswriter.log:
    Code:
    25-01-2009 18:21:00.279 KNC: card 0 detected: KNC BDA DVB-C
    25-01-2009 18:21:00.279 KNC: card 0 HW Enabled
    25-01-2009 18:21:00.280 KNC: card 0 CI slot enabled successfully
    25-01-2009 18:21:00.280 KNC: card 0 CI HW enabled successfully
    25-01-2009 18:21:00.280 KNC: card 0 CAM Type: TSD Crypt CW
    25-01-2009 18:21:00.656 KNC: card 0 CI IsReady 1
    now remove CAM:
    Code:
    25-01-2009 18:21:19.542 KNC: card 0 CI State: : Releasing
    25-01-2009 18:21:19.543 KNC: card 0 CI IsReady 0
    ...and re-insert it:
    Code:
    25-01-2009 18:21:22.544 KNC: card 0 CI State: : Initializing
    25-01-2009 18:21:22.544 KNC: card 0 CI IsReady 0
    25-01-2009 18:21:36.226 KNC: card 0 CI State: TSD Crypt CW: Ready
    25-01-2009 18:21:36.226 KNC: card 0 CI IsReady 1
     

    Toddi

    MP Donator
  • Premium Supporter
  • December 29, 2008
    54
    18
    Kiel
    Home Country
    Germany Germany
    CAM-Detection seems to work fine now. Removing and adding of CAM is logged correctly on my system.:)
     

    Users who are viewing this thread

    Top Bottom