Coder Social home page Coder Social logo

gfto / oscam Goto Github PK

View Code? Open in Web Editor NEW
103.0 38.0 67.0 21.99 MB

OSCam is an Open Source Conditional Access Module software. This repo is mirror of oscam SVN and my development area. The repo is synced with Oscam SVN every six hours.

Home Page: http://www.streamboard.tv/oscam/

License: GNU General Public License v3.0

CMake 1.09% HTML 7.34% Groff 2.23% Shell 0.65% Makefile 0.81% C 83.77% C++ 1.80% Objective-C 0.09% CSS 0.54% JavaScript 1.68%

oscam's Introduction

OSCam: Open Source Conditional Access Module
============================================


License
=======

OSCam: Open Source CAM
Copyright (C) 2009-2015 OSCam developers

OSCam is based on the Streamboard mp-cardserver 0.9d by dukat and
has been extended and worked on by many more since then.

This program 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 3 of the License, or
(at your option) any later version.

This program 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, see <http://www.gnu.org/licenses/>.

For the full text of the licese, please read COPYING file in OSCam
top directory or visit http://www.gnu.org/licenses/gpl-3.0.html


Version history
===============

OSCam history is accessible through Trac timeline at:
   http://www.streamboard.tv/oscam/timeline/


Repositories
============

SVN repository:
   svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn


Building OSCam from source
==========================

 - Get the lastest sources from SVN
    svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-trunk

 - Go to oscam-trunk directory.

 - Run `make config` to choose the features you want.

 - Run `make` to compile OSCam.

For more information and examples on using the build system, please
see README.build and README.config files.


Building OScam for different CPUs (cross-compilation)
=====================================================

First you need to install the target CPU toolchain. Already built toolchains
for various architectures can be downloaded from:

    http://www.streamboard.tv/oscam/wiki/crosscompiling/

In order to cross compile OSCam you need to set CROSS variable when
running make. For example to compile for SH4 architecture you need
to run: `make CROSS=sh4-linux-` or if your cross compilers are not
in your PATH - `make CROSS=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-`.


Dependencies
============

OSCam by default do not depend on external libraries except when compilation
with SSL is requested. In that case openssl (libcrypto) library must be
installed.

OSCam supports building with the following external dependencies:
  - libcrypto (libssl) - 'make USE_LIBCRYPTO=1'
  - libusb             - 'make USE_LIBUSB=1'
  - PCSC               - 'make USE_PCSC=1'
  - SH4 STAPI support  - 'make USE_STAPI=1'
  - SH4 STAPI5 support - 'make USE_STAPI5=1'
  - Coolapi support    - 'make USE_COOLAPI=1'
  - AZBOX support      - 'make USE_AZBOX=1'

For STAPI support you need to download liboscam_stapi.a library and place
it in stapi directory under oscam/ root dir. liboscam_stapi.a can be downloaded
from: http://www.streamboard.tv/wbb2/thread.php?threadid=28854

For STAPI5 support you need to download liboscam_stapi5.a library and place
it in stapi directory under oscam/ root dir. liboscam_stapi5.a can be downloaded
from: http://www.streamboard.tv/wbb2/thread.php?postid=541107#post541107

For more information and examples on using the build system, run `make help`.


Help and Support
================

man pages and configuration examples are in Distribution/doc directory.

You may visit our Trac system for tracking and filling bug reports.
   http://www.streamboard.tv/oscam/

If you experience any problems with OSCam, feel free to post in our support
forum under (mainly German and English language) at:
   http://www.streamboard.tv/wbb2/portal.php

Configuration wiki:
   http://www.streamboard.tv/wiki/index.php/OSCam/

oscam's People

Contributors

gfto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oscam's Issues

cannot change system time anymore

On x86_64 i cannot change system time anymore (backward only).
Last working release i found was 11233.

steps to reproduce:
run oscam
date --set 17:00:00
(clock should be in past, clock/date in future is working)

now check the date:
date

redo it without running oscam.

thanks.

new oscam build fails with conax cards

Dont know how to prove this but i have an old oscam which i built from source which has been running for ages, today i pulled a new tree, built this and then used the untouched scripts and same cards and wham NO channels working, get a 5000ms timeout then the "no matching reader"

any info i can pass to you to look into this, or somewhere to post this message

Nagra - card initializing error

Hi, I have a valid Nagra card, pcsc_Scan tells me:
Using reader plug'n play mechanism
Scanning present readers...
0: Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00

Fri Nov 8 13:48:29 2019
Reader 0: Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00
Event number: 0
Card state: Card removed,

root@raspberrypi:~# pcsc_scan
Using reader plug'n play mechanism
Scanning present readers...
0: Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00

Fri Nov 8 13:49:09 2019
Reader 0: Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00
Event number: 1
Card state: Card inserted,
ATR: 3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64

ATR: 3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64

  • TS = 3F --> Inverse Convention
  • T0 = FF, Y(1): 1111, K: 15 (historical bytes)
    TA(1) = 95 --> Fi=512, Di=16, 32 cycles/ETU
    125000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 156250 bits/s
    TB(1) = 00 --> VPP is not electrically connected
    TC(1) = FF --> Extra guard time: 255 (special value)
    TD(1) = 91 --> Y(i+1) = 1001, Protocol T = 1

TA(2) = 81 --> Protocol to be used in spec mode: T=1 - Unable to change - defined by interface bytes
TD(2) = 71 --> Y(i+1) = 0111, Protocol T = 1

TA(3) = FF --> IFSC: 255
TB(3) = 47 --> Block Waiting Integer: 4 - Character Waiting Integer: 7
TC(3) = 00 --> Error detection code: LRC

  • Historical bytes: 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30
    Category indicator byte: 54 (proprietary format)
  • TCK = 64 (correct checksum)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64
3F FF 95 00 FF 91 81 71 .. 47 00 .. 4. 4. .. .. 3. 3. 3. 20 .. 65 7. .. .. .. ..
Nagravision TV CAM card
http://en.wikipedia.org/wiki/Nagravision
3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64
Tivu' Sat (Italy) CAM card www.tivu.tv

But when I start oscam, I see that the card is not initialized:

OSCam << cardserver log switched at Fri Nov 8 13:49:48 2019


2019/11/08 13:49:48 00000000 s >> OSCam << cardserver log switched, version 1.20_svn, build r11568 (arm-linux-gnueabihf)
2019/11/08 13:49:48 00000000 s (main) System name = Linux
2019/11/08 13:49:48 00000000 s (main) Host name = raspberrypi
2019/11/08 13:49:48 00000000 s (main) Release = 4.19.75+
2019/11/08 13:49:48 00000000 s (main) Version = #1270 Tue Sep 24 18:38:54 BST 2019
2019/11/08 13:49:48 00000000 s (main) Machine = armv6l
2019/11/08 13:49:48 00000000 s (main) creating pidfile /tmp/.oscam/oscam.pid with pid 507
2019/11/08 13:49:48 00000000 s (config) userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled
2019/11/08 13:49:48 00000000 s (main) signal handling initialized
2019/11/08 13:49:48 00000000 s (net) monitor: initialized (fd=5, port=988)
2019/11/08 13:49:48 00000000 s (net) newcamd: initialized (fd=6, port=1122)
2019/11/08 13:49:48 00000000 s (net) -> CAID: 183D PROVID: 000000
2019/11/08 13:49:48 00000000 s (reader) mycard [pcsc] creating thread for device 0
2019/11/08 13:49:48 00000000 s (main) waiting for local card init
2019/11/08 13:49:48 50C74475 r (reader) mycard [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=357)
2019/11/08 13:49:48 00A8581A h (webif) webif: decompressed 180142 bytes back into 444180 bytes
2019/11/08 13:49:48 00A8581A h (webif) HTTP Server running. ip=0.0.0.0 port=8888
2019/11/08 13:49:49 50C74475 r (reader) mycard [pcsc] PCSC was opened with handle: 1435873536
2019/11/08 13:49:49 50C74475 r (reader) mycard [pcsc] card detected
2019/11/08 13:49:50 50C74475 r (reader) mycard [pcsc] ATR: 3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64
2019/11/08 13:49:51 50C74475 r (reader) mycard [pcsc] detect nagra tiger card
2019/11/08 13:49:51 50C74475 r (reader) mycard [pcsc] card system not supported
2019/11/08 13:49:51 50C74475 r (reader) mycard [pcsc] Normal mode failed, reverting to Deprecated Mode
2019/11/08 13:49:51 50C74475 r (reader) mycard [pcsc] ATR: 3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64
2019/11/08 13:49:52 50C74475 r (reader) mycard [pcsc] detect nagra tiger card
2019/11/08 13:49:53 50C74475 r (reader) mycard [pcsc] card system not supported
2019/11/08 13:49:53 50C74475 r (reader) mycard [pcsc] THIS WAS A FAILED START ATTEMPT No 1 out of max allotted of 1
2019/11/08 13:49:53 50C74475 r (reader) mycard [pcsc] card initializing error
2019/11/08 13:49:54 00000000 s (main) init for all local cards done
2019/11/08 13:49:54 00000000 s (emmcache) loading emmcache disabled since no reader is using it!
2019/11/08 13:49:54 00000000 s (emmcache) loading emmstats disabled since no reader is using it!

