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
    AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    Maybe this is also interesting for you ;)
    I will see if I find some more useful stuff :p

    THC_CommonInterfaceActivateMMI 10005090 30
    THC_CommonInterfaceCloseMMI 10005120 31
    THC_CommonInterfaceSendMMIEnqAnswer 10005160 32
    THC_CommonInterfaceSetListIndex

    Edit:
    Will provide in a view minutes one more which is related to the cam...

    Edit2:
    The DvrApi.dll uses some functions of the DvrStreamSource.dll... here we go =)
     

    Attachments

    • TerraTecDriver.rar
      962.2 KB
    • TerraTecDriver2.rar
      1.6 MB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Re: AW: Can someone help to create a CI Menu for the Terratec Cinergy C HD + CI?

    sure it is =) And I really like to understand what is going on :p

    I will do everything I can to help you in any way ;) If you need more Terratec files or something let me know =) We will get it :p or better, you will get it^^
    :p

    Edit:
    I just can't understand why they don't open their APIs for developers... It is good for a company if a lot of programs support their hardware...
    Yeah, I don't really understand either, but I'm sure there are reasons sometimes. Perhaps they want to encourage their customers to use their own software. That way if things go wrong they can provide better support because they know all about their software...

    Edit2:
    I have an Alphacrypt Classic Cam... Is it important what I have selected by cam type in the Tv Server config? I have selected "default"... just for your information :p
    Stick with "default". The only other option is Astoncrypt - that is because those CAMs require the PMT to be slightly modified. Other CAMs don't require special treatment at this stage...
     

    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 also can disassemble the driver... but I don't know if it is useful for you... oO

    Hehe, their own software isn't the best one xDD But maybe you're right^^
     

    mm1352000

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

    That first trial didn't go to well - the results I got back seem to be garbage again :(
    I think the reason is that the DvrCommonInterface.dll depends on other DLLs. Can you please copy the mfc90u.dll and msvcr90.dll from wherever you got the DvrCommonInterface.dll into the TV Server install folder and try again...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I'm not sure how useful it would be to disassemble the driver. I also have IDA Pro, but unless you have the PDB for the driver you usually get poor results. In fact, I'm quite surprised about how good your results are for the DLLs you've supplied so far. DvrApi doesn't look that useful and DvrStreamSource only has the same functions from DvrCommonInterface. We're not missing anything right now that we know of...

    Regarding the driver though, if you *do* have a PDB then it may be useful to disassemble. Might tell me what I'm doing wrong with the PID filter and reset. I've already disassembled a number of drivers for my old Twinhan OEM card but the results haven't been helpful...
     

    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?

    doesn't look better, but I will try something, just give me a moment :)

    I had to download the dll's you mentioned from the Internet, I couldn't find it on the system right now....
     

    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 copied most of the dll's from the Terratec Folder to the Tv Server folder... but no luck >_>

    2011-01-21 22:19:03.192286 [(5)]: Check for Twinhan
    2011-01-21 22:19:03.196287 [(5)]: debug: attempting global Terratec init
    2011-01-21 22:19:03.210287 [(5)]: debug: result is @
    2011-01-21 22:19:03.210287 [(5)]: debug: attempting Terratec device count
    2011-01-21 22:19:03.211287 [(5)]: debug: result is 0
    2011-01-21 22:19:03.211287 [(5)]: debug: attempting Terratec device detection
    2011-01-21 22:19:03.211287 [(5)]: debug: result is
    2011-01-21 22:19:03.211287 [(5)]: debug: attempting Terratec CAM detection
    2011-01-21 22:19:03.212287 [(5)]: debug: result is
    2011-01-21 22:19:03.212287 [(5)]: debug: attempting Terratec device blocking detection
    2011-01-21 22:19:03.212287 [(5)]: debug: result is 
    2011-01-21 22:19:03.212287 [(5)]: debug: attempting to get Terratec unique device GUID
    2011-01-21 22:19:03.213288 [(5)]: debug: result is
    2011-01-21 22:19:03.214288 [(5)]: 0000|2C 00 69 74 65 42 79 74 65 00 00 72 10 00 2F 00 |,_iteByte__r__/_
    2011-01-21 22:19:03.215288 [(5)]: debug: attempting to get CAM name using Terratec function
    2011-01-21 22:19:03.215288 [(5)]: debug: result is 0
    2011-01-21 22:19:03.215288 [(5)]: debug: attempting global Terratec release
    2011-01-21 22:19:03.215288 [(5)]: debug: result is 4B017E0
    2011-01-21 22:19:03.216288 [(5)]: debug: reached end of Terratec section
     

    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?

    here are all imports of tve DvrCommonInterface.dll
    In the rar's attached above I just included the imports, here are the exports, sorry about that...

    The decompiled driver is also attached ;)

    Edit:

    I'm not sure how useful it would be to disassemble the driver. I also have IDA Pro, but unless you have the PDB for the driver you usually get poor results. In fact, I'm quite surprised about how good your results are for the DLLs you've supplied so far. DvrApi doesn't look that useful and DvrStreamSource only has the same functions from DvrCommonInterface. We're not missing anything right now that we know of...

    Regarding the driver though, if you *do* have a PDB then it may be useful to disassemble. Might tell me what I'm doing wrong with the PID filter and reset. I've already disassembled a number of drivers for my old Twinhan OEM card but the results haven't been helpful...

    Heheh Ida Pro is a very cool tool, I really like it :p The dll's have debug infos... and IDA wanted to download some stuff from micrsosoft server.... could this be the reason? So if you need files to disassemble I will send it to you ;)
     

    Attachments

    • DvrApiExports.txt
      23.4 KB
    • DvrCommonInterfaceImports.txt
      9 KB
    • DvrStreamSourceExports.txt
      114.6 KB
    • MtsBda.rar
      152.2 KB

    mm1352000

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

    I'm puzzled - I don't understand why the global initialisation would return 64 (0x40, character '@'). This is why it is so important to have help from Terratec. At the moment all I can really do is look at the code that IDA pro generates. Things like...

    Code:
    LOBYTE(v0) = (**(int (__thiscall ***)(_DWORD, _DWORD))dword_1001DFB0[0])(dword_1001DFB0[0], 1);

    ...are difficult to understand!
    I'm really off to bed now. So much for making progress :confused: :(
     

    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?

    Yes, it is hard to understand... and I don't get a glue, too.

    hehe, do that^^

    Edit:
    I found the dll location:
    Debugger: loaded C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll

    Edit2:

    I started Terratec Home Cinema in the IDA Debugger, but I don't really know how to get useful information on this way.. sorry about that :(
    But maybe this helps (is not from the Cinergy, it is from the T5 ;) )

    DvrCommonInterface:00A21190 dvrcommoninterface_TTDvrCommonInterfaceGlobalInitialize dd 8B68FF6Ah ; j hï
    DvrCommonInterface:00A21290 dvrcommoninterface_TTDvrCommonInterfaceGetNumberOfDevices dd 538C033h
    DvrApi:00CB2C20 dvrapi_THC_Initialize dd 721C15FFh

    Edit3:

    I send an API request to Terratec, too :)
     

    Users who are viewing this thread

    Top Bottom