FloppyDtv - Fix for propblems with CAM stop working (1 Viewer)

DieBagger

Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    As mentioned in this thread there can be problems with FloppyDtv and some CAMs where the connection to the cam is lost. While there was a partial fix that is already included in svn, this still sometimes happens for me (specially when using dvb epg). So I created the following patch which fixes all problems for me.

    Background:
    After extensive debugging I found that the problem with my cam is that it locks when it sends messages and the listener thread is not running (which can happen in MediaPortal since the listener thread isn't always started when e.g. grabbing epg). After that the only thing helping is to (physically) remove the cam and reinsert it or use the ResetCAM method (which implemented but not accessible in the tvserver configuration).

    The patch will
    a) always start the ci listener thread
    b) expose the ResetCAM method (see image)

    21112010_163558.png

    The binaries are compiled against 1.2 alpha so you need the alpha for it to work. Just copy the files over the original ones in "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server".

    This will only work for "digital everywhere - FloppyDTV" cards with ci module

    Don't forget to backup your files before overwriting and use at own risk!

    Edit: I updated the files for 1.2 final (path and binaries in der rar file) and removed the ResetCAM method to keep the patch simple.

    View attachment 2011-09-19 (Final).rar
    View attachment 2011-09-25 (1.2.1).rar
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    That works perfect for me!
    Thanks very much!
    Please include it in any further versions! ;)

    Can you post the excact model of cam you are using? If this solves the issue for many people it's easier for me to get this into the main version of MediaPortal.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria

    me1

    Portal Pro
    March 21, 2008
    73
    2
    Home Country
    Germany Germany
    AW: FloppyDtv - Fix for propblems with CAM stop working

    I have most of the times problems after starting the system from standby.
    In that case the cam does not work.
    Because of that i always restart the tv-server after resume from standby - takes time...

    Would it be possible to have a small programm or may be a command line option for tvserver to call that cam reset function to fix my problem?
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    1.2.0 final, noone told me about that... ;) You mean the 1.2 svn or 1.1.2 final?

    Not sure about both of them, it might work.
     

    Users who are viewing this thread

    Top Bottom