Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI? (1 Viewer)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Hello everybody,

    in the Forum often people asked to create a CI Menu for the Cinergy C HD + CI, but nobody knew the API.
    My thought was to disassemble some files from the Terratec Home Cinema software and use their dll file.
    So I disassembled the DvrCommonInterface.dll file, but now I'm not sure if this is the correct file and how to implement a CI Menu in MP. I already took a look into the source (e.g. [/] [trunk/] [TvEngine3/] [TVLibrary/] [TVLibrary/] [Implementations/] [DVB/] [ConditionalAccess/] [KNC/]), but I still don't know more.

    I attached the dll and as disassembled c file (there you can see the arguments for the Exports/functions etc.) and these are the Exports:

    TTDvrCommonInterfaceGetCAMNameByDeviceIndex 10001640 1
    TTDvrCommonInterfaceGetNumberOfDevices 10001330 2
    TTDvrCommonInterfaceGetUniqueGUIDByDeviceIndex 100015D0 3
    TTDvrCommonInterfaceGlobalInitialize 100011C0 4
    TTDvrCommonInterfaceGlobalRelease 100012B0 5
    TTDvrCommonInterfaceIsCAMPresentByDeviceIndex 100014D0 6
    TTDvrCommonInterfaceIsDeviceBlockedByDeviceIndex 10001550 7
    TTDvrCommonInterfaceIsDevicePresentByDeviceIndex 10001490 8
    TTDvrCommonInterfaceMMICloseByUniqueID 10001710 9
    TTDvrCommonInterfaceMMIEnqAnswerByUniqueID 10001830 10
    TTDvrCommonInterfaceMMIMenuAnswerByUniqueID 100017A0 11
    TTDvrCommonInterfaceMMIOpenByUniqueID 10001680 12
    TTDvrCommonInterfaceSendPMTByDeviceIndex 100013C0 13
    TTDvrCommonInterfaceSendTSBufferByDeviceIndex 10001400 14
    TTDvrCommonInterfaceSetDeviceBlockedByDeviceIndex 10001510 15
    TTDvrCommonInterfaceSetMMICallbackByDeviceIndex 10001380 16
    TTDvrCommonInterfaceSetPidFilterEnabledByDeviceIndex 10001590 17
    TTDvrCommonInterfaceSetTSDataCallbackByDeviceIndex 10001450 18
    DllEntryPoint 10010FCB

    Hopefully someone knows more about CI Menus than me and these infos will help to create a CI Menu for the Cinergy C HD + CI =)

    Concerning the attachment: I hope it is allowed to attach these files, but everyone can download the software (and so the dll file as well) from the terratec homepage =)

    P.S: I also can provide the IDB file from IDA ;)

    [EDIT]
    Or have someone a good site to learn something about the general design of CI Menus?

    I found this one: http://www.dvb.org/technology/standards/R206-001.V1.pdf
    On Page 23 they talk about the Man-Machine Interface (MMI), the CI Menu :) And in the Exports above we can see the short cut MMI, so I guess I'm on the right way with this dll file :)
     

    Attachments

    • DvrCommonInterface.rar
      88.8 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    first you should provide a tv.log for this card. I'm not sure if the card (or CAM support) is already working or not.

    with this dll a CI menu probably can be built.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    I'm glad to hear this very good news :) I would do it by my self, but I just don't know much about the TV-Server architecture or CI Menus in general ;)

    I'm currently on vacations and will be back next week on Monday, so I will provide the log file as soon as possible when I'm home again or maybe some one else can provide a log file sooner.
    The cam is working (I can descramble encrypted channels) but as far as I know the CI Menu isn't working, I had to plug the cam into my Tv to configure the cam (MP 1.1.0 Final).

    But as you told me, you need the log file and I will provide it as soon as I can, so please stay tuned that we can fix this little issue, would be really nice =)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    As promised the logfile. The CI Menu is currently not working ;)

    Hopefully we can get it work :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    ok, that makes it a bit clearer to me:

    the Terratec Cinergy C HD + CI is also a Twinhan compatible card and it should be supported in the same way:

    Code:
    2010-10-25 22:05:26.928722 [(18)]: CiMenuSupported card Cinergy C PCI Digital Tuner supported: True
    2010-10-25 22:05:26.932723 [(18)]: TvController: EnableCiMenuHandler called
    2010-10-25 22:05:26.933723 [(18)]: Twinhan: registering ci callbacks
    2010-10-25 22:05:26.934723 [(18)]: TvController: SetCiMenuHandler: result True
    2010-10-25 22:05:26.938723 [(18)]: EnterCiMenu called
    2010-10-25 22:05:26.938723 [(18)]: TwinHan: enter CI menu failed 0x8007001F

    the main problem probably is, that it uses different / extended interfaces or other command structures than we currently send.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    good to hear or not^^
    Do you think we can fix this issue? Do you need more information or can I provide other help?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    Before I look into the other code, I want to try a small test:

    please try the attached tvlibraries. make a backup of old one, than try the x28, than x40 a.s.o.

    and post your complete tv.log files for each try!
     

    Attachments

    • TVLibrary_0x28.zip
      154.1 KB
    • TVLibrary_0x40.zip
      154.1 KB
    • TVLibrary_0xF0.zip
      154.1 KB
    • TVLibrary_0x1000.zip
      154.1 KB

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    I hope I did everything you told me: Service Stop -> TvLibrary replace / delete old log -> start Service -> Tv Server Config -> Tv Servers (+) -> Media-PC -> OK button (for each file)

    If you compare the x28 and the original Tv Lib sreenshot you can see that in your libs the sub tree of "Media-PC" is missing.
    So I couldn't click on the "Open Menu" button ;)

    If I did something wrong, just tell me than I will try it again ;)
     

    Attachments

    • xF0.rar
      2 KB
    • x40.rar
      2 KB
    • x28.rar
      29.9 KB
    • original MP v1.1.1.rar
      22.7 KB
    • x1000.rar
      2 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    ah, sorry. my TvLibrary version was to new for you.

    You are using 1.1.0 or 1.1.1 ?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    haha okay :)
    I'm using MP 1.1.1 (the release version, no SVN version)
     

    Users who are viewing this thread

    Top Bottom