manio / vdr-plugin-dvbapi

VDR dvbapi plugin for use with OSCam
http://www.streamboard.tv/wbb2/thread.php?threadid=40060
GNU General Public License v2.0
58 stars 25 forks source link

Reconnect to OSCAM if an error was received (fixes an issue when usin… #144

Closed ua0lnj closed 1 year ago

ua0lnj commented 1 year ago

…g an adapter offset if one of the clients is disconnected).

ua0lnj commented 1 year ago

Start 1 vdr, test encrypt channels. Start 2 vdr, test encrypt channels. Select free channel on 1 vdr. Select free channel on 2 vdr. Stop 2 vdr. Select encrypt channel on 1 vdr. No decoding. Error of dvbapi in log. The 2 vdr close all connection on oscam then exited. The 1 vdr need reconnecting to oscam.

haarm commented 1 year ago

Do you use the parameter -0 ?

manio commented 1 year ago

@ua0lnj Thanks, is it ok to merge regarding @haarm comment?

ua0lnj commented 1 year ago

Yes. Example. 1 vdr -o2. 2 vdr -o8. You will get the same effect if: 1- vdr -o2 2- TVH (can't -o options)

haarm commented 1 year ago

I also use 4 VDRs with dvbapi and have no problems

ua0lnj commented 1 year ago

You try stop vdr? If all vdr works, no problems. And I use extended cw mode, with aes128 keys. Maybe this is the problem. If you confirm that there is no such problem with des/aes keys (not extended cw), I will continue the tests.

ua0lnj commented 1 year ago

I tested des keys with disabled extended cw, and have same result. When I turn off the second client, the first one stops working. Latest oscam. Anyway, restarting the connection on error would be ok.

manio commented 1 year ago

This PR looks fine for me, merging, thanks @ua0lnj