I attach the configuration:

cat oscam.conf

main configuration

[global]
nice = -1
WaitForCards = 1

monitor

[monitor]
port = 988
aulow = 120
monlevel = 1

web interface

[webif]
httpport = 8888
httpuser = myusername
httppwd = mypassword
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255,::1

protocols

[newcamd]
port = 1122@183D:000000
serverip = 0.0.0.0
key = 0102030405060708091011121314
keepalive = 1

cat oscam.server

[reader]
label = mycard
protocol = pcsc
device = 0
group = 1
caid = 183D
detect = cd
ident = 183D:000000
group = 1

cat oscam.user

[account]
user = test
pwd = test
group = 1
au = 1
uniq = 0
monlevel = 4
ident = 183D:000000
caid = 183D

Baseyear is wrong

Base year should be 1997 + 7 in "reader-videoguard-common.c" line 34.

I would like to ask if it possible to change that line directly in my DM800 hd se newnigma2 linux system? (without download in c and recompiling altogether)

pairing

my provider has an online "service" to reset the card, is oscam able to do the "pairing" process ?

Griffin 0x5506

try to descramble original griifin with subscription on usb reader
same channel same options work with my conax card

10:42:27 2133D80 r griffin [mouse] Reader initialized (device=/dev/griffin, detect=cd, mhz=357, cardmhz=357)
10:42:28 2133D80 r griffin [mouse] card detected
10:42:30 2133D80 r griffin [mouse] ATR: 3B 08 06 01 xx xx xx xx 20 00
10:42:30 2133D80 r griffin [mouse] Init card protocol T0, FI=1, F=372, D=1, N=0
10:42:30 2133D80 r griffin [mouse] Setting baudrate to 9600 bps
10:42:30 2133D80 r griffin [mouse] Calculated work ETU is 104.20 us
10:42:30 2133D80 r griffin [mouse] ATR Fsmax is: 5 MHz, clocking card to wanted user cardspeed of 3.57 MHz (specified in reader->mhz)
10:42:31 2133D80 r griffin [mouse] [griffin-reader] card detected, cmd_base: 20 caid: 5506 hexserial: xx xx xx xx
10:42:31 2133D80 r griffin [mouse] CAID: 0x5506, Serial: xxxxxxxxxxx, HexSerial: xx xx xx xx Addr: 80 00 14 82
10:42:31 2133D80 r griffin [mouse] CAID: 0x5506, Serial: xxxxxxxxxxx, HexSerial: xx xx xx xx Addr: 00 04 01 33
10:42:31 2133D80 r griffin [mouse] Ready for requests.
10:42:31 2133D80 r griffin [mouse] found card system griffin
10:42:31 2133D80 r griffin [griffin] Reading subscription info.
10:42:31 2133D80 r griffin [griffin] Subscription stream #00 - 0xffff
10:42:31 2133D80 r griffin [griffin] Subscription stream #1 - 0xfeff
10:42:31 2133D80 r griffin [griffin] Subscription stream #2 - 0xffff
10:42:31 2133D80 r griffin [griffin] Subscription stream #3 - 0xdfc0
10:42:31 2133D80 r griffin [griffin] Subscription stream #4 - 0xffff
10:42:31 2133D80 r griffin [griffin] Subscription stream #5 - 0xffff
10:42:31 2133D80 r griffin [griffin] Subscription stream #6 - 0xffff
10:42:31 2133D80 r griffin [griffin] Subscription stream #7 - 0x0000
10:42:31 2133D80 r griffin [griffin] Subscription stream #8 - 0x0020
10:42:31 2133D80 r griffin [griffin] Subscription stream #9 - 0xcda1
10:42:31 2133D80 r griffin [griffin] Subscription stream #10 - 0x003f
10:42:31 2133D80 r griffin [griffin] Subscription stream #11 - 0x003f
10:42:31 2133D80 r griffin [griffin] Subscription stream #12 - 0x0000
10:42:31 2133D80 r griffin [griffin] Subscription stream #13 - 0x0000
10:42:31 2133D80 r griffin [griffin] Subscription stream #14 - 0x0000
10:42:31 2133D80 r griffin [griffin] Subscription stream #15 - 0x0000
10:42:31 2133D80 r griffin [griffin] End subscription info.
10:42:32 0 s init for all local cards done
10:42:32 0 s anti cascading disabled
10:55:35 21424C0 c packet is too small (received 0 bytes, expected 1024 bytes)
10:55:47 21424C0 c encrypted cs378x-client 127.0.0.1 granted (user, au=off)
10:55:48 21424C0 c user (5506&000000/0000/0005/71:F43C322F06B70ABB592C1633E901AD39): not found (161 ms) by griffin
10:55:48 21424C0 c user (5506&000000/0000/0005/71:F43C322F06B70ABB592C1633E901AD39): not found (0 ms) by griffin
10:55:48 0 --- Skipped 6 duplicated log lines ---
10:55:48 21424C0 c user (5506&000000/0000/0005/71:F43C322F06B70ABB592C1633E901AD39): not found (1 ms) by griffin
10:55:48 21424C0 c user (5506&000000/0000/0005/71:F43C322F06B70ABB592C1633E901AD39): not found (0 ms) by griffin
10:55:49 0 --- Skipped 1 duplicated log lines ---
10:55:49 21424C0 c user (5506&000000/0000/0005/71:F43C322F06B70ABB592C1633E901AD39): not found (1 ms) by griffin
10:55:49 21424C0 c user (5506&000000/0000/0005/71:F43C322F06B70ABB592C1633E901AD39): not found (0 ms) by griffin
10:55:49 0 --- Skipped 6 duplicated log lines ---
10:55:49 21424C0 c packet is too small (received 0 bytes, expected 1024 bytes)

