TechnoTrend S2-3200 +CI no recording after a few days: "CI: ERROR::SetProgram failed" (1 Viewer)

krikkit

MP Donator
  • Premium Supporter
  • September 25, 2008
    182
    38
    Vienna
    Home Country
    Austria Austria
    TV-Server Version: 1.0.1
    MediaPortal Version: 1.0.1
    MediaPortal Skin: Blue3 Wide
    Windows Version: Windows Vista x64
    CPU Type: AMD Athlon 4850e
    HDD: Samsung 400gb
    Memory: 4 GB
    Motherboard: ASUS M3A-H/HDMI
    Video Card: Radeon HD 3200 (onboard)
    Video Card Driver: Catalyst 9.1
    Sound Card: onboard
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card: Technotrend S2-3200
    1. TV Card Type: DVB-S2
    1. TV Card Driver: 5.0.1.8
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: Cyberlink PowerDVD 8
    MPEG2 Audio Codec:
    h.264 Video Codec: Cyberlink PowerDVD 8
    Satelite/CableTV Provider: Astra 19.2°E, Hotbird 13.0Ê
    HTPC Case:
    Cooling:
    Power Supply:
    Remote: Philips SRM 5100
    TV: LG 37LC25R
    TV - HTPC Connection: HDMI
    CAM: Irdeto Cryptoworks

    so i repost my bug-report... because it also happens in 1.0.1

    i have a working installation of mediaportal + tvserver 1.0.1 (singleseat setup). i can scan for channels, i can record everything, even multiple recordings of my encrypted channels... so everything is working, BUT...

    the Problem:
    - after about a day of normal operation (duration varies, sometimes a few hours, sometimes days) tvserver can no longer start recordings/timeshifting, i only get a "can not find graph" error...

    every time when this happens i get the following entries in "TSWriter.log":

    Code:
    15-04-2009 18:28:14.69 TechnoTrend: slot:0 module ok
    15-04-2009 18:28:14.69 TechnoTrend:    CI status:2 
    15-04-2009 18:28:14.69 TechnoTrend:    CI text  :Cryptoworks 
    15-04-2009 18:28:14.70 TechnoTrend:      ca system id  :d05 
    15-04-2009 18:28:14.70 TechnoTrend:      ca system id  :4a20 
    15-04-2009 18:28:14.70 TechnoTrend:      ca system id  :d22 
    15-04-2009 18:28:14.70 TechnoTrend:      ca system id  :d95 
    15-04-2009 18:28:14.70 TechnoTrend: DescrambleMultiple:(1)
    15-04-2009 18:28:14.70 TechnoTrend: DescrambleMultiple: serviceId:28680
    15-04-2009 18:28:14.70 $ OnCaChange slot:255 reply:14 status:5
    15-04-2009 18:28:14.70 $ CI: ERROR::SetProgram failed !!! (no CA resource available)
    15-04-2009 18:28:14.126 $ OnCaChange slot:255 reply:14 status:5
    15-04-2009 18:28:14.126 $ CI: ERROR::SetProgram failed !!! (no CA resource available)
    15-04-2009 18:28:14.126 TechnoTrend: services not decoded:0 ciStatus: -1

    after the first occurance, this error occurs on every channel i try to tune, even on non-encryped channels

    the only way to recover from this error is to restart the tvserver-service, after restart everything starts to work again correctly for at least a day...

    would be nice if someone can help me with this annoying error... every little hint is welcome :) (even reports of users who have the same card and CI and have no problem)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I also had sometimes issues with "no CA resource". I expect this could be a problem of the CAM.

    And I'm afraid we cannot do much in this case :(
     

    krikkit

    MP Donator
  • Premium Supporter
  • September 25, 2008
    182
    38
    Vienna
    Home Country
    Austria Austria
    thanks for the hint... i think i will try to find another CAM ...lets see if it than also happens... meanwhile i will look for a way to trigger a tvservice restart when the specific error in the log occurs...
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    two things you should check:
    - increase timeout for PMT (i.e. 15 sec) (tuning section)
    - increase "wait for unscrambled signal" / "for timeshift file" also to > 15 sec.

    If "No CA resource" occures, the function retry until timeout is reached. usually setprograms works the second time ;)

    try 1:
    Code:
    2009-04-17 14:43:15.734000 [8]: TechnoTrend: DescrambleMultiple: serviceId:10901
    2009-04-17 14:43:15.853000 [8]: $ OnCaChange slot:255 reply:E status:5
    2009-04-17 14:43:15.856000 [8]: $ CI: ERROR::SetProgram failed !!! (no CA resource available)
    Code:
    2009-04-17 14:43:18.888000 [8]: TechnoTrend: DescrambleMultiple: serviceId:10901
    2009-04-17 14:43:18.891000 [8]: $ OnCaChange slot:255 reply:E status:0
    2009-04-17 14:43:18.893000 [8]: $ CI:    SetProgram OK
    Code:
    2009-04-17 14:43:19.053000 [8]: WaitForPMT: sending PMT to CAM took 9,423 seconds.
    --> this is the place when the timeout values get into action...
     

    krikkit

    MP Donator
  • Premium Supporter
  • September 25, 2008
    182
    38
    Vienna
    Home Country
    Austria Austria
    thanks, but i already have both of this values a 20 sec, so shouldn't be the problem any more...

    but i have done additional testing now with a borrowed CAM (SCM Cryptoworks), and it really seems to be a problem of my cam (mascom cryptoworks), because could not reproduce this error with the scm cam. But on the other side the SCM cam does not allow decoding multiple streams :(

    will try another cam after the weekend hopefully..
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I am currently re-implementing CI handling of TT in C# side. I added functions to stop / start the TT BDA API, which should also reset the CAM.
    Question now is, when would be a "good time" to reset the API? Does your system run all the time or do you suspend the tvserver? If so, try to use the powerscheduler setting "reset tuner after resume" (or like this).

    If not, I have another idea. Inside the TT callback
    Code:
    07-04-2009 19:18:54.35 $ OnCaChange slot:255 reply:14 status:5
    07-04-2009 19:18:54.35 $ CI: ERROR::SetProgram failed !!! (no CA resource available)
    we could do the following:
    • counting the errors, when "no ca available" occur
    • after 2nd or 3rd error I could close the API and reopen it
    • this should reset the CAM
    • then I reset the error counter to allow retries

    Using this could solve the CAM problems, and the retries are still limited by the configured timeouts.

    Would you test a special build for your problem? I can prepare this.

    Bye
    Morpheus
     

    morpheus_xx

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

    I created a special build with the "reset CAM" feature: after setProgram failed 2 times, the bda api gets closed and reopened. this should reset the cam also.

    Please try this build with your Mascom CAM, that caused issues before. All CI related logs are written to tv.log now!

    Please check if somewhere occures:
    "SetProgram failed {0} times because of no CA resource. Resetting CI now."
    Then a reset of api should follow.

    One note: this one is completly untested ;) and you should use both MP and TVE that can be downloaded here.

    No guaranties, and please post log files here. :D

    Bye
    Morpheus_xx

    EDIT: removed download; it doesnt work to close CI when graph is running :(
    2009-05-03 11:13:32.641211 [11]: get_SignalLocked() locked :confused:ystem.InvalidCastException: Das COM-Objekt des Typs "System.__ComObject" kann nicht in den Schnittstellentyp "DirectShowLib.BDA.IBDA_SignalStatistics" umgewandelt werden. Dieser Vorgang konnte nicht durchgeführt werden, da der QueryInterface-Aufruf an die COM-Komponente für die Schnittstelle mit der IID "{1347D106-CF3A-428A-A5CB-AC0D9A2A4338}" aufgrund des folgenden Fehlers nicht durchgeführt werden konnte: Schnittstelle nicht unterstützt (Ausnahme von HRESULT: 0x80004002 (E_NOINTERFACE)).
    bei DirectShowLib.BDA.IBDA_SignalStatistics.get_SignalLocked(Boolean& pfLocked)
    bei TvLibrary.Implementations.DVB.TvCardDvbBase.UpdateSignalQuality(Boolean force) in D:\Coding\MP\MP1\TVEngine3\TVLibrary\TVLibrary\Implementations\DVB\Graphs\TvCardDvbBase.cs:Zeile 1582.
     

    krikkit

    MP Donator
  • Premium Supporter
  • September 25, 2008
    182
    38
    Vienna
    Home Country
    Austria Austria
    thanks for all the time and work you are investing into my issue..

    ..i have further tested with the SCM cryptoworks cam, and with this one i did not get a single error in about 4 days of runtime ... now i have another CAM for testing, another mascom cyptoworks (with older firmware), will see if this one works better that mine one...

    and yes my server is running all the time, have disabled standby up to now... i will do this when i have a 100 % stable setup...

    resetting the cam when this error occurs would be i nice solution... i have already thought about a script which restarts tvserver if it finds this error in the logs :) ..would'nt be perfect solution, but better than a missed recording because of hanging CAM...
     

    krikkit

    MP Donator
  • Premium Supporter
  • September 25, 2008
    182
    38
    Vienna
    Home Country
    Austria Austria
    so after another week of testing, with the other mascom cryptoworks cam with the older firmware... have got the same error (but it was running 4 days without problem), so it looks like this is not the problem of the cam alone... seems to be the combination with the tv-card... :( ...will continue testing another week...
     

    salat

    New Member
    March 10, 2010
    3
    0
    Home Country
    Russian Federation Russian Federation
    Re: TechnoTrend S2-3200 +CI no recording after a few days: "CI: ERROR::confused:etProgram fai

    Hi Morpheus_xx!
    FYI:
    In my case wstatus = 5 turned to be a result of CAM card EXPIRATION. It gives "no resource". and sometimes (rarely) it says Ok. But never descramble anything.
    It probably worth adding informative message to the UI because there are no other errors, SlotStatus and initialization passing ok. Open menu does not return error, but again does nothing.

    Regards,
    Kostya
     

    Users who are viewing this thread

    Top Bottom