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

mm1352000

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

    Funny that you should ask ;)
    I was just preparing a "minor" new version for you to test. After this, I'm about to try and integrate the stuttering fix...

    As far as the CI menu feature goes: I'm no further along. The thing is that after all this work, I think Terratec has their own API. I'm *very* reluctant to use the functions that you found for two reasons:

    1. No documentation, meaning I'm not entirely certain how to use them. Some things can be guessed, but others will be simply trial and error.
    2. Using them will require separate code for Twinhan and Terratec cards. Up until now the Twinhan code has worked for Terratec tuners which is very convenient. Things become more complicated if you copy code to a new handler, or even if you just make an extension on the Twinhan handler.

    I guess at the end of the day, regardless of what I think we should still try the functions to at least see if they work. I'll see how I go with that. Got a lot to do at the moment, but it is the start of a 3 day weekend here and I'm no longer sick - anything might happen ;)

    Anyhow, could you please *briefly* test this version. All you need to do to test is to view one channel. I'm looking to see if I can get tuner/CAM resetting and the PID filter working.
     

    Attachments

    • TVLibrary(v1.62)[Terratec_1.2.0a].zip
      156.8 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?

    haha, yeah it is really funny xDD^^

    The point with the Terratec API is a bit disappointing... You don't really need the CI Menu, because I can put the Cam in my Tv and you have to configure the Cam just once, but it would be cool to have a fully supported Tv Card... But we will see, I think you really know what you are doing =)

    Oh you were sick... so it is good to hear that you aren't longer ;) And I wish you a nice weekend =)

    P.S.
    I just updated my TvServer and will starting to watch Tv ;)
    Here is the log where I just tuned to one channel, but I will test this version for a while, the other version I used for over a week and had no complains :)

    Logs removed to save space MediaPortalLogs_21_01_11__16_36.zip (242,4 KB, 1x aufgerufen)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Okay you requested it so politely, so here it is - a combined stutter-multidecrypt patch. It should be interesting to see if this makes any difference to the multidecrypt glitch. To be honest I have my doubts about whether it will make any difference, but I am always hopeful :D

    This patch has one file for the client (TsReader.ax); the rest are for the TV Server. Of course I recommend that you backup all the files before you replace them. I haven't tried the stuttering fix myself so I hope I have got all the files that are required. Let me know if you have trouble and I'll see what I can do...
     

    Attachments

    • Patch(v1.63)[1.2.0a_Twinhan+Stuttering].zip
      654.3 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?

    hehe, thank you for your effort =) but there is no real difference... there is still a stuttering.
    I tested it twice:
    The first time (logs attached) I just tested multidecrypt and had still the glitch (logs attached).
    After that I tested it again, but this time I explicitly looked into the logs if the max package size is reached and then switched to the second channel, this time channel switching was incredible fast, it wasn't so fast any time before... but I guess that there is a random factor on the strength of the glitch in the recoding and the channel switch time xDD

    Everything else seems still to be fine :)

    Edit:
    Sometimes If I switch a channel there is just a black screen (no message, nothing, just black screen, had it now 2 times), logs attached...
     

    mm1352000

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

    I've found one potential problem in my code which I will try to fix tomorrow. It would be helpful if you could restart your HTPC and then post new logs after tuning a channel because the PID filter seems to "disappear" sometimes (there are no useful entries in the new logs to help me with the next step).

    In the meantime, I have contacted both Terratec and AzureWave (Twinhan) and requested help to try and implement the CI menu feature. I hope that I will hear back from them, but sometimes TV tuner manufacturers are very bad at responding to those sorts of requests. I will start trying to add support immediately, but their advice would help a lot.

    I'm off to bed now, but I'll be in contact again soon :)
     

    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 restarted my HTPC and hope now is everything in, I had a look for the word "PID" and it appears often, so I think this time the logs should be okay =) Otherwise just tell me what I have to look for and I will try as often as I found this in the logs ;)

    I really appreciate your work and can't thank you enough for all your time and effort you spend on this...
    Hopefully Terratec and Twinhan can help.. hehe I think most of the people don't have so special questions and the support people are just helpless with such a question xD But I will stay optimistic =)

    Have a good sleep^^
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Grr, I just can't seem to get that PID filter working. Can't get device/CAM reset working either! :(
    I give up on that for the moment until I hear from Twinhan and/or Terratec (or we wait so long that we assume they won't respond)...

    Alright, I really wanted to get something positive done before I went to bed so I couldn't resist this one more thing - here is a first attempt to use the Terratec interface for some basic things:

    TTDvrCommonInterfaceGlobalInitialize
    TTDvrCommonInterfaceGlobalRelease
    TTDvrCommonInterfaceGetNumberOfDevices
    TTDvrCommonInterfaceIsDevicePresentByDeviceIndex
    TTDvrCommonInterfaceIsCAMPresentByDeviceIndex
    TTDvrCommonInterfaceIsDeviceBlockedByDeviceIndex
    TTDvrCommonInterfaceGetUniqueGUIDByDeviceIndex
    TTDvrCommonInterfaceGetCAMNameByDeviceIndex

    Those are only the simple functions that don't do really useful things, but it would be a good start to get them working...

    To try this, please make sure you have that DvrCommonInterface.dll in the TV Server install folder. Also, please keep the stutter fix in place for the moment. All you have to do is tune to one channel and post logs.

    Thanks for testing :D

    [Edit: It was probably obvious from my answer, but your last logs contained what I needed to see for the PID filter. If we ever test that again then look for the "PID filter support" entry - we want it to be "True" for testing. I don't understand why it is sometimes "False" but it looks like the Terratec interface can be used enable/disable it so maybe they have a custom interface in there...]
     

    Attachments

    • TVLibrary(v1.7)[Terratec_1.2.0a].zip
      157.2 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?

    Doesn't sound good... I know what the PID filter is for, but for what do we need it?! It works at the moment without, too.... Maybe you can tell me more, I like to learn new things :p

    I like the stutter fix, so this is no problem^^

    I did the following:
    1. as always: replacing and restarting.... & started everything again
    2. clicked on "Tv" => tuned to an FTA channel
    3. we are testing encrypted channels so i tuned to an encrypted one (git the message "Kanal verschlüsselt" (channel encrypted)
    4. tried another one => worked
    5. closed MP and collected logs =)

    EDIT:
    Okay, I will =)

    Edit2:
    It is linux, but maybe it helps...:
    TerraTec Cinergy C DVB-C - LinuxTVWiki
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Sure, happy to answer :)

    The reason I'd like to get the PID filter working is to minimise the required bandwidth between the tuner and the system. This is not so important for a PCI device like yours (for PCI-e, even less important), but it could be important for Melstig with his USB H7 tuner. Especially if multiple HD (DVB-S2) channels are being viewed/recorded. PID filtering is already used with the DigitalEverywhere devices when HD channels are being viewed, but no other hardware supports it yet in MediaPortal. It is true that it is not *absolutely* necessary at present (and it may never prove useful), however I thought it would be a good addition if we could get it working...

    I think the use of the device/CI/CAM reset is more immediately obvious. Sometimes CAMs just behave weirdly and they need a reset. I have seen plenty of threads (especially relating to the DigitalEverywhere tuners it seems) complaining about CAM issues after a long period of use or waking from sleep/hibernate. Melstig has issues with his CAM misbehaving on resume so I'd *really* like that to work. It should be simple too, but it is proving to be frustrating...

    Anyhow, I hope that is interesting to you ;)
     

    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?

    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^^

    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...

    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
     

    Users who are viewing this thread

    Top Bottom