gfto / oscam

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.
http://www.streamboard.tv/oscam/
GNU General Public License v3.0
103 stars 67 forks source link

Nagra - card initializing error #18

Open lucdig opened 4 years ago

lucdig commented 4 years ago

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

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