Чат

🕑
За да пишеш, трябва да си влязъл в профила си.

Четец за smart карти

Започната от kostadin_123, Юни 07, 2019, 08:39:42 AM

« назад - напред »

gogotogo

Цитат на: git72;511787Може ли и аз да попитам нещо знаещите?  ... по темата !

Попадна ми един Card Reader ...



Както се вижда компа го разпознава (Ubuntu), но не го виждам в /dev..., та въпроса ми е как да го опиша в reader?

Имам един феникс, но с него няма проблем  - появява се, описвам го и тръгва нормално...

[reader]
label                         = bulcrypt
description                   = mouse
enable                        = 0
protocol                      = mouse
device                        = [B]/dev/ttyUSB0[/B]
caid                          = 4AEE
detect                        = cd
ident                         = 4AEE:000000
group                         = 1
emmcache                      = 1,1,2,0
lb_weight                     = 250

Taka:
[reader]
label                         = bulcrypt
protocol                      = pcsc
device                        = 0
caid                          =4AEE
ident                        = 000000
detect                        = cd
mhz                           = 357
cardmhz                       = 357
group                         = 2
emmcache                      = 1,3,2,0
lb_weight                     = 300
read_old_classes              = 0
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К

Момчил Минков

Цитат на: gogotogo;511799Taka:
[[reader]
label                         = bulcrypt
protocol                      = pcsc
device                        = 0
caid                          =4AEE
ident                        = 000000
detect                        = cd
mhz                           = 357
cardmhz                       = 357

group                         = 2
emmcache                      = 1,3,2,0
lb_weight                     = 300
read_old_classes              = 0       
Колега, не го бъркай, от МХз няма нужда при ПЦСЦ протокола
____|_______|_Удряй_|_______|_______|_
|_______|_______|главата|_______|______
____|_______|_______|си_тук_|_______|__

git72

току що пробвах, ама нещо ми се чупи - oscam-a спира



2019/06/16 15:08:37 00000000 s >> OSCam << cardserver log switched, version 1.20_svn, build r11517-795 (x86_64-linux-gnu-ssl-libusb-pcsc)
2019/06/16 15:08:37 00000000 s     (main) System name    = Linux
2019/06/16 15:08:37 00000000 s     (main) Host name      = zd8000-Peppermint-10
2019/06/16 15:08:37 00000000 s     (main) Release        = 4.18.0-21-generic
2019/06/16 15:08:37 00000000 s     (main) Version        = #22~18.04.1-Ubuntu SMP Thu May 16 15:07:19 UTC 2019
2019/06/16 15:08:37 00000000 s     (main) Machine        = x86_64
2019/06/16 15:08:37 00000000 s     (main) creating pidfile /tmp/.oscam/oscam.pid with pid 8675
2019/06/16 15:08:37 00000000 s   (config) services reloaded: 0 services freed, 3 services loaded, rejected 0
2019/06/16 15:08:37 00000000 s      (emu) OSCam-Emu version 795
2019/06/16 15:08:37 00000000 s   (config) userdb reloaded: 13 accounts loaded, 0 expired, 10 disabled
2019/06/16 15:08:37 00000000 s     (main) signal handling initialized
2019/06/16 15:08:37 00000000 s   (config) 935 provid's loaded
2019/06/16 15:08:37 00000000 s   (config) 396 service-id's loaded in 1 ms
2019/06/16 15:08:37 00000000 s   (config) 91 tier-id's loaded
2019/06/16 15:08:37 00000000 s      (net) cs357x: initialized (fd=5, port=2233, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) newcamd: initialized (fd=6, port=14001, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) -> CAID: 0B00 PROVID: 000000
2019/06/16 15:08:37 00000000 s      (net) newcamd: initialized (fd=7, port=14002, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) -> CAID: 4AEE PROVID: 000000
2019/06/16 15:08:37 00000000 s      (net) cccam: initialized (fd=8, port=14000, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) csp: initialized (fd=9, port=46000, ip=127.0.0.1, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s   (reader) bulcrypt1 [pcsc] creating thread for device 0
2019/06/16 15:08:37 00000000 s (emmcache) loaded 0 emmcache records from /tmp/.oscam/oscam.emmcache in 0 ms
2019/06/16 15:08:37 00000000 s (emmcache) loaded 0 emmstat records from /tmp/.oscam/oscam.emmstat in 0 ms
2019/06/16 15:08:37 00000000 s (anticasc) anti cascading disabled
2019/06/16 15:08:37 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:37 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:37 4EAE0582 h    (webif) webif: decompressed 180562 bytes back into 445440 bytes
2019/06/16 15:08:37 4EAE0582 h    (webif) HTTP Server running. ip=0.0.0.0 port=8888
2019/06/16 15:08:39 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:39 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:41 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:41 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:43 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:43 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:45 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:45 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:47 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:47 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:49 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:49 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:51 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:51 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:53 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:53 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:55 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:55 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device:0
[SIGPIC]https://www.speedtest.net/result/10390219004.png[/SIGPIC]  Tanix Tx6s - Android 10 Tv Box

dzumba

Четете тук!
http://ludovic.rousseau.free.fr/softwares/pcsc-tools/

докато не добавите ATR-a,а него го няма в  smartcard_list.txt,който да добавите в ,не си спомням вече коя директория,няма да се получи!

gogotogo

Цитат на: dzumba;511809Четете тук!
http://ludovic.rousseau.free.fr/softwares/pcsc-tools/

докато не добавите ATR-a,а него го няма в  smartcard_list.txt,който да добавите в ,не си спомням вече коя директория,няма да се получи!

Дзумба, ползвал съм омникей и не съм добавял никаде смарткард лист ,бачкаше си омникейчето без проблем .
Тук незнам да ли колегата е инсталирал на линукс машината драйвера за пцсц.
Ето така става това:

OSCam with PC/CS card reader support


If you like to setup a Linux Server and using OSCam with a local card, you need a card reader.

Here is a simple tutorial on how to get a card reader up and running.

This tutorial will work for most reader out there:
Omnikey
Keyboard with card reader
Integrated reader in a portable computer


This should work on Ubuntu 12.x and up (and other Linux distro)

Install needed software

Code:
apt-get install subversion make gcc pcscd pcsc-tools libpcsclite-dev

Code:
subversion -> file/documents controll system, compiling
make -> compiling tools
gcc -> compiling tools controlling process
pcscd -> PC/SC Smart Card Daemon
pcsc-tools -> Adds pcsc_scan, a too for scanning PC/SC Smart Card
libpcsclite-dev -> Middleware to access a smart card using PC/SC - files need for compiling and linking app to reader

You can update the card list for the PC/SC software (optional)
Code:
wget http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt --output-document=/root/.smartcard_list.txt

Test if cardreader is found and working
Run:
Code:
pcsc_scan
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К

gogotogo

Цитат на: git72;511806току що пробвах, ама нещо ми се чупи - oscam-a спира



2019/06/16 15:08:37 00000000 s >> OSCam << cardserver log switched, version 1.20_svn, build r11517-795 (x86_64-linux-gnu-ssl-libusb-pcsc)
2019/06/16 15:08:37 00000000 s     (main) System name    = Linux
2019/06/16 15:08:37 00000000 s     (main) Host name      = zd8000-Peppermint-10
2019/06/16 15:08:37 00000000 s     (main) Release        = 4.18.0-21-generic
2019/06/16 15:08:37 00000000 s     (main) Version        = #22~18.04.1-Ubuntu SMP Thu May 16 15:07:19 UTC 2019
2019/06/16 15:08:37 00000000 s     (main) Machine        = x86_64
2019/06/16 15:08:37 00000000 s     (main) creating pidfile /tmp/.oscam/oscam.pid with pid 8675
2019/06/16 15:08:37 00000000 s   (config) services reloaded: 0 services freed, 3 services loaded, rejected 0
2019/06/16 15:08:37 00000000 s      (emu) OSCam-Emu version 795
2019/06/16 15:08:37 00000000 s   (config) userdb reloaded: 13 accounts loaded, 0 expired, 10 disabled
2019/06/16 15:08:37 00000000 s     (main) signal handling initialized
2019/06/16 15:08:37 00000000 s   (config) 935 provid's loaded
2019/06/16 15:08:37 00000000 s   (config) 396 service-id's loaded in 1 ms
2019/06/16 15:08:37 00000000 s   (config) 91 tier-id's loaded
2019/06/16 15:08:37 00000000 s      (net) cs357x: initialized (fd=5, port=2233, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) newcamd: initialized (fd=6, port=14001, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) -> CAID: 0B00 PROVID: 000000
2019/06/16 15:08:37 00000000 s      (net) newcamd: initialized (fd=7, port=14002, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) -> CAID: 4AEE PROVID: 000000
2019/06/16 15:08:37 00000000 s      (net) cccam: initialized (fd=8, port=14000, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s      (net) csp: initialized (fd=9, port=46000, ip=127.0.0.1, prio=1 [ SO_PRIORITY IP_TOS ])
2019/06/16 15:08:37 00000000 s   (reader) bulcrypt1 [pcsc] creating thread for device 0
2019/06/16 15:08:37 00000000 s (emmcache) loaded 0 emmcache records from /tmp/.oscam/oscam.emmcache in 0 ms
2019/06/16 15:08:37 00000000 s (emmcache) loaded 0 emmstat records from /tmp/.oscam/oscam.emmstat in 0 ms
2019/06/16 15:08:37 00000000 s (anticasc) anti cascading disabled
2019/06/16 15:08:37 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:37 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:37 4EAE0582 h    (webif) webif: decompressed 180562 bytes back into 445440 bytes
2019/06/16 15:08:37 4EAE0582 h    (webif) HTTP Server running. ip=0.0.0.0 port=8888
2019/06/16 15:08:39 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:39 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:41 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:41 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:43 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:43 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:45 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:45 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:47 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:47 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:49 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:49 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:51 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:51 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:53 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:53 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device: 0
2019/06/16 15:08:55 5E977D64 r   (reader) bulcrypt1 [pcsc] PCSC failed establish context (8010001d)
2019/06/16 15:08:55 5E977D64 r   (reader) bulcrypt1 [pcsc] Cannot open device:0
Колега пиши в конзолата :
pcsc_scan
и дай какво дава.
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К

dzumba

Това казвам,драйверът е точно това,щом не си добавял,значи атеера е вътре,ако не е,се добавя ръчно!
http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt

git72

Цитат на: gogotogo;511816Колега пиши в конзолата :
pcsc_scan
и дай какво дава.

$ pcsc_scan
PC/SC device scanner
V 1.5.2 (c) 2001-2017, Ludovic Rousseau <ludovic.rousseau@free.fr>
SCardEstablishContext: Service not available.
[SIGPIC]https://www.speedtest.net/result/10390219004.png[/SIGPIC]  Tanix Tx6s - Android 10 Tv Box

gogotogo

Цитат на: git72;511818$ pcsc_scan
PC/SC device scanner
V 1.5.2 (c) 2001-2017, Ludovic Rousseau <ludovic.rousseau@free.fr>
SCardEstablishContext: Service not available.

Нямаш подръжка на линукса
инсталирай това:
apt-get install subversion make gcc pcscd pcsc-tools libpcsclite-dev
и после това:
subversion -> file/documents controll system, compiling
make -> compiling tools
gcc -> compiling tools controlling process
pcscd -> PC/SC Smart Card Daemon
pcsc-tools -> Adds pcsc_scan, a too for scanning PC/SC Smart Card
libpcsclite-dev -> Middleware to access a smart card using PC/SC - files need for compiling and linking app to reader
и пак дай pcsc_scan какво дава
1.60см парабола-75E-30W;Telesystem 100cм-36E;Vivacom 80cм-45Е-30W;Bulsatcom 80см-39Е;Офсет 1.30см-45Е-30W;Debian-8.7.1;Zgemma H7s 4К;Zgemma H9Twin 4k;Octagon SF4008 4К

git72

Цитат на: gogotogo;511819Нямаш подръжка на линукса
инсталирай това:
apt-get install subversion make gcc pcscd pcsc-tools libpcsclite-dev
и после това:
subversion -> file/documents controll system, compiling
make -> compiling tools
gcc -> compiling tools controlling process
pcscd -> PC/SC Smart Card Daemon
pcsc-tools -> Adds pcsc_scan, a too for scanning PC/SC Smart Card
libpcsclite-dev -> Middleware to access a smart card using PC/SC - files need for compiling and linking app to reader
и пак дай pcsc_scan какво дава

$ pcsc_scan
PC/SC device scanner
V 1.5.2 (c) 2001-2017, Ludovic Rousseau
Using reader plug'n play mechanism
Scanning present readers...
0: SCM Microsystems Inc. SCR 331 [CCID Interface] (21120647204307) 00 00
 
Sun Jun 16 17:14:59 2019
  Reader 0: SCM Microsystems Inc. SCR 331 [CCID Interface] (21120647204307) 00 00
  Card state: Card inserted, Exclusive Mode,
  ATR: 3B 20 00
ATR: 3B 20 00
+ TS = 3B --> Direct Convention
+ T0 = 20, Y(1): 0010, K: 0 (historical bytes)
  TB(1) = 00 --> VPP is not electrically connected


;;650
Всичко тръгна !!!!
:a0335:



МНОООООГО ВИ БЛАГОДАРЯ МОМЦИ !!!
[SIGPIC]https://www.speedtest.net/result/10390219004.png[/SIGPIC]  Tanix Tx6s - Android 10 Tv Box

Момчил Минков

Цитат на: Момчил Минков;511633Да не забравиш да инсталираш пакета за pcsc, и да се чудиш после що не работи.

Цитат на: git72;511823МНОООООГО ВИ БЛАГОДАРЯ МОМЦИ !!!

Е натискай тогава бутона "Благодаря"...
____|_______|_Удряй_|_______|_______|_
|_______|_______|главата|_______|______
____|_______|_______|си_тук_|_______|__

kostadin_123

Цитат на: kostadin_123;511748Както и да е вече обнових, само се чудя за 2600:000000
защо не ми върви и изобщо не се появява в лог-а такава заявка???
Това е за тези с BISS и Constant Word, а с тях какво да правя?
На PC е лесно добавям плъг-ин и тръгват а на друг приемник?
6о см-ва офсетка на 39Е, 45Е, 46Е и 52E
TechniSat-SkyStar-S2-Karte-PCI

git72

2019/10/21 18:55:46 14D48A96 r   (reader) bulcrypt8 [pcsc] Bulcrypt card detected, checking card version.
2019/10/21 18:55:47 14D48A96 r   (reader) bulcrypt8 [pcsc] card system not supported
2019/10/21 18:55:47 14D48A96 r   (reader) bulcrypt8 [pcsc] Normal mode failed, reverting to Deprecated Mode
2019/10/21 18:55:47 14D48A96 r   (reader) bulcrypt8 [pcsc] ATR: 3B 20 00
2019/10/21 18:55:48 14D48A96 r   (reader) bulcrypt8 [pcsc] Bulcrypt card detected, checking card version.
2019/10/21 18:55:49 14D48A96 r   (reader) bulcrypt8 [pcsc] card system not supported
2019/10/21 18:55:49 14D48A96 r   (reader) bulcrypt8 [pcsc] THIS WAS A FAILED START ATTEMPT No 1 out of max allotted of 1
2019/10/21 18:55:49 14D48A96 r   (reader) bulcrypt8 [pcsc] card initializing error

 
... това какво означава според вас - че рийдъра на поддържа Булкрипт ли???
[SIGPIC]https://www.speedtest.net/result/10390219004.png[/SIGPIC]  Tanix Tx6s - Android 10 Tv Box

Момчил Минков

#43
Цитат на: git72;5188092019/10/21 18:55:46 14D48A96 r   (reader) bulcrypt8 [pcsc] Bulcrypt card detected, checking card version.
2019/10/21 18:55:47 14D48A96 r   (reader) bulcrypt8 [pcsc] card system not supported
2019/10/21 18:55:47 14D48A96 r   (reader) bulcrypt8 [pcsc] Normal mode failed, reverting to Deprecated Mode
2019/10/21 18:55:47 14D48A96 r   (reader) bulcrypt8 [pcsc] ATR: 3B 20 00
2019/10/21 18:55:48 14D48A96 r   (reader) bulcrypt8 [pcsc] Bulcrypt card detected, checking card version.
2019/10/21 18:55:49 14D48A96 r   (reader) bulcrypt8 [pcsc] card system not supported
2019/10/21 18:55:49 14D48A96 r   (reader) bulcrypt8 [pcsc] THIS WAS A FAILED START ATTEMPT No 1 out of max allotted of 1
2019/10/21 18:55:49 14D48A96 r   (reader) bulcrypt8 [pcsc] card initializing error

 
... това какво означава според вас - че рийдъра на поддържа Булкрипт ли???

Не, че оскама не го поддържа... Ама пък щом стига до проверка на версията ...
____|_______|_Удряй_|_______|_______|_
|_______|_______|главата|_______|______
____|_______|_______|си_тук_|_______|__

git72

Цитат на: Момчил Минков;518810Не, че оскама не го поддържа... Ама пък щом стига до проверка на версията ...

Кое не поддържа Оскама - рийдъра? - работи си нормално с картата на Близалките.
Преди време, когато тествах (06.19) всичко си работеше...
, но нямам спомен дали пробвах тогава с Булкрипта или само с конакса ?!?!?
 та за това се чудя дали не е от риидъра - дай идея !
МОЛЯ!:;810
[SIGPIC]https://www.speedtest.net/result/10390219004.png[/SIGPIC]  Tanix Tx6s - Android 10 Tv Box

SatShop.bg
Ъплоуд център DishPointer Сателитни изстрелвания