Giter VIP home page Giter VIP logo

pcsc-tools's Introduction

# pcsc-tools

## Project home page

To get a .tar.bz2 archive of the project please go to https://pcsc-tools.apdu.fr/.

Source code

You can use this project to submit pull requests or report issues.

## Build from git repository

git clone https://salsa.debian.org/rousseau/pcsc-tools.git
cd pcsc-tools
./bootstrap
./configure
make

Dependencies

You will need to also install:

pcsc-tools's People

Contributors

alex-nitrokey avatar bence98 avatar doegox avatar egilkv avatar fdelapena avatar graealex avatar hamarituc avatar henning-schild avatar informatimago avatar lbschenkel avatar leon0824 avatar ludovicrousseau avatar melak avatar micolous avatar mrautio avatar nacho avatar pont-us avatar silpol avatar unlobito avatar yarrick 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

pcsc-tools's Issues

Can't find my reader after replug

I plug in the reader. Then I do

sudo rmmod pn533_usb
sudo rmmod pn533
pcsc_scan

And it sees my reader! It sees changes with card state and so on. This works great. I can restart pcsc_scan and it will still see my reader. BUT if I replug my reader, after that pcsc_scan is just waiting for a reader. I thought, it might be that kernel restarts pn533 mods, so I removed them again, but it didn't work. It could find my reader again only after reboot...

I'm using Linux Mint 19, ACR122U reader.

ACR122u is visible only after disconnection and reconnection

Hi,

I am having an issue with a reader ACR122u connected to a Raspberry (SO Raspbian).

When I reboot the system with the reader connected, pcsc_scan is not able to find the reader.
If I disconnect and reconnect the USB driver, I am able to find and use the reader.

What could be the issue?

Thank you,
Enrico

SCardGetStatusChange for PNP notification return SCARD_E_TIMEOUT

For the latest pcsc_scan.c file, I add code at 528 line to check the SCardGetStatusChange return value for the PNP notification, but unfortunately the return value is SCARD_E_TIMEOUT but not SCARD_S_SUCCESS. (my local pcsc-lite version is 1.8.23 and ubuntu Linux)

_rgReaderStates[0].szReader = "\\?PnP?\Notification";
rgReaderStates[0].dwCurrentState = SCARD_STATE_UNAWARE;

rv = SCardGetStatusChange(hContext, 0, rgReaderStates, 1);
printf("SCardGetStatusChange for PNP notification result = %lu\n", rv)_

I think it should be SCARD_S_SUCCESS but not this SCARD_E_TIMEOUT value. Do you know why and do you have the plan to fix this issue?

Need to send a reset after every command

Hi.
I have Compunicate paytv smart card.
It's detected fine.

Thu Oct 28 16:14:15 2021
 Reader 0: CASTLES EZCCID Smart Card Reader 00 00
  Event number: 0
  Card state: Card inserted, Exclusive Mode,
  ATR: 3B E9 00 00 81 31 C3 45 99 63 74 69 19 99 12 56 10 EC

ATR: 3B E9 00 00 81 31 C3 45 99 63 74 69 19 99 12 56 10 EC
+ TS = 3B --> Direct Convention
+ T0 = E9, Y(1): 1110, K: 9 (historical bytes)
  TB(1) = 00 --> VPP is not electrically connected
  TC(1) = 00 --> Extra guard time: 0
  TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
-----
  TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
-----
  TA(3) = C3 --> IFSC: 195
  TB(3) = 45 --> Block Waiting Integer: 4 - Character Waiting Integer: 5
+ Historical bytes: 99 63 74 69 19 99 12 56 10
  Category indicator byte: 99 (proprietary format)
+ TCK = EC (correct checksum)

Possibly identified card (using /root/.cache/smartcard_list.txt):
        NONE

Updating /root/.cache/smartcard_list.txt using http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt

Possibly identified card (using /root/.cache/smartcard_list.txt):
        NONE

Your card is not present in the database.
Please submit your unknown card at:
http://smartcard-atr.appspot.com/parse?ATR=3BE900008131C345996374691999125610EC

If I send commands one by one, then I get an error:

root@ua0lnjserv:/usr/src# scriptor -r "CASTLES EZCCID Smart Card Reader 00 00"
Using given card reader: CASTLES EZCCID Smart Card Reader 00 00
Using T=1 protocol
Reading commands from STDIN
81 D0 00 01 08
> 81 D0 00 01 08
< 13 E3 F5 C6 CB 27 5F 37 90 00 : Normal processing.
81 C0 00 01 0A
> 81 C0 00 01 0A
Can't get info: Transaction failed.

But if I send a reset after each command, then everything works:

root@ua0lnjserv:/usr/src# scriptor -r "CASTLES EZCCID Smart Card Reader 00 00"
Using given card reader: CASTLES EZCCID Smart Card Reader 00 00
Using T=1 protocol
Reading commands from STDIN
81 D0 00 01 08
> 81 D0 00 01 08
< 13 E3 F5 C6 CB 27 5F 37 90 00 : Normal processing.
reset
> RESET
< OK: 3B E9 00 00 81 31 C3 45 99 63 74 69 19 99 12 56 10 EC
81 C0 00 01 0A
> 81 C0 00 01 0A
< 4A B0 90 00 : Normal processing.
reset
> RESET
< OK: 3B E9 00 00 81 31 C3 45 99 63 74 69 19 99 12 56 10 EC
81 D1 00 01 10
> 81 D1 00 01 10
< 00 18 EB 61 A1 D1 FA BF 30 30 30 30 30 30 30 30
90 00 : Normal processing.
^C

Is this a pcsc-tools problem or is this normal and need to send resets from a program that works with pcscd?

Card is unpowered

When I try to use scriptor I have an error "Can't allocate Chipcard::PCSC::Card object: Card is unpowered."

The card is recognized by my reader and it works with nfc-pcsc

pcsc_scan output:

PC/SC device scanner
V 1.5.2 (c) 2001-2017, Ludovic Rousseau <[email protected]>
Using reader plug'n play mechanism
Scanning present readers...
0: OMNIKEY CardMan (076B:5121) 5121 (OKCM0022509131612005524582011459) 00 00
1: OMNIKEY CardMan (076B:5121) 5121 (OKCM0022509131612005524582011459) 00 01

Thu Oct 19 11:27:39 2017
 Reader 0: OMNIKEY CardMan (076B:5121) 5121 (OKCM0022509131612005524582011459) 00 00
  Card state: Card inserted, Unresponsive card,
 Reader 1: OMNIKEY CardMan (076B:5121) 5121 (OKCM0022509131612005524582011459) 00 01
  Card state: Card inserted,
  ATR: 3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A

ATR: 3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A
+ TS = 3B --> Direct Convention
+ T0 = 8F, Y(1): 1000, K: 15 (historical bytes)
  TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0
-----
  TD(2) = 01 --> Y(i+1) = 0000, Protocol T = 1
-----
+ Historical bytes: 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00
  Category indicator byte: 80 (compact TLV data object)
    Tag: 4, len: F (initial access data)
      Initial access data: 0C A0 00 00 03 06 03 00 01 00 00 00 00
+ TCK = 6A (correct checksum)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A
3B 8F 80 01 80 4F 0C A0 00 00 03 06 .. 00 01 00 00 00 00 ..
        Mifare Standard 1K (as per PCSC std part3)
3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A
3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 .. .. 00 00 00 00 ..
        RFID - ISO 14443 Type A Part 3 (as per PCSC std part3)
3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A
        Philips MIFARE Standard (1 Kbytes EEPROM)
        http://www.nxp.com/#/pip/pip=[pfp=41863]|pp=[t=pfp,i=41863]
        RFID - ISO 14443 Type A - Transport for London Oyster
        ACOS5/1k Mirfare
        RFID - ISO 14443 Type A - NXP Mifare card with 1k EEPROM
        vivotech ViVOcard Contactless Test Card
        Bangkok BTS Sky SmartPass
        Mifare Classic 1K (block 0 re-writeable)

can not compile under windows

Under Windows 10, try to install the msys2 as suggested and download the latest code from github.

run the command: ./configure, then failed with:
-bash: ./configure: No such file or directory

run the command: autoconf , then failed with error.
configure.ac:10: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:10: You should use the 'AC_CONFIG_HEADERS' macro instead.
../autoconf-2.71/lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:1089: AM_CONFIG_HEADER is expanded from...
configure.ac:10: the top level
configure.ac:62: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:62: You should run autoupdate.
../autoconf-2.71/lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:62: the top level

run the command: autoreconf -ivf, it passed. Then run the command ./configure gain, it failed at:
checking for SCardEstablishContext... configure: error: SCardEstablishContext() not found, install pcsc-lite, or use PCSC_LIBS=... ./configure

How can I fix this issue?

Android/Termux: pcsc_scan does not find SCM SPR332 v2 card reader

In the past, i.e. about a year ago and with an older phone and Android version, the reader worked fine with GnuPG. Now I cannot get it to work, even on the old phone. Possibly with Android Pie something has changed.

Versions

  • libccid 1.4.31 (Termux package)

  • pcscd 1.8.25 (Termux root package)

  • "$PREFIX/bin/pcscd" --version:

    pcsc-lite version 1.8.25.
    Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
    Copyright (C) 2001-2018 by Ludovic Rousseau <[email protected]>.
    Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
    Report bugs to <[email protected]>.
    Enabled features: Linux aarch64-unknown-linux-android serial usb libusb usbdropdir=/data/data/com.termux/files/usr/lib/pcsc/drivers ipcdir=/data/data/com.termux/files/usr/var/run configdir=/data/data/com.termux/files/usr/etc/reader.conf.d
    
  • pcsc_scan: compiled from source package pcsc-tools-1.5.4.tar.bz2

Platform

  • Operating system or GNU/Linux distribution name and version:

    • uname -a: Linux localhost 4.9.106-perf+ #1 SMP PREEMPT Thu Aug 1 20:20:25 CST 2019 aarch64 Android

    • OxygenOS version: 9.0.16

    • Build number: ONEPLUS A6010_41_190801

  • Hardware details: OnePlus 6T

  • Smart card middleware name and version: ?

  • Smart card reader manufacturer name and reader model name: SCM SPR332 v2

  • Smart card name: OpenPGP SmartCard V2.1

Log

