Hi Andy,
Hope it's not too late to give you a response. In any case i hope the thread can be useful.
First i 'm not sure we are fine with notion of "client" so here is a little fix to be clear :
CWC is a client, so each line is connected to server.
TVH (stand for Tvheadend) is also a server, a stream server. It's not a client.
So we can have a TVH server with several DVB-x devices, and one or several TVH clients connected to.
In any case, CWC doesn't care about how many DVB devices or services TVH is reading.
+So here is how does it works :+
The CWC client is using the newcamd protocol, so the server must be a newcamd compliant ( newcamd himself or oscam for example)
When CWC is starting, it's connecting to servers and reads the several CAID that it can be served : he puts that in memory.
(CAID = Conditional Access ID, that means the "scrambled system number" or : the key identifier)
When you 're watching a mapped DVB service , TVH will check if it's scrambled or not.
If yes : TVH reads the content of the "Prefered CAID" column of this service.
(Please have a look to Configration / DVB Inputs / Tv Adapters / <DVB device > / Services )
TVH gets the "Prefered CAID", checks in his memories, and remember where is the server that can serve this CAID, so he asks to the server " would you please give my the keys for "this CAID" ? "
(not really true but most easier to understand)
If the newcamd server has the key, it says " Ok here is ..." , and if not , "I'm sorry".
If yes : TVH gets the key and start descrambling.
By this way you understand an important thing :
- you must know the CAID that your subscription access card serves.
- you must set this info in the "Prefered CAID" column of you service.
To know the "Prefered CAID" value , you must click on the "service detail" button . You have to match your subscription to the CAID value.
So , we also understand that we can have several "CAID" server, and 1,2,3,... DVB device because there is no relation.
If you have 2 TVH clients connected to 1 TVH server with 2 DVB devices, CWC will ask 2 keys to each newcamd server you are connected to, depending the matching of "Prefered CAID" value and them.
Hope this helps,
Baum K