KNC DVB-S2 twin - has anyone got this to work with 1.2RC? (1 Viewer)

chr0non

Portal Member
September 11, 2011
39
5
Logs from dll using KNCBDACTRL attached.

I rebooted server first since this still seems to be the only way to really reset the card.

Then for each tuner :
Started a scan - worked OK
Tuned an SD channel - worked OK
Tuned an HD (DVB-S2) channel - failed
Tuned a different HD (DVB-S2) channed - also failed
Tuned an SD channel again - worked OK
 

mm1352000

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

    *Thank you* sincerely for your help with testing. :D
    Unfortunately the news is not good. In all cases your cards were not recognised as KNC compatible, so the logs do not contain any valid results. :( :sorry:
    I think I have fixed the error that was causing that problem. Please could you perform test 1 and test 2 again with the TVLibrary[1.2.1_dll].zip version (you can try the other versions too if you want) attached.

    Django: that DLL that you posted is *not* compatible with the DLL that they gave me, so please use the attached one for all testing.

    Thanks again in advance!
    mm
    :)
     

    Attachments

    • TVLibrary[1.2.1_dll].zip
      160.8 KB
    • TVLibrary[1.2.1_kscontrol].zip
      161.1 KB
    • TVLibrary[1.2.1_ksproperty].zip
      161.1 KB
    • KNCBDACTRL.zip
      16.9 KB

    Django.edwards

    Portal Pro
    October 22, 2009
    457
    54
    Eupen
    Home Country
    Belgium Belgium
    Hi mm,

    finally could do some test. But because at the moment I have no physical access to the server the tests are all with CI attached and cam inserted.

    Test1: with original 1.2.1 Versions
    Test2: with your tvlibrary1.2.1
    Test3: with kscontrol
    Test4: with ksproperty

    What I did:
    before each test I rebooted the server. Then I did a timeshift with the tvconfig to the following channels:

    "la une" which is on LNB 1 for Hotbird. Which is on input 1 of the diseqc switch
    "das erste HD" which is on LNB 2 for Astra, which is on the input 2 of the diseqc switch
    "das erste HD" i did a second try
    then I did a fullscan on LNB2 Astra, and after that I tuned again the following channels:
    "das erste HD"
    "la une"
    then I did a fullscan on LNB1 Hotbird, and after that I tuned again the following channels:
    "la une"
    "das erste HD"

    Thats all!

    As you can see on Test1, when I tune to "la une" everything is fine, because the switch is already in this position i assume. Then I tune to "das erste HD" wich is on Astra. This tuning did not work. But, after a fullscan on the Astra LNB, the tune to "das erste HD" works. So the fullscan did a switch on Diseqc switch. After this I can no more tune to the Hotbird channels.
    So I did a fullscan on Hotbird. After this fullscan the channel "la une" works again. As you can see on the fullscan's, the first try for the first transponder always fails, after that everything is ok.

    For Test2: Here seems that everythings works. The channels between Astra and Hotbird switches well. The only problem I have here is that I connot descramble the channel "la une". I got the message "channel is scrambled".

    For test3 + 4: everything seems to work as designed. One exception: The first try to tune to an scrambled channel did not work. After the first tune to "la une", the second and third tune works.

    Hope that I could provide some help, and that my explanation are ok, so that you could understand them.

    If you need some other tests, let me know.

    Regard

    Django
     

    mm1352000

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

    *Thank you* once again for testing - we are making good progress now! :D

    chr0non
    I see two things in your logs that I need to investigate further.

    First is DiSEqC. I can see you used the "DLL" version which is fine. I am not completely satisfied with that yet since when I compare your logs to Django's the tuner driver is reporting failure to send the command in your case and success in Django's case. You only tested channels on one satellite (port 2 - Level1AB) so I wonder whether your test result was a little lucky - maybe the switch was already on the right port. I think the difference in result reported from the driver is due to the difference in cards, so I need to do something slightly different in the code for your card. Please try the attached DLL and be sure to test changing between channels on different satellites if possible...

    Second is a shared issue with Django's logs so I will come back to that at the end.

    Django
    Your DiSEqC testing was very good. It proves that two methods (DLL and KsProperty) would work for your card. For some reason the KsControl logs contained the same information as KsProperty - maybe that was a mistake from me. I have attached a new one of those DLLs. If you are able to do a quick test with that then I would appreciate it. In any case, your results with KsProperty prove that we should be able to add DiSEqC support for Omicom DVB-S2 PCI tuners (they are clones of your cards, except no CI connection).

    The thing that I'm concerned about from your logs is the shared with the second issue from chr0non's logs - it seems that the CI/CAM can't be enabled even if it is present. This is what is causing the failure to decrypt La Une on the first attempt. I don't understand why the CI/CAM can't be enabled, but thankfully it looks like KNC have put debug information in their DLL - we just have to figure out how to view it! ;) :D

    As far as I can see there are two ways to view it.

    #1 - DebugView
    This is probably the easiest way.
    1. Download the software from -->here<-- (free official Microsoft software, no installation required).
    2. Extract and run Dbgview.exe.
    3. Enable all the options on the "Capture" menu except "log boot".
    4. Restart TV Server and tune a few channels (Django, please make sure to try to tune La Une at least twice). You should see lines start to appear in DebugView. If you don't see lines then try the second method.
    5. If you got lines in step 4 then select "File"->"Save as" to save the debug output - save as *.txt or *.log.
    6. Post the file here. :)

    #2 - Log file
    This is a trickier way, but if this is enabled by default then the DebugView option won't work. The log file location is set in the registry somewhere under HKEY_CURRENT_USER\Software\ODSoft\Log. There should be bInfo, bInfo2, bWarn, bError, bDebug and LogFile values. I think you should set bInfo, bInfo2... etc. to 1 - that is a guess though. Also set the LogFile location to something convenient and easy like C:\knc.log. After that, restart the PC, tune a few channels, and check whether the log file has any entries in it. If it doesn't then I will have to ask KNC what the problem could be.

    Please don't hesitate to ask if you have any questions. :)
    mm
     

    Attachments

    • TVLibrary[1.2.1_dll_chr0non_test].zip
      160.9 KB
    • TVLibrary[1.2.1_kscontrol_new].zip
      161.1 KB

    Django.edwards

    Portal Pro
    October 22, 2009
    457
    54
    Eupen
    Home Country
    Belgium Belgium
    Hi mm,

    so I did some tests with you new tvlibrary.

    test5: I got the same results than yesterday
    test6: same test but with debugview running, included the log
    test7: same test, but with the registry changed as you described and also with debugview running.

    In test7 I attached my reg-files, because the reg-keys where not at the location you mentionned, but they where at hklm\current user
    So I changed the values at this place. I rebooted the machine, but there where no logs written to c:\knc.log. Some idea?

    Finally after all these tests, I tried to tune "la une" on my second card(card3). Without success, even after a second and third try.
    On the first card, after the first failed tune, it wotks. Then I tried to open the ci menu on the second and third card. Without success.
    After this, I changed the kncbda.dll and the tvlibrary back to original, and both the ci menu and the tuning on the second card works again.

    I hope that you can find some hints.

    Already thanks for you work! You are great man!
     

    Attachments

    • test5.zip
      15.2 KB
    • test6.zip
      10.7 KB
    • test7.zip
      27.2 KB

    mm1352000

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

    so I did some tests with you new tvlibrary.

    test5: I got the same results than yesterday
    Perfect - KsControl works as well. That is raw DiSEqC working in 3 ways. We can now support 16 port switches and motor control with KNC cards. :)

    test6: same test but with debugview running, included the log
    The DebugView output from this test showed the problem:

    00:00.016: CKNCCiStack : KNC_CI_Enable - error setting up event (evid=4, data=1)

    When I try to use my non-KNC tuners with the KNC code I got an error with "evid=0". I will check with KNC what this error means and fix our code. That should fix the unreliable descrambling and CI menu behaviours.

    test7: same test, but with the registry changed as you described and also with debugview running.

    In test7 I attached my reg-files, because the reg-keys where not at the location you mentionned, but they where at hklm\current user
    So I changed the values at this place. I rebooted the machine, but there where no logs written to c:\knc.log. Some idea?
    Hmm, I had to make a guess from reverse engineering the DLL code (shhhh! ;)) since I don't have KNC tuners or access to their code. I think based on the reg-keys that you would need to change this one:

    [HKEY_CURRENT_USER\Software\ODSoft\Log\KNCBDACTRL]
    "bInfo"=dword:00000000
    "bInfo2"=dword:00000000
    "bWarn"=dword:00000001
    "bError"=dword:00000001
    "bDebug"=dword:00000000
    "LogFile"=""

    You would set all the b**** variable values to 00000001 (1 = 0x00000001) and the LogFile value to [example] C:\knc.log. However, I don't think the log file would have any extra information than the DebugView output.

    Finally after all these tests, I tried to tune "la une" on my second card(card3). Without success, even after a second and third try.
    On the first card, after the first failed tune, it wotks. Then I tried to open the ci menu on the second and third card. Without success.
    After this, I changed the kncbda.dll and the tvlibrary back to original, and both the ci menu and the tuning on the second card works again.

    I hope that you can find some hints.
    CI/CAM functions and reliability is my focus now that DiSEqC is working nicely. I will do my very best to figure this out as quickly as possible. I know where I need to check - just not sure what is wrong at the moment...

    Already thanks for you work! You are great man!
    I do my best but I could do nothing on these problems without help from you, chr0non and Jean. *Thank you* once again for your fast testing - the logs are clean, I can see what you're doing easily... it's perfect testing from my perspective! :D

    I'm about to go to bed but I will look into the code again tomorrow. I'll be in contact again soon...

    mm
    :)
     

    Django.edwards

    Portal Pro
    October 22, 2009
    457
    54
    Eupen
    Home Country
    Belgium Belgium
    Hi mm,

    I hope you sleep well. :)

    You did a perfect job.

    For the reg keys:

    [HKEY_CURRENT_USER\Software\ODSoft\Log\KNCBDACTRL]
    "bInfo"=dword:00000000
    "bInfo2"=dword:00000000
    "bWarn"=dword:00000001
    "bError"=dword:00000001
    "bDebug"=dword:00000000
    "LogFile"=""

    I changed the settings in that region, but as I said, I got no file produced. I will check this again as soon I got access to the server.

    Do you still need the test without CI and or CAM connected? Because next week I will visit my brother in law, so I will have physical access to the server and could do such tests.
    Just give me a message if you need them.

    Have a good night.

    Django
     

    chr0non

    Portal Member
    September 11, 2011
    39
    5
    Hi mm,

    I imagine you are correct - all my switches will sit pretty much permanently on port 2 since we rarely watch channels not on Astra2.

    I've rerun the test sequence with your latest DLL, except this time :

    For each tuner
    Scan Astra2 (Level1AB) - seemed to work
    Scan Astra1 (Level1AA) - seemed to work

    Then for each tuner
    Tuned an SD channel on Astra2 - worked OK
    Tuned an HD (DVB-S2) channel on Astra2 - failed
    Tuned an SD channel on Astra1 - failed
    Tuned an SD channel on Astra2 again - worked OK

    I've included the Debugview log in the attached logs, although I'm not sure it has much value from me since I have no CI cards attached.

    Hope this helps.

    Regards
    C
     

    Users who are viewing this thread

    Top Bottom