i cannot get this card working :S

tsdecrypt output:

2013-08-30 10:55:47 | CAM | Connected to server 127.0.0.1 port 2236 (addr=127.0.0.1 fd=5).
2013-08-30 10:55:47 | --- | EMM CAID: 0x5506 (UNKNOWN)
2013-08-30 10:55:47 | --- | EMM pid : 0x0100 (UNKNOWN)
2013-08-30 10:55:47 | PAT | Using service 0x0005 (5), PMT pid: 0020 (32)
2013-08-30 10:55:47 | --- | ECM CAID: 0x5506 (UNKNOWN)
2013-08-30 10:55:47 | --- | ECM pid : 0x13bb (UNKNOWN)
2013-08-30 10:55:47 | ECC | SID 0x0005 ------------ EcmChng: 0 ms
2013-08-30 10:55:47 | ECM | SID 0x0005 CAID: 0x5506 PID 0x13bb Table: 0x81 Length: 113 Data: 81 70 6e 17 93 51 ec e1 45 6b 22 24 2d 22 12 ..
2013-08-30 10:55:48 | ERR | [cs378x] Unexpected server response on code word request (ret data[0] == 0x44 /No code word found/)
2013-08-30 10:55:48 | ECC | SID 0x0005 ------------ EcmChng: 199 ms
2013-08-30 10:55:48 | ECM | SID 0x0005 CAID: 0x5506 PID 0x13bb Table: 0x81 Length: 113 Data: 81 70 6e 17 93 51 ec e1 45 6b 22 24 2d 22 12 ..
2013-08-30 10:55:48 | ERR | [cs378x] Unexpected server response on code word request (ret data[0] == 0x44 /No code word found/)
2013-08-30 10:55:48 | ECC | SID 0x0005 ------------ EcmChng: 101 ms

check if both odd/even key are changed

I think it would be better if there would be possible to check, the received cw against last one, to determine if both (odd/even) keys are changed. in some cases card sharing servers have problems and with this kind of checking it would be possible to detect the wrong key and resend the ecm to another cardsharing server.
thanks.

Cache problems

I have 3xIrish S*Y cards and I am trying to share the main 6 channels LOCALLY.

What happens in after a short while TG4 will start getting its keys via the cache, but this key is incorrect.

I currently have to do this
RTE One - Card 1
RTE 2 - Card 2
TV3, TG4, 3e etc - Card 3

Now i asked on the OSCAM boards and was told that I could not disable the cache system and this problem was known and fixed, but a pull last week still had the same problem.

Is this a known problem?
Is there a fix?
Is there a way of disabling the cache?

Thanks

Joolz

more than 8 adapters in pc

We cant descramble channels on adapter grather than 8. We have x4 TBS 6985 quad tuner cards in my PC configuration.

Some reason is we send capmt and don't get ca_set_pid and
ca_set_descr messages. We use mumudvb.

Constcw decoding not working in trunk-8704

When I try to decode Bulsat Irdeto stream, decoding fails with the following errors.
version: trunk-8704
The same configuration and keys are working fine with OSCAM 1.00-unstable_svn-ymodv18-t19 build #0 / OscamYmod18_dvbapi_bh.

I'm willing to post the logging of one successful run of"Ymod" after request.

Regards,
Chiloff

