Compiling anysee branch from GitHub (2 Viewers)

jehe

Portal Pro
February 15, 2011
694
216
59
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
38
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
59
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,228
    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
    59
    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
    38
    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
    59
    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
    59
    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


    Write your reply...

    Similar threads

    Thank, very helpful. My download was done today from the link on Download MediaPortal for free! - MEDIAPORTAL but is the initial release MediaPortalSetup_x86_1.37.000_2025-04-14-08-37.zip. The page MediaPortal 1.37 Release - MEDIAPORTAL has a more recent link, MediaPortalSetup_x86_1.37.000_2025-05-03-18-19.zip. I've now installed...
    Thank, very helpful. My download was done today from the link on Download MediaPortal for free! - MEDIAPORTAL but is the initial...
    I updated to 1.37 (x86) today, and the TV service is now failing to start. TVService.log has this line: Tvservice stopped due to...
    Replies
    2
    Views
    430
    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
    540
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    638
    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
    1K
    I did a check of MP 1.36 x64 on Win11 and I can confirm, that the TV server correctly detects running MediaPortal.exe process.
    I did a check of MP 1.36 x64 on Win11 and I can confirm, that the TV server correctly detects running MediaPortal.exe process.
    Hi, I am using MP in a client-only setup including DVB-S card for over 10 years now. And regularily scheduling records waking up...
    Replies
    9
    Views
    1K
    Top Bottom