View Full Version : CcCam PreRelease 2 FeedBacks!!!
Well Done Crew :respect-020:
Keep up Good Work
All Tester Feedback WelCoMe :woohoo-022::woohoo-022:
This version works good for me But Please Be Carefull While editing cccam.cfg file because if you are doing Copy-Paste from another .cfg file from InCubusCamd etc. IF They are not at same order so obviously It will not Work
For your info ;)
s_kates81
29-05-2009, 05:22 AM
how will it work then? i guess the c line has to be entered the same way as it's entered in dreambox cccam.cfg file
Carp95
29-05-2009, 07:19 AM
When giving feedback please report like this:
1 - Local or remote (hops)
2 - CCcam server version
3 - Actual F line in server
4 - Actual C line in cfg
5 - CAID thats giving troubles
Tarzan
29-05-2009, 07:49 AM
When giving feedback please report like this:
1 - Local or remote (hops)
2 - CCcam server version
3 - Actual F line in server
4 - Actual C line in cfg
5 - CAID thats giving troubles
I don't expect people to post 3 and 4 in an open forum, do you?
DJBlu
29-05-2009, 09:33 AM
This version is working alot faster.
Sky NDS is working better but still a little freezing.
Smudger
29-05-2009, 09:37 AM
It still only one line in the Cfg file or are we able to use multiple?
Smudger
Carp95
29-05-2009, 10:02 AM
I don't expect people to post 3 and 4 in an open forum, do you?
It's just for settings Tarzan could be something like this:
F: userx userz 3 0 0 { 0:0:2, 0622 }
C: ipnumber port userx userz no { 0:0:2, 0622 }
Info in Red is importend rest isn't
medmed
29-05-2009, 10:11 AM
hello
@NeotionBox
in CS mode to CCcam server 2.0.11 (hop1 & hop2) i have :
astra :
all channel ca*n***** are ok and very good zapping but no HD .
all channel pre*miere are ok and very good zapping but no HD .
hotbird :
all T*S*R swiss are ok full and HD swiss ok .
all JSC sport is ok very good zapping
A*R*T out (via*ccess system)
all sky*it ok no HD channel .
all cy*fra+ ok HD ok .
all bi*s out .
all nova out .
all oran*getv out.
thor 1°W :
all is out .
atlantic bird 5°w :
all bis out .
all oran*geTV out.
nilesat 7°w:(irde*to system)
all showti*me out.
all ar*t out.
all jsc sport out .
astra 28,2°E:
all sk*yuk out.
this is my test.
kanber_kav
29-05-2009, 10:26 AM
thanks. All developers.
hfmls
29-05-2009, 11:42 AM
all developers ? ahahha :D thanks developer. :) mower from mbox
bully2
29-05-2009, 11:52 AM
thanks developer. :respect-050:
how will it work then? i guess the c line has to be entered the same way as it's entered in dreambox cccam.cfg file
yes, It is same with Dreambox cccam.cfg
My mistake I was try to say from IncubusCamd to Cccam LOL
Sorry
Gone_Fishing
29-05-2009, 02:07 PM
hello
@NeotionBox
in CS mode to CCcam server 2.0.11 (hop1 & hop2) i have :
astra :
all channel ca*n***** are ok and very good zapping but no HD .
all channel pre*miere are ok and very good zapping but no HD .
hotbird :
all T*S*R swiss are ok full and HD swiss ok .
all JSC sport is ok very good zapping
A*R*T out (via*ccess system)
all sky*it ok no HD channel .
all cy*fra+ ok HD ok .
all bi*s out .
all nova out .
all oran*getv out.
thor 1°W :
all is out .
atlantic bird 5°w :
all bis out .
all oran*geTV out.
nilesat 7°w:(irde*to system)
all showti*me out.
all ar*t out.
all jsc sport out .
astra 28,2°E:
all sk*yuk out.
this is my test.
What are you comparing this to ?
Do you have a setup where they are all working perfectly so you know its a problem with the release and not your server ?
It would be good to here feedback from someone running a dreambox and azbox on the same server using cccam that way you know its a problem with the azbox release and nothing else
TNT
s_kates81
29-05-2009, 02:18 PM
my clines are not working in the cccam. I've checked all. They are working on incubuscamd though. also, i read something like chmod which i didn't do, can someone tell me if it's the reason that my clines are not working? if so, how to do the chmod?
I usually change with my FTP program called flashfxp
happyhammer
29-05-2009, 02:36 PM
my clines are not working in the cccam. I've checked all. They are working on incubuscamd though. also, i read something like chmod which i didn't do, can someone tell me if it's the reason that my clines are not working? if so, how to do the chmod?
use winscp, its the easiest tool for windows users to use with linux.
just select file, properties and make the changes.
DJBlu
29-05-2009, 02:37 PM
my clines are not working in the cccam. I've checked all. They are working on incubuscamd though. also, i read something like chmod which i didn't do, can someone tell me if it's the reason that my clines are not working? if so, how to do the chmod?
You need to Telnet your box.
search for putty on g00gle
With this software input your box's IP and port 23
Login with root, if you haven't changed your password and you are on the latest firmware then you won't need a password.
once logged into the box
type cd /EMU/OpenXCAS/CCcamCAS/
then
type chmod 755 *
If you want to set your password you can whilst in there
type
Passwd
then follow the prompt.
:D
hi all . i have tried all method in here i cant get the cccam to work on my box. same line works on incubus. i have tried my dreambox c line . i copied it didnot work i wrote it did not work i copied the whole cfg file to cccam did not work . can some body please upload a working cfg file , not with there info oveousley if possible please..thanks
spikes
29-05-2009, 05:28 PM
1 - remote 1 hop
2 - CCcam version 2.11
F: userx userz 3 0 0 {0:0:3}
C: ******.***-ass.net **000 *****test passwrd
5 - CAID thats giving troubles 0100:00006a 0622:000000 No picture
s_kates81
29-05-2009, 06:09 PM
You need to Telnet your box.
search for putty on g00gle
With this software input your box's IP and port 23
Login with root, if you haven't changed your password and you are on the latest firmware then you won't need a password.
once logged into the box
type cd /EMU/OpenXCAS/CCcamCAS/
then
type chmod 755 *
If you want to set your password you can whilst in there
type
Passwd
then follow the prompt.
:D
mate, i did it, but still not being able to de-scramble anything.
mate, i did it, but still not being able to de-scramble anything.
i am in the same boat as you are
have you deactive the incubus by blue botton?
it should be like this -> #incubusCamd
yes done all that been trying this sh'@@ all day no luck
happyhammer
29-05-2009, 08:15 PM
yes done all that been trying this sh'@@ all day no luck
try some known working channels like Sly It. Premiere. You maybe trying channels that just dont work yet. Sly UK for example.
start it via telnet so you can see some messages.
try some known working channels like Sly It. Premiere. You maybe trying channels that just dont work yet. Sly UK for example.
start it via telnet so you can see some messages.
thanks for your reply. i have been trying on canaldigital ned1 which alwayes is easey with dreambox i have tried on all diffrent package like i said trying all day, i think i need some help with cfg file , on file its sayes c line so i put the c line it dose not work . is there any other information needed in cfg file ? any 1?
happyhammer
29-05-2009, 08:48 PM
thanks for your reply. i have been trying on canaldigital ned1 which alwayes is easey with dreambox i have tried on all diffrent package like i said trying all day, i think i need some help with cfg file , on file its sayes c line so i put the c line it dose not work . is there any other information needed in cfg file ? any 1?
just a straightforward c line that you used with dreambox should work.
but only some cards/channels/caid's work. it just picks teh first CAID , it seems.
for example, premiere is working on the old nagra caid 1702
Premiere
[19:34:00]
[19:34:00] ReReading pmt.tmp
[19:34:00] ================================= =================================
[19:34:00] *ECM: CA ID: 0x1702 Nagravision -> CA PID: 0x1746
[19:34:00] ECM: CA ID: 0x1722 Nagravision -> CA PID: 0x1C47
[19:34:00] ECM: CA ID: 0x1833 Nagravision -> CA PID: 0x1846
[19:34:00] ECM: CA ID: 0x1834 Nagravision -> CA PID: 0x1C46
[19:34:00] ECM: CA ID: 0x09C4 NDS -> CA PID: 0x1B46
[19:34:00] ================================= =================================
[19:34:02] [cccam_client]->ECM to nottellingu.org CaID:0x1702 SID:0x002B ECM:0x
1746
[19:34:05] DCW: 98 21 95 4E 19 5D C4 3A 04 A2 14 BA 35 4C D2 53
[19:34:10] [cccam_client]->ECM to nottellingu.org CaID:0x1702 SID:0x002B ECM:0x
1746
[19:34:13] DCW: F5 8E 20 A3 4B 2B 79 EF 04 A2 14 BA 35 4C D2 53
[19:34:13] Remove card : 0x0100_12190000
[19:34:16] [cccam_client]->ECM to nottellingu.org CaID:0x1702 SID:0x002B ECM:0x
1746
[19:34:18] DCW: F5 8E 20 A3 4B 2B 79 EF 09 10 AD C6 6A 98 4E 50
[19:34:20] Remove card : No that card
SKY IT Cinema 1
[19:34:35]
[19:34:35] ReReading pmt.tmp
[19:34:35] ================================= =================================
[19:34:35] *ECM: CA ID: 0x0919 NDS -> CA PID: 0x0640
[19:34:35] *ECM: CA ID: 0x093B NDS -> CA PID: 0x06A4
[19:34:35] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
[19:34:36] DCW: 76 24 A1 3B E5 CC EE 9F 00 00 00 00 00 00 00 00
[19:34:37] Remove card : No that card
[19:34:37] Add card : 0x0100
[19:34:42] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
[19:34:43] DCW: 00 00 00 00 00 00 00 00 C6 CE 16 AA 97 AB 40 82
[19:34:50] Remove card : No that card
[19:34:50] Add card : 0x0100
[19:34:52] Remove card : No that card
[19:34:52] Add card : 0x0100
[19:34:52] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
[19:34:53] DCW: 5C 0C 64 CC 4F 20 9C 0B 00 00 00 00 00 00 00 00
[19:34:58] Remove card : No that card
[19:34:58] Add card : 0x0604
[19:35:02] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
nobbystyles
29-05-2009, 09:10 PM
Some cccam servers work for me, others don't, maybe cccam version compatibility issues?( i will look into it in more detail)
Either way, thanks to all the lads making this possible, your work is much appriciated.
nobbystyles
29-05-2009, 09:12 PM
just a straightforward c line that you used with dreambox should work.
but only some cards/channels/caid's work. it just picks teh first CAID , it seems.
for example, premiere is working on the old nagra caid 1702
Premiere
[19:34:00]
[19:34:00] ReReading pmt.tmp
[19:34:00] ================================= =================================
[19:34:00] *ECM: CA ID: 0x1702 Nagravision -> CA PID: 0x1746
[19:34:00] ECM: CA ID: 0x1722 Nagravision -> CA PID: 0x1C47
[19:34:00] ECM: CA ID: 0x1833 Nagravision -> CA PID: 0x1846
[19:34:00] ECM: CA ID: 0x1834 Nagravision -> CA PID: 0x1C46
[19:34:00] ECM: CA ID: 0x09C4 NDS -> CA PID: 0x1B46
[19:34:00] ================================= =================================
[19:34:02] [cccam_client]->ECM to nottellingu.org CaID:0x1702 SID:0x002B ECM:0x
1746
[19:34:05] DCW: 98 21 95 4E 19 5D C4 3A 04 A2 14 BA 35 4C D2 53
[19:34:10] [cccam_client]->ECM to nottellingu.org CaID:0x1702 SID:0x002B ECM:0x
1746
[19:34:13] DCW: F5 8E 20 A3 4B 2B 79 EF 04 A2 14 BA 35 4C D2 53
[19:34:13] Remove card : 0x0100_12190000
[19:34:16] [cccam_client]->ECM to nottellingu.org CaID:0x1702 SID:0x002B ECM:0x
1746
[19:34:18] DCW: F5 8E 20 A3 4B 2B 79 EF 09 10 AD C6 6A 98 4E 50
[19:34:20] Remove card : No that card
SKY IT Cinema 1
[19:34:35]
[19:34:35] ReReading pmt.tmp
[19:34:35] ================================= =================================
[19:34:35] *ECM: CA ID: 0x0919 NDS -> CA PID: 0x0640
[19:34:35] *ECM: CA ID: 0x093B NDS -> CA PID: 0x06A4
[19:34:35] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
[19:34:36] DCW: 76 24 A1 3B E5 CC EE 9F 00 00 00 00 00 00 00 00
[19:34:37] Remove card : No that card
[19:34:37] Add card : 0x0100
[19:34:42] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
[19:34:43] DCW: 00 00 00 00 00 00 00 00 C6 CE 16 AA 97 AB 40 82
[19:34:50] Remove card : No that card
[19:34:50] Add card : 0x0100
[19:34:52] Remove card : No that card
[19:34:52] Add card : 0x0100
[19:34:52] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
[19:34:53] DCW: 5C 0C 64 CC 4F 20 9C 0B 00 00 00 00 00 00 00 00
[19:34:58] Remove card : No that card
[19:34:58] Add card : 0x0604
[19:35:02] [cccam_client]->ECM to nottellingu.org CaID:0x0919 SID:0x2B5D ECM:0x
0640
Yes, i get the same with NDS sky 28e
kanber_kav
29-05-2009, 09:23 PM
How do I read file camd.socket. Please give a source.
kleinerjunge
29-05-2009, 09:35 PM
Hi!
Still getting "Segmentation fault" after starting CCcam manually via telnet!
Whats wrong???
cu
Kj
satstarter
29-05-2009, 09:37 PM
first of all thanx to devolpers for this CCcam :applause-003:
2 things that i find not working dutch C+ not working is seca3 i believe
and also recording don't work if i try to record using CCcam de channel simply stops this was also a problem using incubus with Mgcamd the recordings works fine :respect-050:
kleinerjunge
29-05-2009, 09:49 PM
Hi!
Still getting "Segmentation fault" after starting CCcam manually via telnet!
Whats wrong???
cu
Kj
Further what I recognized, is that cccam_module on my PC has 96548 Bytes. On Azbox, after copying it via FTP, it has 96777 Bytes.
Is that normal??
cu
KJ
Tarzan
29-05-2009, 10:30 PM
thanks for your reply. i have been trying on canaldigital ned1 which alwayes is easey with dreambox i have tried on all diffrent package like i said trying all day, i think i need some help with cfg file , on file its sayes c line so i put the c line it dose not work . is there any other information needed in cfg file ? any 1?
Don't you need your "F" line also?
kleinerjunge
29-05-2009, 10:46 PM
Further what I recognized, is that cccam_module on my PC has 96548 Bytes. On Azbox, after copying it via FTP, it has 96777 Bytes.
Is that normal??
cu
KJ
Ok, it was the file size. My FTP client did something wrong. Copied it via SSH and Bytes are correct. CCcam working now.
cu
KJ
hfmls
30-05-2009, 04:08 AM
where are the crying babies? that posted dozens of posts crying about CCC never released, opensat liar, etc etc ?
strange ... possible tested CCC at last, and stayed quiet waiting for other releases without feedback.... oh well.
postbus24
30-05-2009, 06:42 AM
Further what I recognized, is that cccam_module on my PC has 96548 Bytes. On Azbox, after copying it via FTP, it has 96777 Bytes.
Is that normal??
cu
KJ
yes that is normal if your ftp client settings are on ASCII, switch it to BIN or BINARY and your problem is solved.
kanber_kav
30-05-2009, 08:08 AM
* Softcam plugin to VDR (C++)
*
* This code is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Or, point your browser to http://www.gnu.org/copyleft/gpl.html
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <vdr/pat.h>
#include "cc.h"
#include "network.h"
#define LIST_ONLY 0x03 /* CA application should clear the list when an 'ONLY' CAPMT object is received, and start working with the object */
// -- cCCcamCard ---------------------------------------------------------------
class cCCcamCard : public cMutex {
private:
int ccam_fd;
int cardnum, pid, pmtlen;
bool newcw;
cTimeMs timecw;
unsigned char *capmt, cw[16];
const char *path;
cCondVar cwwait;
public:
cCCcamCard(void);
~cCCcamCard();
void Setup(int num, const char *Path);
bool Connect(void);
void Disconnect(void);
bool Connected(void) { return ccam_fd>=0; }
void WriteCaPmt(void);
void NewCaPmt(int p, const unsigned char *pmt, int len);
int Pid(void) { return pid; }
bool GetCw(unsigned char *Cw, int timeout);
void NewCw(const unsigned char *Cw);
};
cCCcamCard::cCCcamCard(void)
{
cardnum=-1; path=0;
ccam_fd=-1; capmt=0; newcw=false; pid=-1;
}
cCCcamCard::~cCCcamCard()
{
Disconnect();
free(capmt);
}
void cCCcamCard::Setup(int num, const char *Path)
{
cardnum=num; path=Path;
}
void cCCcamCard::Disconnect(void)
{
cMutexLock lock(this);
close(ccam_fd);
ccam_fd=-1; newcw=false;
}
bool cCCcamCard::Connect(void)
{
cMutexLock lock(this);
Disconnect();
ccam_fd=socket(AF_LOCAL,SOCK_STRE AM,0);
if(!ccam_fd) {
PRINTF(L_CC_CCCAM,"%d: socket failed: %s",cardnum,strerror(errno));
return false;
}
sockaddr_un serv_addr_un;
memset(&serv_addr_un,0,sizeof(serv_addr_u n));
serv_addr_un.sun_family=AF_LOCAL;
snprintf(serv_addr_un.sun_path,si zeof(serv_addr_un.sun_path),path, cardnum);
if(connect(ccam_fd,(const sockaddr*)&serv_addr_un,sizeof(serv_addr_un) )!=0) {
PRINTF(L_CC_CCCAM,"%d: connect failed: %s",cardnum,strerror(errno));
Disconnect();
return false;
}
PRINTF(L_CC_CCCAM,"%d: opened camd socket",cardnum);
return true;
}
void cCCcamCard::WriteCaPmt(void)
{
cMutexLock lock(this);
if(capmt) {
for(int retry=2; retry>0; retry--) {
if(!Connected() && !Connect()) break;
int r=write(ccam_fd,capmt,pmtlen);
if(r==pmtlen) {
newcw=false;
break;
}
PRINTF(L_CC_CCCAM,"%d: write failed: %s",cardnum,strerror(errno));
Disconnect();
}
}
}
void cCCcamCard::NewCaPmt(int p, const unsigned char *pmt, int len)
{
cMutexLock lock(this);
free(capmt); pid=0; newcw=false;
capmt=MALLOC(unsigned char,len);
if(capmt) {
memcpy(capmt,pmt,len);
pmtlen=len;
capmt[6]=LIST_ONLY;
pid=p;
WriteCaPmt();
}
}
void cCCcamCard::NewCw(const unsigned char *Cw)
{
cMutexLock lock(this);
if(memcmp(cw,Cw,sizeof(cw))) {
memcpy(cw,Cw,sizeof(cw));
newcw=true;
timecw.Set();
cwwait.Broadcast();
}
}
bool cCCcamCard::GetCw(unsigned char *Cw, int timeout)
{
cMutexLock lock(this);
if(newcw && timecw.Elapsed()>3000)
newcw=false; // too old
if(!newcw)
cwwait.TimedWait(*this,timeout);
if(newcw) {
memcpy(Cw,cw,sizeof(cw));
newcw=false;
return true;
}
return false;
}
// -- cCardClientCCcam ---------------------------------------------------------
class cCardClientCCcam : public cCardClient, private cThread {
private:
cNetSocket so;
cCCcamCard card[4];
int pmtversion;
int failedcw;
char *socketpath;
protected:
virtual bool Login(void);
virtual void Action(void);
public:
cCardClientCCcam(const char *Name);
~cCardClientCCcam();
virtual bool Init(const char *CfgDir);
virtual bool ProcessECM(const cEcmInfo *ecm, const unsigned char *data, unsigned char *Cw, int cardnum);
};
static cCardClientLinkReg<cCardClientCCcam> __ncd("cccam");
cCardClientCCcam::cCardClientCCca m(const char *Name)
:cCardClient(Name)
,cThread("CCcam listener")
,so(DEFAULT_CONNECT_TIMEOUT,2,360 0,true)
{
pmtversion=0; socketpath=0;
}
cCardClientCCcam::~cCardClientCCc am()
{
Cancel(3);
free(socketpath);
}
bool cCardClientCCcam::Init(const char *config)
{
cMutexLock lock(this);
int num=0;
char path[256];
if(!ParseStdConfig(config,&num)
|| sscanf(&config[num],":%255[^:]",path)!=1) return false;
PRINTF(L_CC_CORE,"%s: socket=%s",name,path);
socketpath=strdup(path);
for(int i=0; i<4; i++) card[i].Setup(i,socketpath);
return Immediate() ? Login() : true;
}
bool cCardClientCCcam::Login(void)
{
cMutexLock lock(this);
so.Disconnect();
if(!so.Bind("127.0.0.1",port)) return false;
PRINTF(L_CC_CCCAM,"Bound to port %d, starting UDP listener",port);
Start();
return true;
}
bool cCardClientCCcam::ProcessECM(cons t cEcmInfo *ecm, const unsigned char *data, unsigned char *cw, int cardnum)
{
cMutexLock lock(this);
if((!so.Connected() && !Login()) || !CanHandle(ecm->caId)) return false;
static const unsigned char pmt[] = {
0x9f,0x80,0x32,0x82,0xFF,0xFF,
0x01,
#define PRG_POS 7
0xFF,0xFF, // prg-nr
#define VERS_POS 9
0xFF, // version
#define LEN_POS 10
0xFF,0xFF, // prg-info-len
0x01, // ca pmt command
#define PRIV_POS 13
0x81,0x08,0x00,0x00,0xFF,0x00,0xF F,0xFF,0xFF,0xFF, // private descr
#define DMX_POS 23
0x82,0x02,0xFF,0xFF, // demuxer stuff
#define PID_POS 27
0x84,0x02,0xFF,0xFF // pmt pid
};
unsigned char capmt[2048];
memcpy(capmt,pmt,sizeof(pmt));
int wp=sizeof(pmt);
int len=wp-LEN_POS-2;
capmt[PRG_POS]=ecm->prgId****8;
capmt[PRG_POS+1]=ecm->prgId&0xff;
capmt[VERS_POS]=pmtversion;
pmtversion=(pmtversion+1)&0x1f;
capmt[PRIV_POS+4]=cardnum;
capmt[PRIV_POS+6]=ecm->transponder****8;
capmt[PRIV_POS+7]=ecm->transponder&0xFF;
capmt[PRIV_POS+8]=ecm->provId****8;
capmt[PRIV_POS+9]=ecm->provId&0xFF;
capmt[DMX_POS+2]=1<<cardnum ;
capmt[DMX_POS+3]=cardnum ;
capmt[PID_POS+2]=ecm->ecm_pid****8;
capmt[PID_POS+3]=ecm->ecm_pid&0xFF;
bool streamflag=1;
#if APIVERSNUM >= 10500
int casys[2];
#else
unsigned short casys[2];
#endif
casys[0]=ecm->caId;
casys[1]=0;
int n=GetCaDescriptors(ecm->source,ecm->transponder,ecm->prgId,casys,sizeof(capmt)-wp,&capmt[wp],streamflag);
if(n<=0) {
PRINTF(L_CC_CCCAM,"no CA descriptor for caid %04x sid %d prov %04x",ecm->caId,ecm->prgId,ecm->provId);
return false;
}
len+=n; wp+=n;
capmt[wp++]=0x01;
capmt[wp++]=0x0f;
capmt[wp++]=cardnum; // cccam uses this one as PID to program ca0
capmt[wp++]=0x00; //es_length
capmt[wp++]=0x06; //es ca_pmt_cmd_id
capmt[LEN_POS]=((len&0xf00)****8);
capmt[LEN_POS+1]=(len&0xff);
capmt[4]=(wp-6)****8;
capmt[5]=(wp-6)&0xff;
cCCcamCard *c=&card[cardnum];
int timeout=700;
if(ecm->ecm_pid!=c->Pid() || !c->Connected()) { // channel change
PRINTF(L_CC_CCCAM,"sending capmts ");
c->NewCaPmt(ecm->ecm_pid,capmt,wp);
timeout=3000;
}
if(!c->GetCw(cw,timeout)) {
// somethings up, so we will send capmt again.
c->WriteCaPmt();
if(!c->GetCw(cw,1000)) {
PRINTF(L_CC_CCCAM,"%d: FAILED ECM !",cardnum);
c->Disconnect();
failedcw++;
if(failedcw>=10) {
// CCcam is having problems lets mark it for a restart....
FILE *f=fopen("/tmp/killCCcam","w+");
fclose(f);
failedcw=0;
}
return false;
}
}
PRINTF(L_CC_CCCAM,"%d: GOT CW !",cardnum);
failedcw=0;
return true;
}
void cCardClientCCcam::Action(void)
{
unsigned char cw[18];
while(Running()) {
if(so.Read(cw,sizeof(cw))==sizeof (cw)) {
LDUMP(L_CC_CCCAM,cw+2,16,"got: %02x%02x",cw[0],cw[1]);
if(cw[1]==0x0f && cw[0]<4)
card[cw[0]].NewCw(cw+2);
}
}
}
VDR-SC cccam.c file.
kanber_kav
30-05-2009, 08:09 AM
local server connect.
Tiptronic
30-05-2009, 01:21 PM
so is that the cccam source code for sigma cpu's? not that I understand anything about programming
DJBlu
30-05-2009, 01:25 PM
so is that the cccam source code for sigma cpu's? not that I understand anything about programming
Its source code for a VDR plugin which is a linux tv application.
postbus24
30-05-2009, 06:40 PM
so is that the cccam source code for sigma cpu's? not that I understand anything about programming
That is the source code for VDR to be able to communicate with CCcam.
VDR runs on an odrinary 386 pc and so is the original CCcam.
The piece of code you can see above is to make them talk to each oter.
For AZBOX/sigma there is no real CCcam executable therefore the source code above is sadly enough useless.
goran
30-05-2009, 08:00 PM
Yes but what if the originators of CCcam are talking to Azbox HD guys?!? ;) :sifone:
snakie
31-05-2009, 06:05 PM
where are the crying babies? that posted dozens of posts crying about CCC never released, opensat liar, etc etc ?
strange ... possible tested CCC at last, and stayed quiet waiting for other releases without feedback.... oh well.
Where do you see an official CCC for Azbox? thats only a port of the protocol from Mower to work with sigma cpu instructions.
So its not CCC but Incubus little brother :)
Today Something Wrong with this...
works a minute and than alloff a sudden It says Server Gone offline
Very interesting
P.s Irdeto-Cryptoworks
philipz
02-06-2009, 04:16 AM
Much thanks to the developers for this!!!!
Iam getting hit and miss on this with SKY It etc, some channels work some dont , but i do have to keep restarting teh cam...
anyone else or have missed somthing?
philipz
Carp95
02-06-2009, 07:31 AM
Much thanks to the developers for this!!!!
Iam getting hit and miss on this with SKY It etc, some channels work some dont , but i do have to keep restarting teh cam...
anyone else or have missed somthing?
philipz
So far only pre-release m8 ( just to let criticaster see that it works :beatdeadhorse5:)
Wait for the first beta:respect-013:
Tiptronic
02-06-2009, 08:43 PM
good to know they are working on it.
happyhammer
05-06-2009, 01:33 PM
since pre-release 3 came out, thought i'd give it a quick test, but it didn't work. So i put back the pre rel 2 cccam_module and that didn't work. Using same C line, incubus works.
dunno what i've done but i think its similar to what others here before have experienced,
starting cccam in a telnet is only get this far.
[12:18:29] [cccam_client] Creating cccam worker thread ...OK
[12:18:29] [cccam_client] Creating openxcas API message thread ...OK
[12:18:29] [cccam_client] Trying to connect to server (xxx.xxx.xxx. xx:yyyy)
[12:18:29] [cccam_client] Connected to (xxx.xxx.xxx. xx:yyyy) ...
[12:18:31] [cccam_client] Creating cccam worker thread for (xxx.xxx.xxx. xx:yyyy) .
..OK
previously, after reaching this point, i should get something like this ( see previous post)
ReReading pmt.tmp
[19:34:00] ================================= =================================
[19:34:00] *ECM: CA ID: 0x1702 Nagravision -> CA PID: 0x1746
goran
05-06-2009, 01:36 PM
Viaccess works for me, for instance, but not NDS or Irdeto2...
Tarzan
05-06-2009, 02:15 PM
since pre-release 3 came out, thought i'd give it a quick test, but it didn't work. So i put back the pre rel 2 cccam_module and that didn't work. Using same C line, incubus works.
dunno what i've done but i think its similar to what others here before have experienced,
starting cccam in a telnet is only get this far.
[12:18:29] [cccam_client] Creating cccam worker thread ...OK
[12:18:29] [cccam_client] Creating openxcas API message thread ...OK
[12:18:29] [cccam_client] Trying to connect to server (xxx.xxx.xxx. xx:yyyy)
[12:18:29] [cccam_client] Connected to (xxx.xxx.xxx. xx:yyyy) ...
[12:18:31] [cccam_client] Creating cccam worker thread for (xxx.xxx.xxx. xx:yyyy) .
..OK
previously, after reaching this point, i should get something like this ( see previous post)
ReReading pmt.tmp
[19:34:00] ================================= =================================
[19:34:00] *ECM: CA ID: 0x1702 Nagravision -> CA PID: 0x1746
CCCam worked for me only once via telnet... Now I use the yellow button via the remote and I am using firmware 1759 and it works brilliantly...
happyhammer
05-06-2009, 02:36 PM
CCCam worked for me only once via telnet... Now I use the yellow button via the remote and I am using firmware 1759 and it works brilliantly...
might try that. when i tried to downgrade via the internet last time, it failed. Maybe thats related.
here's some more info, i set up a local dm500 as server and ran it in debug to get logs shown below. seems the cccam client makes the connection but no ecm requests.
incubus client to cccam server 2.0.11
14:21:41.772 CCcam: new tcp client from xx.xx.xx.xx
14:21:42.258 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:21:42.271 CCcam: user user1 login attempt from xx.xx.xx.xx
14:21:42.433 CCcam: local ecm <- card /dev/sci0 ok
14:21:42.433 CCcam: cam[0] ecm even ok caid:0x961 id:0x0 pid:0x507 SKY UK (28E)
14:21:42.694 CCcam: client user1@xxxxxxxxxxx, running CCcam 2.0.11
14:21:42.696 CCcam: 1 cards --> client xx.xx.xx.xx(user1)
14:21:51.367 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:21:51.541 CCcam: local ecm <- card /dev/sci0 ok
14:21:51.542 CCcam: cam[0] ecm odd ok caid:0x961 id:0x0 pid:0x507 SKY UK (28E)
14:21:51.543 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:21:51.544 CCcam: local ecm <- card /dev/sci0 cw's from cache
14:21:51.546 CCcam: client user1 ecm request for handler 0x64 0x961(0x0) sid 0x1
3ef ok
14:21:58.446 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:21:58.621 CCcam: local ecm <- card /dev/sci0 ok
14:21:58.621 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:21:58.621 CCcam: local ecm <- card /dev/sci0 cw's from cache
14:21:58.622 CCcam: client user1 ecm request for handler 0x64 0x961(0x0) sid 0x1
3ef ok
cccam client to same server as above
14:18:44.892 CCcam: new tcp client from xx.xx.xx.xx
14:18:44.901 CCcam: user user1 login attempt from xx.xx.xx.xx
14:18:44.949 CCcam: client user1@xxxxxxxx, running CCcam 2.0.11
14:18:44.950 CCcam: 1 cards --> client xx.xx.xx.xx(user1)
14:18:46.168 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:18:46.342 CCcam: local ecm <- card /dev/sci0 ok
14:18:46.343 CCcam: cam[0] ecm even ok caid:0x961 id:0x0 pid:0x507 SKY UK (28E)
14:18:55.276 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:18:55.449 CCcam: local ecm <- card /dev/sci0 ok
14:18:55.450 CCcam: cam[0] ecm odd ok caid:0x961 id:0x0 pid:0x507 SKY UK (28E)
14:19:02.355 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:19:02.528 CCcam: local ecm <- card /dev/sci0 ok
14:19:02.529 CCcam: cam[0] ecm even ok caid:0x961 id:0x0 pid:0x507 SKY UK (28E)
14:19:10.454 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
happyhammer
05-06-2009, 03:12 PM
actually my last post was a bit confuing since the same channel was selected on both the dm500 and azbox. so by selecting a FTA channel on server, thats eliminated the unnesary messages,.
When incubus is run you get the following after a connection is made
14:51:52.281 CCcam: local ecm -> card /dev/sci0 0x961(0x000) sid 0x13ef
14:51:52.455 CCcam: local ecm <- card /dev/sci0 ok
14:51:52.456 CCcam: client user1 ecm request for handler 0x64 0x961(0x0) sid 0x13ef ok
with cccam client , you get nothing as it doesn't send anything.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.