Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nagra - card initializing error #18

Open
lucdig opened this issue Nov 8, 2019 · 0 comments
Open

Nagra - card initializing error #18

lucdig opened this issue Nov 8, 2019 · 0 comments

Comments

@lucdig
Copy link

lucdig commented Nov 8, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant