Project

General

Profile

Code Word Client entries

Added by Andy SS about 11 years ago

Can someone explain how Code Word Client entries are processed/used?

For example, I have two entries in my TVHeadend server's CSA section for CWC's. I have two DVB-S cards and wanted to know if I am watching one channel on one client utilizing the first DVB-S card, then wanted to watch another channel on another client utilizing the second DVB-S card, does the first card utilize the first CWC entry and the second card utilize the second CWC entry? If not, what does happen?

Thanks.


Replies (3)

RE: Code Word Client entries - Added by Baum K about 11 years ago

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

RE: Code Word Client entries - Added by jenus whee about 11 years ago

Iḿ trying to do the same for SkyUK channels, but here 0960 and 0963 seem to have the same pid:

1280 CANDS (0x0960) [0x00000000]0x961 (0x0961) [0x00000000]NDS (0x0963) [0x00000000]

Any solution for this problem?

Thanks,

Jenus

RE: Code Word Client entries - Added by Baum K about 11 years ago

For future readers, let's have a look on Kev' tutorial :

https://tvheadend.org/boards/4/topics/9699

    (1-3/3)