Output of pcsc_scan:

Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...   �[3D - �[3D \ �[3D | �[2D �[2D

Output of tsudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color: log.txt

Unable to detect my reader

Hi,
I am using an ACR122U with this tool. I already unloaded the kernel as you mentioned but am getting this error trace as soon as I plug in my reader.
rahul@rahul-Lenovo-B40-70:~/Desktop/nfctools-examples/src/main/java/org/nfctools/examples/ndefreader$ pcsc_scan
PC/SC device scanner
V 1.4.22 (c) 2001-2011, Ludovic Rousseau [email protected]
Compiled with PC/SC lite version: 1.8.10
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...found one
Scanning present readers...
0: ACS ACR122U 00 00

Sat Oct 28 10:47:30 2017
Reader 0: ACS ACR122U 00 00
Card state:
SCardGetStatusChange: Unknown reader specified.

Kindly help we with this.

SLE 4442 card is unresponsive

There is a specific card I've been using for a long time and has been working flawlessly. A few months ago a regression happened (possibly as a result of a version upgrade?) and the card stopped working.

pcsc_scan detects the card just fine:

$ pcsc_scan 
Using reader plug'n play mechanism
Scanning present readers...
0: ACS ACR 38U-CCID 00 00
 
Tue Aug  3 09:32:33 2021
 Reader 0: ACS ACR 38U-CCID 00 00
  Event number: 0
  Card state: Card inserted, 
  ATR: 3B 04 A2 13 10 91

ATR: 3B 04 A2 13 10 91
+ TS = 3B --> Direct Convention
+ T0 = 04, Y(1): 0000, K: 4 (historical bytes)
+ Historical bytes: A2 13 10 91
  Category indicator byte: A2 (proprietary format)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 04 A2 13 10 91
	PM2P Chipkarte SLE 4442, Code FFFFFF
	Bahn BKK (Deutsche Bahn AG - Insurance Company)
	NH Hotels World fidelization card
	Miele Professional card for paying washing machine
	SLE5542 Memory Card (Other)
	https://www.acs.com.hk/download-manual/6009/TDS_SLE5542.pdf
 /   

But scriptor claims the card is unresponsive:

$ cat read.dat 
FF A4 00 00 01 06
FF B0 00 00 FF

$ scriptor read.dat 
No reader given: using ACS ACR 38U-CCID 00 00
Can't allocate Chipcard::PCSC::Card object: Card is unresponsive.

Running on Arch Linux versions:

$ pacman -Q | grep pcsc
pcsc-perl 1.4.14-12
pcsc-tools 1.5.7-1
pcsclite 1.9.1-1

incompatibility between pcsc-tools 1.5.2 and pcsc-lite-devel 1.8.23?

I am downloading:

  • pcsc-tools
  • pcsc-lite-devel
  • pcsc-ccud
    For SLES 15 but got:
68796f5e8c86:/opt/ic/ic-sim # pcsc_scan
PC/SC device scanner
V 1.5.2 (c) 2001-2017, Ludovic Rousseau <[email protected]>
SCardEstablishContext: RPC transport error.```

versions used:

68796f5e8c86:/usr/lib64 # zypper info pcsc-tools
Refreshing service 'container-suseconnect-zypp'.
Problem retrieving the repository index file for service 'container-suseconnect-zypp':
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp] 
Warning: Skipping service 'container-suseconnect-zypp' because of the above error.
Loading repository data...
Reading installed packages...


Information for package pcsc-tools:
-----------------------------------
Repository     : SLE-Module-Basesystem           
Name           : pcsc-tools                      
Version        : 1.5.2-1.31                      
Arch           : x86_64                          
Vendor         : SUSE LLC <https://www.suse.com/>
Support Level  : Level 3                         
Installed Size : 949.4 KiB                       
Installed      : Yes                             
Status         : up-to-date                      
Source package : pcsc-tools-1.5.2-1.31.src       
Summary        : PC/SC Tools                     
Description    :                                 
    These tools are used to test a PC/SC driver, card or reader
    or send commands in a friendly environment
    (text or graphical user interface).

68796f5e8c86:/usr/lib64 # zypper info pcsc-lite-devel
Refreshing service 'container-suseconnect-zypp'.
Problem retrieving the repository index file for service 'container-suseconnect-zypp':
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp] 
Warning: Skipping service 'container-suseconnect-zypp' because of the above error.
Loading repository data...
Reading installed packages...


Information for package pcsc-lite-devel:
----------------------------------------
Repository     : SLE-Module-Basesystem                                        
Name           : pcsc-lite-devel                                              
Version        : 1.8.23-2.27                                                  
Arch           : x86_64                                                       
Vendor         : SUSE LLC <https://www.suse.com/>                             
Support Level  : Level 3                                                      
Installed Size : 180.5 KiB                                                    
Installed      : Yes                                                          
Status         : up-to-date                                                   
Source package : pcsc-lite-1.8.23-2.27.src                                    
Summary        : Development package for the MUSCLE project SmartCards library
Description    :                                                              
    This package contains the development files for pcsc-lite. It allows to
    compile plugins for the pcsc-lite package.

68796f5e8c86:/usr/lib64 # zypper info pcsc-ccid      
Refreshing service 'container-suseconnect-zypp'.
Problem retrieving the repository index file for service 'container-suseconnect-zypp':
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp] 
Warning: Skipping service 'container-suseconnect-zypp' because of the above error.
Loading repository data...
Reading installed packages...


Information for package pcsc-ccid:
----------------------------------
Repository     : SLE-Module-Basesystem                                                     
Name           : pcsc-ccid                                                                 
Version        : 1.4.28-1.31                                                               
Arch           : x86_64                                                                    
Vendor         : SUSE LLC <https://www.suse.com/>                                          
Support Level  : Level 3                                                                   
Installed Size : 1.4 MiB                                                                   
Installed      : Yes                                                                       
Status         : up-to-date                                                                
Source package : pcsc-ccid-1.4.28-1.31.src                                                 
Summary        : PCSC Driver for CCID Based Smart Card Readers and GemPC Twin Serial Reader
Description    :                                                                           
    This package contains a generic USB CCID (Chip/Smart Card Interface
    Devices) driver.

    This driver is meant to be used with the PCSC-Lite daemon from the
    pcsc-lite package.

Need to add new DOD CAC card

3B 7D 96 00 00 80 31 80 65 B0 75 49 17 0F 83 00 90 00
pcsc_scan spins on the above "possibly identified card" using Raspian 11 32 Bit
DOD ID CA-59

This is a dod cac id at cac.mil as:

DoD CAC card issued ~October 2020
Gemalto TOP DL V2.1 144K
Geneva Conventions Identification Card

We need this added

Transaction Failed on almost any Apdu, when using SIM Cards and ACR38U

Hello , thank you for making these tools available! I am trying to test these tools against the following hardware :

  • ACR38U Reader
  • SIM cards ISO 7816-3 compliant

Getting always an error. Ex:
GScriptor:

Beginning script execution...

Sending: A0 A4 00 00 02 3F 00 

Errors During Script Execution: Transaction failed.
Script was executed without error.

Noting that all tools connected successfuly to the reader and performed reset command successfully returning the ATR .

I tried sending the same Apdu from a Java application is throwing :
PCSCException: scard_e_not_transacted. This maybe related to the current issue

Wrong information on "Skatteverkets identitetskort"?

Hi,

I have a e-id from the Swedish authority Skatteverket. When I scan for the card for pcsc_scan it shows up as:

3B 7F 96 00 00 80 31 80 65 B0 85 03 00 EF 12 0F FF 82 90 00
	Portuguese Blood Donator National Card (HealthCare)
	Skatteverkets identitetskort för folkbokförda i Sverige (utfärdade fr.o.m. september 2017) med AB Svenska Pass e-legitimation
	https://skatteverket.se/privat/folkbokforing/idkort/elegitimationpaidkortet.4.3810a01c150939e893f8169.html

Is the same card ID used for Portuguese Blood Donators or has there been a copy&paste error here?

The information was added in 741f3c1 and 3f7c5ce. 741f3c1 also added information on another Swedish e-id which, to my knowledge, does not exist, and has not existed. I tried googling, in Swedish, for information on such a card but came up with zero hits.

So, is it possible that there's been a mix-up in the list here?

How to submit misrecognized card

I've got a couple card that are misrecognized (e.g.: my Maestro gets recognized as a MasterCard blue)
I tried using the website https://smartcard-atr.apdu.fr/ but I see no "submit correction" button

Would it be safe to write the ATRs here or can they contain private information?

pcsc_scan ISO/IEC 14443-4B ?

I'm using UART PN532. pcsc_scan detects visa, master cards and also smart watch (fitbit charge 4) payment card. But if fails to detect card associated with my smart phone. Does pcsc support ISO/IEC 14443-4B ?

Bellow nfc-poll output of detected phone nfc.

$ nfc-poll 
nfc-poll uses libnfc libnfc-1.8.0-63-g3df7f25
NFC reader: IFD-NFC opened
NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations)
ISO/IEC 14443-4B (106 kbps) target:
               PUPI: 54  0d  **  **  
   Application Data: 00  00  **  **  
      Protocol Info: 80  **  **  
Waiting for card removing...nfc_initiator_target_is_present: Target Released
done.

p.s. there are numbers under **

pcsc_scan says unresponsive card

Hey pcsc_scan says unresponsive card but i have only one interface. how i make my card responsive ?
Here is the pcsc_scan output:

PC/SC device scanner
V 1.5.2 (c) 2001-2017, Ludovic Rousseau <[email protected]>
Using reader plug'n play mechanism
Scanning present readers...
0: Alcor Micro AU9560 00 00
 
Sat Feb 22 15:10:52 2020
 Reader 0: Alcor Micro AU9560 00 00
  Card state: Card inserted, Unresponsive card

Originally posted by @dcruveiller in #9 (comment)

pcsc_scan not detecting the cards unless I unplug and replug the reader

On a Raspberry Pi 4 with Linux raspberrypi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

Freshly installed (libusb-dev libusb++ libccid pcscd libpcsclite1 libpcsclite-dev libpcsc-perl pcsc-tools) once, I use the pcsc_scan it does not detect the ACS ACR122U card reader. The status shows:

Jun 23 20:40:39 raspberrypi systemd[1]: Started PC/SC Smart Card Daemon.
Jun 23 20:40:39 raspberrypi pcscd[606]: 00000000 ccid_usb.c:898:ReadUSB() read failed (1/3): -7 LIBUSB_ERROR_TIMEOUT
Jun 23 20:40:39 raspberrypi pcscd[606]: 00158269 ccid_usb.c:898:ReadUSB() read failed (1/3): -7 LIBUSB_ERROR_TIMEOUT
Jun 23 20:40:39 raspberrypi pcscd[606]: 00000039 ifdhandler.c:194:CreateChannelByNameOrChannel() failed
Jun 23 20:40:39 raspberrypi pcscd[606]: 00000807 readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:072f/2200:libudev:0:/dev/bus/usb/001/003)
Jun 23 20:40:39 raspberrypi pcscd[606]: 00000032 readerfactory.c:376:RFAddReader() ACS ACR122U PICC Interface init failed.
Jun 23 20:40:39 raspberrypi pcscd[606]: 00000339 hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: ACS ACR122U PICC Interface
Jun 23 20:41:46 raspberrypi systemd[1]: pcscd.service: Succeeded.

But, once I unplug the wire and then replug it, it works!

● pcscd.service - PC/SC Smart Card Daemon
   Loaded: loaded (/lib/systemd/system/pcscd.service; indirect; vendor preset: enabled)
   Active: active (running) since Thu 2022-06-23 20:48:28 BST; 6s ago
     Docs: man:pcscd(8)
 Main PID: 634 (pcscd)
    Tasks: 5 (limit: 3720)
   CGroup: /system.slice/pcscd.service
           └─634 /usr/sbin/pcscd --foreground --auto-exit

Why is this happening?

Observations

On RPM Linux-GNU distribution

Output truncated

$ rpm -qi pcsc-tools
Version : 1.6.0
URL: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
Description: (...) and scriptor sends (...)

Hello. Observations:

  • http://ludovic.(...) | I supposed that the URL was missing the s in the protocol section. Wrong i was since the site is indeed served non-securely. It would be worth opting for an up-to-date protected connection, hence that involves version 1.3 of TLS.; Let's Encrypt will do in this regard if you ever decide to opt for its use.
  • "and scriptor sends (...)" | We can note that the whole statement is valid in respect to gscriptor. Thus it would be worth mentioning it as part of the description.

Submitting unknown cards info requires access to you Google account

I've tried to submit a Spanish ING DIRECT MasterCard info at http://smartcard-atr.appspot.com/parse?ATR=3B8C8001504F3BF0CD0000000080817164, only to find I had to log in my Google account and to allow an unnamed application to access my account information. I can't send the data without allowing this permission, which I won't do.

Is there any other way to send the info? If there are, say it in the pcsc_scan output, please.

Thanks.

missing file "Changelog" in version 1.4.27

Hello Ludovic, first I would like to thank you for this tool, I am using it on Slackware to use my ID card reader for e-goverment services. The version I did build for Slackware 14.2 is 1.4.27, but failed on first build, because of missing Changelog file. I added one from 1.5.2 version and all went well. There is also seccond issue, the folder name in packed source is doubled "pcsc-tools-pcsc-tools-1.4.27" not a big deal for me, but all the distribution related automatic scripts for building the package expect correct folder name. Attached is corrected src. Hope I did it in correct way, I use GitHub for first time and I am not a developer or programmer, just linux user.
pcsc-tools-1.4.27.tar.gz

Please add more maps to the database

Hi. I scanned with your program pcsc_scan smart cards that I had at home and found that the cards issued by Alfa-bank Russia Visa - have ATR: 3B 68 00 00 00 73 C8 40 13 00 90 00
And also Visa cards from Inecobank from Armenia have
ATR: 3B 68 00 00 99 02 00 D1 03 04 22 01
and Visa bisness ATR: 3B 68 00 00 99 02 00 D1 03 04 22 01
Could you please add them to the database. Thank you in advance for your project.

Flag to disable spinner in pcsc_scan

It would be useful to have a flag on pcsc_scan to disable the spinner please. We run pcsc_scan -nq under systemd to monitor for changes to card state, but would rather not send the spinner to syslog. Thanks for creating such a useful tool!

Reader AK910 HKey not detected

Hi,
pcsc_scan can't detect my reader. Some info:

OS : Arch Linux

software version:

  • ccid 1.5.0
  • opensc 0.2.0
  • pcsc-tools 1.5.8

lsusb:

Bus 006 Device 061: ID 2021:0002 AK910 HKey
Bus 006 Device 060: ID 048d:1167 Integrated Technology Express, Inc. USB Mass Storage Device
Bus 006 Device 059: ID 058f:6254 Alcor Micro Corp. USB Hub

journalctl:

lug 24 15:47:00 archbox kernel: usb 6-1: new high-speed USB device number 53 using xhci_hcd
lug 24 15:47:00 archbox kernel: usb 6-1: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
lug 24 15:47:00 archbox kernel: usb 6-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
lug 24 15:47:00 archbox kernel: hub 6-1:1.0: USB hub found
lug 24 15:47:00 archbox kernel: hub 6-1:1.0: 4 ports detected
lug 24 15:47:01 archbox kernel: usb 6-1.1: new high-speed USB device number 54 using xhci_hcd
lug 24 15:47:01 archbox kernel: usb 6-1.1: New USB device found, idVendor=048d, idProduct=1167, bcdDevice= 1.00
lug 24 15:47:01 archbox kernel: usb 6-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
lug 24 15:47:01 archbox kernel: usb 6-1.1: Product: USB Mass Storage Device
lug 24 15:47:01 archbox kernel: usb 6-1.1: Manufacturer: iTE Tech
lug 24 15:47:01 archbox kernel: usb 6-1.1: SerialNumber: 0000000000000000
lug 24 15:47:01 archbox kernel: usb-storage 6-1.1:1.0: USB Mass Storage device detected
lug 24 15:47:01 archbox kernel: scsi host5: usb-storage 6-1.1:1.0
lug 24 15:47:01 archbox mtp-probe[81329]: checking bus 6, device 54: "/sys/devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1.1"
lug 24 15:47:01 archbox mtp-probe[81329]: bus: 6, device: 54 was not an MTP device
lug 24 15:47:01 archbox mtp-probe[81341]: checking bus 6, device 54: "/sys/devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1.1"
lug 24 15:47:01 archbox mtp-probe[81341]: bus: 6, device: 54 was not an MTP device
lug 24 15:47:01 archbox kernel: usb 6-1.2: new full-speed USB device number 55 using xhci_hcd
lug 24 15:47:01 archbox kernel: usb 6-1.2: New USB device found, idVendor=2021, idProduct=0002, bcdDevice= 1.00
lug 24 15:47:01 archbox kernel: usb 6-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
lug 24 15:47:01 archbox kernel: usb 6-1.2: Product: HKey
lug 24 15:47:01 archbox kernel: usb 6-1.2: Manufacturer: AK910
lug 24 15:47:01 archbox kernel: hid-generic 0003:2021:0002.001E: hiddev97,hidraw4: USB HID v1.00 Device [AK910 HKey] on usb-0000:00:10.0-1.2/input0
lug 24 15:47:01 archbox mtp-probe[81342]: checking bus 6, device 55: "/sys/devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1.2"
lug 24 15:47:01 archbox mtp-probe[81342]: bus: 6, device: 55 was not an MTP device
lug 24 15:47:01 archbox mtp-probe[81355]: checking bus 6, device 55: "/sys/devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1.2"
lug 24 15:47:01 archbox mtp-probe[81355]: bus: 6, device: 55 was not an MTP device
lug 24 15:47:02 archbox kernel: scsi 5:0:0:0: Direct-Access     IT1167B  USB Flash Disk   0.00 PQ: 0 ANSI: 4
lug 24 15:47:02 archbox kernel: sd 5:0:0:0: [sdc] 3939328 512-byte logical blocks: (2.02 GB/1.88 GiB)
lug 24 15:47:02 archbox kernel: sd 5:0:0:0: [sdc] Write Protect is off
lug 24 15:47:02 archbox kernel: sd 5:0:0:0: [sdc] Mode Sense: 23 00 00 00
lug 24 15:47:02 archbox kernel: sd 5:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
lug 24 15:47:02 archbox kernel:  sdc: sdc1
lug 24 15:47:02 archbox kernel: sd 5:0:0:0: [sdc] Attached SCSI removable disk

Card state: Card inserted, Unresponsive card

hi,

I have two SmartCard Reader keyboards and some Siemens SLE 4432/42 card.
One keyboard has ACR38 reader, and the other is DELL KB813.
when I insert the card into the ACR38 keyboard, pcsc_scan worked well and showed like below:

PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau [email protected]
Compiled with PC/SC lite version: 1.8.14
Using reader plug'n play mechanism
Scanning present readers...
0: ACS ACR38U-CCID 00 00

Wed Oct 16 22:42:46 2019
Reader 0: ACS ACR38U-CCID 00 00
Card state: Card inserted,
ATR: 3B 04 92 23 10 91

ATR: 3B 04 92 23 10 91

  • TS = 3B --> Direct Convention
  • T0 = 04, Y(1): 0000, K: 4 (historical bytes)
  • Historical bytes: 92 23 10 91
    Category indicator byte: 92 (proprietary format)

Possibly identified card (using /home/jr/.cache/smartcard_list.txt):
3B 04 92 23 10 91
Siemens SLE 4432/42 card

then type 'lsusb' showed like below:

Bus 002 Device 003: ID 17ef:6050 Lenovo
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 072f:90cc Advanced Card Systems, Ltd ACR38 SmartCard Reader
Bus 001 Device 005: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 004: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

It seems good, but when I insert the card into DELL KB813 keyboard, pcsc_scan showed like below:

PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau [email protected]
Compiled with PC/SC lite version: 1.8.14
Using reader plug'n play mechanism
Scanning present readers...
0: Dell Dell Smart Card Reader Keyboard 00 00

Wed Oct 16 22:39:32 2019
Reader 0: Dell Dell Smart Card Reader Keyboard 00 00
Card state: Card inserted, Unresponsive card,

then type 'lsusb' showed like below:

Bus 002 Device 003: ID 17ef:6050 Lenovo
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 413c:2101 Dell Computer Corp. SmartCard Reader Keyboard
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Why pcsc_scan showed 'Unresponsive card' while the Siemens SLE 4432/42 card inserted into DELL KB813 keyboard ? would you mind to help fix it?

Many thanks!

I can't find my Ledger Nano S smartcard with pcsc_scan

I can still load my apps to the device, however I can't generate a hardware wallet.

pscs_scan doesn't find a reader.

I'm using ubuntu 18.04

`chris@chris:~/electroneum$ systemctl status pcscd.socket
Failed to dump process list, ignoring: No such file or directory
● pcscd.socket - PC/SC Smart Card Daemon Activation Socket
Loaded: loaded (/lib/systemd/system/pcscd.socket; enabled; vendor preset: ena
Active: active (running) since Wed 2020-02-12 11:03:13 GMT; 3min 52s ago
Listen: /var/run/pcscd/pcscd.comm (Stream)
CGroup: /system.slice/pcscd.socket

Feb 12 11:03:13 chris systemd[1]: Listening on PC/SC Smart Card Daemon Activatio

The NanoS is device 5:

chris@chris:~/electroneum$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1c4f:0034 SiGma Micro
Bus 001 Device 003: ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard
Bus 001 Device 005: ID 2c97:0001
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

libccid is the latest version and I ran the commands you suggested to another user for removing a kernel module.

how to compile the pcsc_scan.exe with UNICODE on Windows platform

I run the pcsc_scan.exe (http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc_scan.exe) you provided but when I start app, we can see it finally invoke the method SCardGetStatusChangeA instead of SCardGetStatusChangeW at background once the winscard.h SCardGetStatusChange API define:
https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangew

Here is the note:
The winscard.h header defines SCardGetStatusChange as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Then I try to compile the pcsc_scan.exe by my self and specify the UNICODE flag for I don't want to invoke the method SCardGetStatusChangeA at background.

How can I pass the -DUNICODE flag to the compiler during configure the pcsc_scan project?

It can't find my reader

Hello.
When I run pcsc_scan command, I got respond like it can't find my reader.

╰─➤ pcsc_scan
PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau [email protected]
Compiled with PC/SC lite version: 1.8.14
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...

When i type command lsusb, my reader is on the list.
I am using Ubuntu 16.04, reader ACR122U. It used to work on Linux Mint but i got reinstall to Ubuntu Xenial and here is the problem. I have tried to install every possible dependencies packages but nothing helped. I hope there is a possibility to make it work on newer version Ubuntu.

Thanks for any help.

Reading Memory Cards

Hi @LudovicRousseau

Apologies for the rather basic question, but how does one go about using scriptor to read the contents of a serial memory card (the card is using the AT24C02 chip set)?

The card reader is identified fine, and when inserting card it returns "3B 04 49 32 43 2E - German Health Insurance Card" (its not a german health insurance card but rather a member card for a local club).

SCardEstablishContext: Service was stopped.

Hi all,

I'm having troubles with the pcsc_scan function.
I'm using Ubuntu 22.04 TLS and I need retrieve data from a smart card. Since a couple of days the pcsc_scan function returns only the "SCardEstablishContext: Service was stopped" error.
I've altredy tried to uninstall and reinstall all the packeges, start the pcscd.service and the pcscd.socket; all the times I've received the error above.

Does anyone has any suggestion?

Thanks in advance.

Running pcsc_scan as normal user results in SCardEstablishContext: RPC transport error because of missing polkit rule in Gentoo/Funtoo.

Running pcsc_scan as normal user results in SCardEstablishContext: RPC transport error.

I am trying to get my SCM Microsystems, Inc. CLOUD 2700 R Smart Card Reader working on Funtoo.

  1. lsusb works. It shows the reader.
  2. dmsg shows the Reader as well.
  3. sudo /etc/init.d/pcscd start is working as well.
  4. When I do: pcsc_scan
  5. I get: SCardEstablishContext: RPC transport error.
  6. pcsc-lite is at version 1.8.25 installed
  7. sys-apps/pcsc-tools 1.5.3 installed
  8. app-crypt/ccid 1.4.30 installed.
  9. I have to do sudo /usr/sbin/pcscd -a -f
  10. Then sudo pcsc_scan works perfectly well.
  11. Of course I do not want to run my App with Root privileges and I do not want to manually have to start sudo /usr/sbin/pcscd -a -f.
  12. This issue is also reported in https://wiki.gentoo.org/wiki/Talk:PCSC-Lite

this is the Funtoo Bug report: https://bugs.funtoo.org/browse/FL-7563

Can't find my reader after upgrade

I've upgraded something in my system and after that pcsc_scan cannot find my reader while lsusb sees it. I've tried:

  1. Installing ccid (both source version and via apt-get)
  2. gdb pcscd (my output is exactly same with this gdb backtrace)
  3. modprobe -r pn533 nfc (with pcscd restart)
  4. rmmod pn533_usb pn533 (with pcscd restart)
  5. Installing other versions of pcsc-tools
    None of this helped. I'm using Linux Mint 19, ACR122U reader.

Thank you for any help

Update of smartcard_list.txt

I own a Transisère card from OùRA network.
Its ATS is 3B 6F 00 00 80 5A 0A 01 02 20 03 11 .. .. .. .. 82 90 00, where the .. .. .. .. represents the tag identifier (Converted to decimal, this is the number that is physically printed on the card)

I therefore suggest to change the description here:

Card Transport Express Régional (TER) « Oùra ! » of region Rhône-Alpes

to this:

« Oùra ! » Card of region Rhône-Alpes (SNCF, Transisère), Calypso standard

try setup in raspberry pi

hi , i try setup in my pi and i got this error : pi@raspberrypi:~ $ git clone https://salsa.debian.org/rousseau/pcsc-tools.git
cd pcsc-tools
./bootstrap
./configure
make
Cloning into 'pcsc-tools'...
remote: Enumerating objects: 5389, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 5389 (delta 60), reused 87 (delta 46), pack-reused 5278
Receiving objects: 100% (5389/5389), 1.19 MiB | 928.00 KiB/s, done.
Resolving deltas: 100% (3747/3747), done.

  • test -f Makefile
  • rm -rf *.cache *.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
  • autoreconf --verbose --install
    autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:20: installing './compile' configure.ac:16: installing './config.guess' configure.ac:16: installing './config.sub' configure.ac:7: installing './install-sh' configure.ac:7: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory .'
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether make supports nested variables... (cached) yes
    checking build system type... armv7l-unknown-linux-gnueabihf
    checking host system type... armv7l-unknown-linux-gnueabihf
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for msgfmt... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libpcsclite... yes
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking winscard.h usability... yes
    checking winscard.h presence... yes
    checking for winscard.h... yes
    checking for SCardEstablishContext... yes
    checking for unistd.h... (cached) yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking for string.h... (cached) yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    ./configure: line 4627: syntax error near unexpected token $datarootdir,' ./configure: line 4627: AX_RECURSIVE_EVAL($datarootdir, datarootdir_exp)'
    make: *** No targets specified and no makefile found. Stop.
    pi@raspberrypi:~/pcsc-tools $

How do you compile the tools

Hi,

I am a windows developer, so apologies for the eye rolling question.. but how do you compile the tools?

I have tried ./compile , but it requires arguments.. have tried make -f Makefile.am but this just prints.. make: 'Changelog' is up to date.

If I run make -f Makefile.am pcsc_scan, it prints.. `Fatal Error: winscard.h: no such file or directory.

I am running on raspberry pi, just trying to validate that the hardware is working before trying to go any further..

pcsc scan : waiting for the first reader

Bonjour Ludovic,
Nous essayons de faire fonctionner un lecteur de cartes vitale sur un serveur Ubuntu 22.04 LTS, nous avons essayé l'outil pcsc scan mais il reste sur "Waiting for the first reader".
J'ai désactivé les modules kernel pn533 et nfc, supprimé le dossier /lib/modules/5.15.0-87-generic/kernel/drivers/nfc/pn533 (et relancé le service pcscd), mais le scan reste toujours en attente de lecteur.
Le lecteur est bien vu en USB par le système :
root@principal:/lib/modules/5.15.0-87-generic/kernel/drivers/nfc# lsusb |grep INGENICO
Bus 001 Device 023: ID 0b00:0090 INGENICO Lecteur SESAM VITALE

Une idée de votre côté ?

Cordialement.

Xavier

Card not being recognized

I just built a PC with a DVB-S/S2 tuner and USB card reader. The aim is to have KODI + TVHEADEND + OSCAM + SKY Brasil legit card.

The issue is that OSCAM is not recognizing the system of the card.

OSCAM's log and afterwards PCSC (some digits were changed for "x").

2019/07/14 15:18:32 00000000 s   (reader) Reader-2 [pcsc] creating thread for device 0
2019/07/14 15:18:32 107F409F r   (reader) Reader-2 [pcsc] Reader initialized (device=0, detect=cd, mhz=357, cardmhz=357)
2019/07/14 15:19:31 107F409F r   (reader) Reader-2 [pcsc] PCSC was opened with handle: 1x4x3x0x1x
2019/07/14 15:19:31 107F409F r   (reader) Reader-2 [pcsc] card detected
2019/07/14 15:19:32 107F409F r   (reader) Reader-2 [pcsc] ATR: 3F 7F 13 25 02 xx xx xx xx xx xx xx xx 80 00 00 00 xx xx xx 
2019/07/14 15:19:34 107F409F r   (reader) Reader-2 [pcsc] card system not supported
2019/07/14 15:19:34 107F409F r   (reader) Reader-2 [pcsc] Normal mode failed, reverting to Deprecated Mode
2019/07/14 15:19:34 107F409F r   (reader) Reader-2 [pcsc] ATR: 3F 7F 13 25 02 xx xx xx xx xx xx xx xx 80 00 00 00 xx xx xx 
2019/07/14 15:19:36 107F409F r   (reader) Reader-2 [pcsc] card system not supported
2019/07/14 15:19:36 107F409F r   (reader) Reader-2 [pcsc] THIS WAS A FAILED START ATTEMPT No 1 out of max allotted of 1
2019/07/14 15:19:36 107F409F r   (reader) Reader-2 [pcsc] card initializing error

$ pcsc_scan

Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...found one
Scanning present readers...
0: CASTLES EZCCID Smart Card Reader 00 00

Sun Jul 14 15:05:46 2019
 Reader 0: CASTLES EZCCID Smart Card Reader 00 00
  Event number: 0
  Card state: Card inserted,
  ATR: 3F 7F 13 25 02 xx xx xx xx xx xx xx xx 80 00 00 00 xx xx xx 

ATR: 3F 7F 13 25 02 xx xx xx xx xx xx xx xx 80 00 00 00 xx xx xx 
+ TS = 3F --> Inverse Convention
+ T0 = 7F, Y(1): 0111, K: 15 (historical bytes)
  TA(1) = 13 --> Fi=372, Di=4, 93 cycles/ETU
    43010 bits/s at 4 MHz, fMax for Fi = 5 MHz => 53763 bits/s
  TB(1) = 25 --> Programming Param P: 5 Volts, I: 1 milliamperes
  TC(1) = 02 --> Extra guard time: 2
+ Historical bytes: 41 xx xx xx xx xx xx xx 80 00 00 00 xx xx xx
  Category indicator byte: 41 (proprietary format)

Possibly identified card (using /home/xxxx/.cache/smartcard_list.txt):
	NONE

Your card is not present in the database.
Please submit your unknown card at:
http://smartcard-atr.appspot.com/parse?ATR=xxxxxxxxxxxxx....

As far I could understand, my card (SKY Brasil - Videoguard) is not being recognized either by OSCAM or PCSC... Is this understanding correct? Anybody could help overcoming this issue?

Thank you very much !

Not working correctly with Lisle Standard Card Rack 20

Hello

I'm having some issues with pcsc_scan not working with Lisle Standard Card Rack 20. It is basically 20 pcsc-readers attatched to a USB hub. I have tried to edit PCSCLITE_MAX_READERS_CONTEXTS and CCID_DRIVER_MAX_READERS, but when installing from source the readers will not be detected.

pcsc_scan under Ubuntu requirements: libgtk3-perl

I'd like to run pcsc_scan in an Ubuntu based Docker container. Installing the pcsc-tools package requires libgtk3-perl. This, in turn, requires a whole host of other packages — among others — X11 and many other GUI components. This adds approximately 300 MB to the image size.

Is ist possible to compile pcsc_scan without the dependencies to the GUI components?

Thanks!

compile from git fails

| ../git/pcsc_scan.c: In function 'main':
| ../git/pcsc_scan.c:496:45: error: 'ATR_PARSER' undeclared (first use in this function)
| 496 | char atr_command[sizeof(atr)+sizeof(ATR_PARSER)+2+1];
| | ^~~~~~~~~~
| ../git/pcsc_scan.c:496:45: note: each undeclared identifier is reported only once for each function it appears in
| ../git/pcsc_scan.c:878:72: error: expected ')' before string constant
| 878 | sprintf(atr_command, ATR_PARSER " '%s'", atr);
| | ~ ^~~~~~~~
| | )

Non-relevant application to strings of red color code

On RPM Linux-GNU distribution. Terminal Shell: Bash

Hello. Outputs, the one reported here

PC/SC device scanner
V 1.4.9 (c) 2001-2006, Ludovic Rousseau <[email protected]>
Compiled with PC/SC lite version: 1.3.1
[v]Scanning present readers
[r]Waiting for the first reader...found one

and the one produced in my system

$ pcsc_scan
[v]Using reader plug'n play mechanism
[r]Scanning present readers...
[r]Waiting for the first reader

differ from each other.

Note: expressions [v] and [r] were manual additions in order to indicate the strings that are exhibited respectively in violet and red color codes.

The application of red in respect to Scanning present readers... and Waiting for the first reader is not relevant since there is no warning involved to be expressed.

Card state: Card inserted, Unresponsive card,

Hi,

I have been using these tools for almost two years with no issues. Well starting last week I am getting an issue with my card reader "Unresponsive Card". I even tried reinstalling the software packages:

pcsc-lite for Centos 7
pcsc-lite-ccid for Centos 7
perl-pcsc Centos 7
pcsc-tools Centos 7

Here is what I get when I run pcsc_scan:

PC/SC device scanner
V 1.4.25 (c) 2001-2011, Ludovic Rousseau [email protected]
Compiled with PC/SC lite version: 1.8.8
Using reader plug'n play mechanism
Scanning present readers...
0: SCM Microsystems Inc. SCR 3310 [CCID Interface] (53311850713070) 00 00

Thu Jan 23 08:01:37 2020
Reader 0: SCM Microsystems Inc. SCR 3310 [CCID Interface] (53311850713070) 00 00
Card state: Card inserted, Unresponsive card,

Any ideas what is happening ?

What is the actual license?

LICENSE file contains GPL-2 license.
README says GPL-2+.

From the comment at the top of source code files, I think it should be GPL-2+.

Desktop distros don't have a consensus:
https://archlinux.pkgs.org/rolling/archlinux-community-aarch64/pcsc-tools-1.5.7-1-aarch64.pkg.tar.xz.html (GPL)
https://centos.pkgs.org/8/epel-x86_64/pcsc-tools-1.5.3-3.el8.x86_64.rpm.html (GPL-2+)
https://freebsd.pkgs.org/13/freebsd-amd64/pcsc-tools-1.5.7.txz.html (GPL-2)
https://opensuse.pkgs.org/tumbleweed/opensuse-oss-aarch64/pcsc-tools-1.5.7-1.5.aarch64.rpm.html (GPL-2+ AND GPL-3+)

I don't know where openSUSE got the idea that some code is GPL-3+.

Can we settle this once and for all and have consistency across files :)?
Thanks!

pcsc_scan.exe finds readers but fails to present prompt

I am observing an issue with pcsc_scan.exe detecting my readers and then looping over and over rather than presenting a prompt to select reader and action.

The issue is observed when compiling from scratch and also when using the pre-compiled Windows binary.

I've uploaded a log of the output I am observing in both scenarios.

log.txt

Any thoughts on possible causes?

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.