013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 needs controlword for ecm 5C5CFE7E96D6D13BE6EA4B7DEAF02F09 on fd 21
2013/06/20 21:10:29 77502A88 c [DVBAPI] Stop Filter FD: 21, caid: 5581, provid: 000000, ecmpid: 0D4B
2013/06/20 21:10:29 77502A88 c dvbapi (5581&000000/0000/03F4/4F:5C5CFE7E96D6D13BE6EA4B7DEAF02F09): not found (13 ms) by reader-0
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 request cw for ecm 5581&000000/0000/03F4/4F:5C5CFE7E96D6D13BE6EA4B7DEAF02F09
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 has 2 ecmpids, 2 streampids, 1 ecmfilters and 0 emmfilters
2013/06/20 21:10:29 77502A88 c [DVBAPI] Start filter for demuxindex: 0 caid: 0001, provid: 000001, ecmpid: 0001
2013/06/20 21:10:29 77502A88 c DEVICE open (/dev/dvb/adapter0/demux0) fd 21
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 set ecm filter to EVEN for CAID 0604 CHID 0002 (=INDEX 00) on fd 22
2013/06/20 21:10:29 77502A88 c [GET_CW] wait_time 0 caid 0604 prov 000000 srvid 03F4 rc 4 cacheex cl mode 0 ex1rdr 0
2013/06/20 21:10:29 77502A88 c Client dvbapi csphash 284726F4 cw 00000000000000000000000000000000 rc 4 0604&000000/0002/03F4/34:47D3306A05FDE62EE4588D7432DA604A
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 no controlword received for PID #0 CAID 0604 PROVID 000000 ECMPID 0CE7 CHID 02
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 needs controlword for ecm E09A7396F4BA38A3A8C4D093BEF7F191 on fd 22
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 trying next irdeto chid of PID #0 CAID 0604 PROVID 000000 ECMPID 0CE7
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 set ecm filter to ODD+EVEN for CAID 0604 INDEX 01 on fd 22
2013/06/20 21:10:29 77502A88 c dvbapi (0604&000000/0002/03F4/34:47D3306A05FDE62EE4588D7432DA604A): not found (13 ms) by reader-0
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 request cw for ecm 0604&000000/0002/03F4/34:47D3306A05FDE62EE4588D7432DA604A
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 has 2 ecmpids, 2 streampids, 1 ecmfilters and 1 emmfilters
2013/06/20 21:10:29 77502A88 c receiving cat
2013/06/20 21:10:29 77502A88 c cat:
2013/06/20 21:10:29 77502A88 01 B0 15 FF FF CD 00 00 09 04 06 04 E5 00 09 04
2013/06/20 21:10:29 77502A88 55 81 E0 80 D8 40 E0 8F
2013/06/20 21:10:29 77502A88 c [DVBAPI] Stop Filter FD: 21, caid: 0001, provid: 000001, ecmpid: 0001
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 has 2 ecmpids, 2 streampids, 1 ecmfilters and 0 emmfilters
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 set ecm filter to EVEN for CAID 0604 CHID 0005 (=INDEX 01) on fd 22
2013/06/20 21:10:29 77502A88 c [GET_CW] wait_time 0 caid 0604 prov 000000 srvid 03F4 rc 4 cacheex cl mode 0 ex1rdr 0
2013/06/20 21:10:29 77502A88 c Client dvbapi csphash 7E617236 cw 00000000000000000000000000000000 rc 4 0604&000000/0005/03F4/34:6EA1CAADE080CAF0D57253A0E012FEAC
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 no controlword received for PID #0 CAID 0604 PROVID 000000 ECMPID 0CE7 CHID 05
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 needs controlword for ecm 47D3306A05FDE62EE4588D7432DA604A on fd 22
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 trying next irdeto chid of PID #0 CAID 0604 PROVID 000000 ECMPID 0CE7
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 set ecm filter to ODD+EVEN for CAID 0604 INDEX 02 on fd 22
2013/06/20 21:10:29 77502A88 c dvbapi (0604&000000/0005/03F4/34:6EA1CAADE080CAF0D57253A0E012FEAC): not found (12 ms) by reader-0
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 request cw for ecm 0604&000000/0005/03F4/34:6EA1CAADE080CAF0D57253A0E012FEAC
2013/06/20 21:10:29 77502A88 c [DVBAPI] Demuxer #0 has 2 ecmpids, 2 streampids, 1 ecmfilters and 0 emmfilters

How does CCCAM protocol work

Thank you for your awesome software, I am building a CCCAM middleware proxy and could really use your expertise.

The concept

  • The server connects to any other CCCAM server as a client
  • All of my devices connect to my server, I handle the authentication, if they pass, I relay their requests to the upstream server and cache them as well to reduce load

