Compiling anysee branch from GitHub (2 Viewers)

jehe

Portal Pro
February 15, 2011
694
216
58
Home Country
Belgium Belgium
Hi mm

Thank you for free up some time.
I shall check your remarks and report back with some logs.

Jean
 

Peter Andersson

Portal Member
April 13, 2012
7
0
37
Home Country
Sweden Sweden
Ok then here comes the full logs.

And the cam works in windows media center and the provided software that came with the anysee box, and in my tv..
 
Last edited:

jehe

Portal Pro
February 15, 2011
694
216
58
Home Country
Belgium Belgium
Hello,

I added a variable.
build without errors.
Do not know if this is correct




Code:
 #region variables
 
    private bool _isAnysee = false;
    private bool _isCiSlotPresent = false;
    private bool _isCamPresent = false;
    private bool _isCamReady = false;
    private AnyseeCiState _ciState = AnyseeCiState.Empty;
 
    private IKsPropertySet _propertySet = null;
    private AnyseeCiApi _ciApi = null;
 
    private IntPtr _generalBuffer = IntPtr.Zero;
 
    private String _tunerDevicePath = String.Empty;
    private ApiCallbacks _apiCallbacks;
    private ICiMenuCallbacks _ciMenuCallbacks = null;
 private IntPtr _mmiMessageBuffer = IntPtr.Zero;
 
    #endregion
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Hello again Jean and Peter

    Apologies for the delayed response - I continue to be very busy.

    jehe: thank you for supplying your logs, but unfortunately I have to say that this code is not going to work for you. The code does not support Anysee E30 series tuners - only the E7 series with CAMs (ie. not smartcard slot) are supported for conditional access. The reason for this is that although the Anysee SDK provides the ability to send commands and read information from the smartcard slot, there is no documentation about the data formats and protocol. Even if we had documentation, the protocol is very low level. I think we would basically have to implement our own MD filter with FFDESCA to make it work. I don't have the knowledge, time or desire to implement that. Sorry...

    Peter.Andersson: thank you also for supplying your logs. Your guess for the code fix was correct. :)
    There are a few things I notice, and a few comments I would like to make:
    1. Your tuner is recognised correctly.
    2. The CI slot is detected and the interface to the CAM seems to be opened successfully.
    3. When you tried to view TV3, there was no signal - I'm not sure if that is a code problem or a signal problem.
    4. When you tried to view Kunskapskanalen, signal was locked but the CAM was not detected yet.
    5. The CAM was detected at 18:49:51 - about 1 minute 30 seconds after you tried to tune TV3 - but it was not yet ready to decrypt channels.
    6. The PMT structure sent to the CAM (ie. the request to decrypt the channel) for Kunskapskanalen was missing the service ID. That is definitely a code problem. Don't know why that happened but I'll ensure that it is fixed.
    7. The PMT structure also had an elementary stream descriptor issue - complicated to explain but again, I will ensure it gets fixed.

    In summary, there are definitely some code issues, but I think the biggest problem is that the CAM was never detected as ready. We should have seen a log message to say the CAM state changed from CamInserted to CamOkay. Please keep in mind that you need to close the Anysee CNO program that runs in the taskbar when using the tuner in MediaPortal. Otherwise CNO will prevent MediaPortal from using the CAM.

    Best regards,
    mm
     

    jehe

    Portal Pro
    February 15, 2011
    694
    216
    58
    Home Country
    Belgium Belgium
    Hello mm,

    thanks for your reply, I have purchased a "E7 S2 CI Plus" 2 weeks ago, but at this moment I have no CAM.(I use the smartcard slot at this time).
    After I got one , I will be back with some logs.

    Best regards,
    Jean
     

    Peter Andersson

    Portal Member
    April 13, 2012
    7
    0
    37
    Home Country
    Sweden Sweden
    Thanks for the tip about shutting down CNO program after that i could get it to work, its not working properly but i can get it to work by unplugging my cam and inserting it again, this has to be done between every channel switch..
     

    jehe

    Portal Pro
    February 15, 2011
    694
    216
    58
    Home Country
    Belgium Belgium
    Hello mm,

    I have the latest version of "EXP Tuner_hardware_support_cleanup_and_extension" compiled, with this branch I have 2 problems, when compiling theWinTVci.cs code there was an error which I solved with the code below which I do not know if this is correct . When configuring the TV server, there was something wrong with the interface, so there could not be scanned for TV channels. (I've added a print screen).
    I also added the logs.

    Best regards,
    Jean



    \\MEDIAPC\ProgramData\Team MediaPortal\MediaPortal TV Server\log\picture tv server configuration.png

    Code:
        // The WinTV-CI can only decrypt one channel at a time. During development
          // of this class I did actually try to assemble a fake CA PMT structure that
          // would trick the module into decrypting multiple channels, however it didn't
          // work. So we'll just send this PMT to the CAM regardless of the list management
          // action.
          byte[] rawPmt = pmt.GetRawPmtCopy();
          int hr = WinTVCI_SendPMT(_winTvCiFilter, rawPmt, rawPmt.Length);
          if (hr == 0)
          {
            Log.Debug("WinTV-CI: result = success");
            return true;
          }
     
          Log.Debug("WinTV-CI: result = failure, hr = 0x{0:x} ({1})", hr, HResult.GetDXErrorString(hr));
          return false;
        }
     
        #endregion
     

    Attachments

    • picture tv server configuration.PNG
      picture tv server configuration.PNG
      210.3 KB
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi Jean :)

    You need to apply the 61 sql script or maybe better to create a new db :)
    I have see the same as you about setuptv if db is not set correctly.

    I have doing like this :
    Start in cmd : "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\setuptv" /configure-db
    And give a name of your new db (maybe you need to stop tvservice before).

    mm is working on WinTV-CI and in branch it's not the update code, so yes you need to set GetRawPmtCopy :).

    So after that setuptv should be working and you can try to scan :)

    Edit :
    You still need to apply "61_upgrade_sqlserver_database.sql" or "61_upgrade_mysql_database.sql" on your new DB (depend of your sql server).
    The files are on folder : "\TvEngine3\TVLibrary\SetupTv"
     
    Last edited:

    jehe

    Portal Pro
    February 15, 2011
    694
    216
    58
    Home Country
    Belgium Belgium
    Hello Sebastiii,

    Thank you for your quick reply, I will try out your solution tomorrow, and come back with a report.
    Have a nice evening (or morning in new zealand).

    Jean
     

    Users who are viewing this thread

    Similar threads

    Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it requires extensive metadata scraping that I don't need. Is it possible to instantly access the video categories when landing on the page? I would like to display a single media page with the following...
    Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it...
    Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it...
    Replies
    0
    Views
    283
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios were not populated Fallback to english tagline didn't work Score / Popularity now empty instead of dummy rating and unknown popularity numbers Also I've tried to compile plugin against MP 1.34 x64 and...
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios...
    Hi! TheTVDB.com has movies in their API now. API itself looks ok now so I decided to add TVDB to Moving Pictures. Check it if you...
    Replies
    2
    Views
    801
    First thing to say is that I use MP1, whereas I believe that you use MP2. @ge2301 has just posted that MP2 has a "folder view" in addition to the "library view", so you should be able to set up your system as I describe below, but the details will differ. In MP1, the folders that are to appear on the "Videos" panel are defined in "MP...
    First thing to say is that I use MP1, whereas I believe that you use MP2. @ge2301 has just posted that MP2 has a "folder view" in...
    Help Please. Yesterday upon switch-on, I had this issue with MP2: When I clicked on the [REC] icon in the following Image...
    Replies
    18
    Views
    1K
    When starting, the Media Portal says that the database is damaged, the computer may have crashed while writing to the database, or the disk is damaged or some other problem. SQLiteClient: FanartHandler.db3 cmd:sqlite3_finalize err:CORRUPT/CORRUPT detailed:database disk image is malformed query You can try to treat the database as a...
    When starting, the Media Portal says that the database is damaged, the computer may have crashed while writing to the database, or...
    Hi, I use Mediaportal 1 a lot and have created a lot of Fanart jpegs for my music soundtracks but just in the last 2 weeks I have...
    Replies
    14
    Views
    2K
    Yes, all compatible with x64 ;)
    Yes, all compatible with x64 ;)
    Hi folks, for all those who would like to enjoy Mediaportal on the Titanskin, I have now adapted the well-known MP games package...
    Replies
    7
    Views
    899
    Top Bottom