Project

General

Profile

[Solved] TVHeadend not connecting to Oscam

Added by belfbri belfbri over 10 years ago

I'm having a really frustrating issue whereby TVHeadend will not connect to Oscam. I have tried now on both XBMCbuntu (14.04) which is the install I'd really like to get it to work on, and have also tried an install of Ubuntu 12.04. Both were fresh installs.

My oscam.user file looks like this:
[account]
user = user1
pwd = password1
group = 1
ident = 0100:000000
caid = 0100

The cccam section of the oscam.conf looks like this:
[cccam]
port = 40000
version = 1.2.3
build = 1234
reshare = 2

And oscam.server:
[reader]
label = myserver
protocol = cccam
device = zzzzz.zzzzz.zzz,18002
user = yyyyyyy
password = xxxxxxx
group = 1
caid = 0100
cccversion = 2.1.4

I create a user on the Code Word Client tab in TVHeadend with hostname=127.0.0.1 port=40000 username=user1 password=password1 DESKey=01:02:03:04:05:06:07:08:09:10:11:12:13:14 and updatecard=yes. When I check the enable box, the text turns red rather than green. When I click save changes to enable it, I get the following in the System Log:
Jul 03 17:51:02.669 cwc: Attemping to connect to 127.0.0.1:40000
Jul 03 17:51:02.670 cwc: Connected to 127.0.0.1:40000
Jul 03 17:51:02.670 cwc: 127.0.0.1:40000: Wait login response: Invalid message size: 58058
Jul 03 17:51:02.670 cwc: Disconnected from 127.0.0.1:40000

And in the Live Log on Oscam I get the following:
2014/07/03 17:51:02 9F59D40 c illegal username received
2014/07/03 17:51:02 9F59D40 c anonymous disconnected from 127.0.0.1

Or sometimes this:
2014/07/03 17:42:06 9F59D40 c illegal username received
2014/07/03 17:42:06 9F59D40 c anonymous disconnected from 127.0.0.1
2014/07/03 17:42:09 9F5BB68 c encrypted cccam-client 127.0.0.1 rejected (invalid access)
2014/07/03 17:42:09 9F5BB68 c account 'cG￿Ĺ0￿iB￿¬v￿x￿#39;' not found!
2014/07/03 17:42:09 9F5BB68 c anonymous disconnected from 127.0.0.1

Is there maybe some dependency that I need to install? Any ideas why Oscam appears to be receiving trash as the username i.e. 'cG￿Ĺ0￿iB￿¬v￿x￿#39;' (incidentally, it's never the same jumble of characters for each error in the log even though the username is not changing.

Anyone seen this before or have an idea what the problem might be? Thanks in advance.


Replies (3)

RE: TVHeadend not connecting to Oscam - Added by Crazy Fin over 10 years ago

I have the same setup except that I am using "newcamd" instead of "cccam".

My setup works fine and the only actual difference I can see that in my "newcamd"-section of oscam.conf I have


[newcamd]
port = <the port number you have set in TVHeadend>@<your caid no>:000000
allowed = 127.0.0.1
key = <same key as you have in TVHeadend but without the colons>

The allowed = 127.0.0.1 is to allow connections from the same machine.

I am not sure if the setup for cccam would be the same.

RE: TVHeadend not connecting to Oscam - Added by belfbri belfbri over 10 years ago

The webif interface doesn't have a field for "Allowed" under CCCAM config so I'm guessing it's not relevant. Also, adding it anyway and restarting Oscam has not made any difference. Thanks for the suggestion.

RE: TVHeadend not connecting to Oscam - Added by belfbri belfbri over 10 years ago

I think I'm making some progress now. And I think I misunderstood how this is all supposed to connect together. I was trying to connect TVHeadend to Oscam on the port defined in the CCCam section of oscam.conf but if I've picked this up correctly TVHeadend can only use Newcamd, therefore I have to set my user on the Code Word Client tab to connect to Oscam on the Newcamd port. When I do that, the user does indeed turn green and appear to connect. Now I'm getting "No descrambler available" but I'll start a new post if I can't figure it out.

    (1-3/3)