This isn't a bug report or a feature request in OSCAM but a query, from a developer to a developer. To accomplish what I listed above, I need to write a cccam protocol compatible server, but I couldn't find the protocol's documentation anywhere in the internet, if you would explain to me how this works or point me somewhere I can find the docs, that would be very helpful

pls add this atr for card support 096f

hello sir,
when i try this card with oscam it show unknown card.
my request pls add this card atr so i can run and try it.
thnx.

this is log of this card....


OSCam << cardserver started at Tue Dec 24 18:09:56 2013

2013/12/24 18:09:56 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r9132 (powerpc-linux-ssl)
2013/12/24 18:09:56 0 s creating pidfile /var/run/oscam.pid with pid 809
2013/12/24 18:09:56 0 s services reloaded: 0 services freed, 1 services loaded, rejected 0
2013/12/24 18:09:56 0 s userdb reloaded: 8 accounts loaded, 0 expired, 0 disabled
2013/12/24 18:09:56 0 s signal handling initialized
2013/12/24 18:09:56 0 s 262 service-id's loaded in 12ms
2013/12/24 18:09:56 0 s 3 tier-id's loaded
2013/12/24 18:09:56 0 s 3 provid's loaded
2013/12/24 18:09:56 0 s monitor: initialized (fd=4, port=988)
2013/12/24 18:09:56 0 s newcamd: initialized (fd=5, port=5000)
2013/12/24 18:09:56 0 s -> CAID: 096F PROVID: 000000
2013/12/24 18:09:56 0 s Reader-0 [internal] creating thread for device /dev/sci0
2013/12/24 18:09:56 100FBBC8 h webif: decompressed 55063 bytes back into 157408 bytes
2013/12/24 18:09:56 100FBBC8 h HTTP Server running. ip=0.0.0.0 port=3003
2013/12/24 18:09:56 0 s loadbalancer: can't read from file /tmp/.oscam/stat
2013/12/24 18:09:56 0 s waiting for local card init
2013/12/24 18:09:56 100F9EF0 r Reader-0 [internal] Reader initialized (device=/dev/sci0, detect=none, mhz=500, cardmhz=357)
2013/12/24 18:09:57 100F9EF0 r Reader-0 [internal] card detected
2013/12/24 18:09:58 100F9EF0 r Reader-0 [internal] ATR: 3F FF 14 25 03 10 80 54 B0 01 69 FF 4A 50 70 00 00 41 52 01 00 00
2013/12/24 18:09:58 100F9EF0 r Reader-0 [internal] Init card protocol T0, FI=1, F=372, D=8, N=3
2013/12/24 18:09:58 100F9EF0 r Reader-0 [internal] Calculated work ETU is 9.30 us reader mhz = 500
2013/12/24 18:09:58 100F9EF0 r Reader-0 [internal] ATR Fsmax is 5 MHz, clocking card to 5.00 (specified in reader->mhz)
2013/12/24 18:10:00 100F9EF0 r Reader-0 [internal] Card type: ARTV
2013/12/24 18:10:00 100F9EF0 r Reader-0 [internal] Rom version: 10T1
2013/12/24 18:10:01 100F9EF0 r Reader-0 [internal] parental lock setting: 3F 00 00 00
2013/12/24 18:10:01 100F9EF0 r Reader-0 [internal] type: VideoGuard Unknown Card, caid: 096F
2013/12/24 18:10:01 100F9EF0 r Reader-0 [internal] serial: ########, BoxID: ########, baseyear: 1997
2013/12/24 18:10:01 100F9EF0 r Reader-0 [internal] ready for requests
2013/12/24 18:10:01 100F9EF0 r Reader-0 [internal] found card system videoguard2
2013/12/24 18:10:01 100F9EF0 r Reader-0 [videoguard2] THIS WAS A SUCCESFULL START ATTEMPT No 1 out of max alloted of 1
2013/12/24 18:10:01 100F9EF0 r Reader-0 [videoguard2] card detected
2013/12/24 18:10:01 100F9EF0 r Reader-0 [videoguard2] type: VideoGuard Unknown Card
2013/12/24 18:10:01 100F9EF0 r Reader-0 [videoguard2] tier: 00f3, expiry date: 2007/02/08-00:00:00
2013/12/24 18:10:01 100F9EF0 r Reader-0 [videoguard2] tier: 0258, expiry date: 2007/02/08-00:00:00
2013/12/24 18:10:01 100F9EF0 r Reader-0 [videoguard2] tier: 03ab, expiry date: 2007/02/15-00:00:00
2013/12/24 18:10:15 0 s init for all local cards done
2013/12/24 18:10:15 0 s anti cascading disabled
2013/12/24 18:13:58 101177A0 c client connected to 5000 port
2013/12/24 18:13:58 101177A0 c encrypted newcamd:5000-client 127.0.0.1 granted (dm500, au=auto (1 reader))
2013/12/24 18:13:58 101177A0 c user dm500 authenticated successfully (mgcamd)
2013/12/24 18:13:58 101177A0 c AU enabled for user dm500 on reader Reader-0
2013/12/24 18:13:58 101177A0 c SID list will not be send to mgcamd client.
2013/12/24 18:14:07 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:07 101177A0 c dm500 (096F&000000/15FE/C36E/78:156E7A7E964E9044E44DCCD2AE52441C): not found (568 ms) by Reader-0
2013/12/24 18:14:08 101177A0 c dm500 (096F&000000/15FE/C36E/78:156E7A7E964E9044E44DCCD2AE52441C): not found (2 ms) by Reader-0
2013/12/24 18:14:10 0 --- Skipped 1 duplicated log lines ---
2013/12/24 18:14:10 101177A0 c dm500 (096F&000000/15FE/C36E/78:156E7A7E964E9044E44DCCD2AE52441C): not found (1 ms) by Reader-0
2013/12/24 18:14:11 101177A0 c dm500 (096F&000000/15FE/C36E/78:156E7A7E964E9044E44DCCD2AE52441C): not found (2 ms) by Reader-0
2013/12/24 18:14:13 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:13 101177A0 c dm500 (096F&000000/15FE/C36E/78:D0BC3EB196088573BF2F0E9E17FFD8BB): not found (545 ms) by Reader-0
2013/12/24 18:14:14 101177A0 c dm500 (096F&000000/15FE/C36E/78:D0BC3EB196088573BF2F0E9E17FFD8BB): not found (2 ms) by Reader-0
2013/12/24 18:14:16 0 --- Skipped 1 duplicated log lines ---
2013/12/24 18:14:16 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:16 101177A0 c dm500 (096F&000000/15E1/C351/84:8A2C6EA3FD1679931B96C8E7354C08D1): not found (576 ms) by Reader-0
2013/12/24 18:14:17 101177A0 c dm500 (096F&000000/15E1/C351/84:8A2C6EA3FD1679931B96C8E7354C08D1): not found (1 ms) by Reader-0
2013/12/24 18:14:18 101177A0 c dm500 (096F&000000/15E1/C351/84:8A2C6EA3FD1679931B96C8E7354C08D1): not found (2 ms) by Reader-0
2013/12/24 18:14:20 101177A0 c dm500 (096F&000000/15E1/C351/84:8A2C6EA3FD1679931B96C8E7354C08D1): not found (1 ms) by Reader-0
2013/12/24 18:14:21 101177A0 c dm500 (096F&000000/15E1/C351/84:8A2C6EA3FD1679931B96C8E7354C08D1): not found (2 ms) by Reader-0
2013/12/24 18:14:22 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:22 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (578 ms) by Reader-0
2013/12/24 18:14:23 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (2 ms) by Reader-0
2013/12/24 18:14:26 0 --- Skipped 1 duplicated log lines ---
2013/12/24 18:14:26 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (1 ms) by Reader-0
2013/12/24 18:14:27 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (2 ms) by Reader-0
2013/12/24 18:14:28 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:28 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (577 ms) by Reader-0
2013/12/24 18:14:30 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (2 ms) by Reader-0
2013/12/24 18:14:31 101177A0 c dm500 (096F&000000/15E1/C351/84:73F2639E22FB1E9635F1D46DEDBD233D): not found (1 ms) by Reader-0
2013/12/24 18:14:32 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:32 101177A0 c dm500 (096F&000000/15E1/C351/84:99FDD2FC6315012CD5752E621C03D9E5): not found (578 ms) by Reader-0
2013/12/24 18:14:33 101177A0 c dm500 (096F&000000/15E1/C351/84:99FDD2FC6315012CD5752E621C03D9E5): not found (2 ms) by Reader-0
2013/12/24 18:14:37 0 --- Skipped 2 duplicated log lines ---
2013/12/24 18:14:37 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:37 101177A0 c dm500 (096F&000000/15FE/C36E/78:791D66879A7C7CE9346ED03843B48790): not found (545 ms) by Reader-0
2013/12/24 18:14:39 101177A0 c dm500 (096F&000000/15FE/C36E/78:791D66879A7C7CE9346ED03843B48790): not found (3 ms) by Reader-0
2013/12/24 18:14:40 101177A0 c dm500 (096F&000000/15FE/C36E/78:791D66879A7C7CE9346ED03843B48790): not found (2 ms) by Reader-0
2013/12/24 18:14:42 0 --- Skipped 1 duplicated log lines ---
2013/12/24 18:14:42 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:42 101177A0 c dm500 (096F&000000/15FE/C36E/78:C7C8ED9C887100E2CD03F948F74AB70C): not found (545 ms) by Reader-0
2013/12/24 18:14:44 101177A0 c dm500 (096F&000000/15FE/C36E/78:C7C8ED9C887100E2CD03F948F74AB70C): not found (2 ms) by Reader-0
2013/12/24 18:14:47 0 --- Skipped 2 duplicated log lines ---
2013/12/24 18:14:47 101177A0 c dm500 (096F&000000/15FE/C36E/78:C7C8ED9C887100E2CD03F948F74AB70C): not found (1 ms) by Reader-0
2013/12/24 18:14:48 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:48 101177A0 c dm500 (096F&000000/15FE/C36E/78:C7C8ED9C887100E2CD03F948F74AB70C): not found (545 ms) by Reader-0
2013/12/24 18:14:49 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:49 101177A0 c dm500 (096F&000000/15FB/C36B/78:9BBC0B50090021399A3D1BD37D0B69FA): not found (543 ms) by Reader-0
2013/12/24 18:14:50 101177A0 c dm500 (096F&000000/15FB/C36B/78:9BBC0B50090021399A3D1BD37D0B69FA): not found (2 ms) by Reader-0
2013/12/24 18:14:52 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:52 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (545 ms) by Reader-0
2013/12/24 18:14:53 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (1 ms) by Reader-0
2013/12/24 18:14:54 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (2 ms) by Reader-0
2013/12/24 18:14:56 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (1 ms) by Reader-0
2013/12/24 18:14:57 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (2 ms) by Reader-0
2013/12/24 18:14:59 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:14:59 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (543 ms) by Reader-0
2013/12/24 18:15:00 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (1 ms) by Reader-0
2013/12/24 18:15:01 101177A0 c dm500 (096F&000000/15FB/C36B/78:27EB5DE706233717E30EA3E87BDD4283): not found (2 ms) by Reader-0
2013/12/24 18:15:03 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:15:03 101177A0 c dm500 (096F&000000/15EA/C35A/78:FF7419BDE510B19E34F60CDFBDBE3F3A): not found (544 ms) by Reader-0
2013/12/24 18:15:04 101177A0 c dm500 (096F&000000/15EA/C35A/78:FF7419BDE510B19E34F60CDFBDBE3F3A): not found (2 ms) by Reader-0
2013/12/24 18:15:05 101177A0 c dm500 (096F&000000/15EA/C35A/78:FF7419BDE510B19E34F60CDFBDBE3F3A): not found (1 ms) by Reader-0
2013/12/24 18:15:06 101177A0 c dm500 (096F&000000/15EA/C35A/78:FF7419BDE510B19E34F60CDFBDBE3F3A): not found (2 ms) by Reader-0
2013/12/24 18:15:08 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:15:08 101177A0 c dm500 (096F&000000/15EA/C35A/78:FF7419BDE510B19E34F60CDFBDBE3F3A): not found (544 ms) by Reader-0
2013/12/24 18:15:10 101177A0 c dm500 (096F&000000/15EA/C35A/78:FF7419BDE510B19E34F60CDFBDBE3F3A): not found (2 ms) by Reader-0
2013/12/24 18:15:13 100FBBC8 h exit oscam requested
2013/12/24 18:15:13 0 --- Skipped 1 duplicated log lines ---
2013/12/24 18:15:13 100FBBC8 h Shutdown requested by WebIF from 192.168.1.100
2013/12/24 18:15:13 100F9EF0 r Reader-0 [videoguard2] classD3 ins54: status 90 00 = ok but cw=00 -> channel not subscribed
2013/12/24 18:15:13 101177A0 c dm500 (096F&000000/15EA/C35A/78:9527D95CC883838384112B5E543CC6D3): not found (553 ms) by Reader-0
2013/12/24 18:15:13 100FBBC8 h HTTP Server stopped
2013/12/24 18:15:13 0 s killing client dm500
2013/12/24 18:15:13 0 s Reader-0 [videoguard2] Killing reader
2013/12/24 18:15:13 0 s userdb 8 accounts freed
2013/12/24 18:15:13 0 s readerdb 1 readers freed
2013/12/24 18:15:13 0 s cardserver down

moving to github ?

Hi,

how about moving the whole project to github?

The trac-system is pretty unstable right now

cheers

fu_man_tschu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.