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

SLE 4442 card is unresponsive #46

Closed
yuvadm opened this issue Aug 3, 2021 · 8 comments
Closed

SLE 4442 card is unresponsive #46

yuvadm opened this issue Aug 3, 2021 · 8 comments

Comments

@yuvadm
Copy link

yuvadm commented Aug 3, 2021

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
@LudovicRousseau
Copy link
Owner

Hello,
I need a pcscd log as explained in https://ccid.apdu.fr/#support

@yuvadm
Copy link
Author

yuvadm commented Aug 3, 2021

@LudovicRousseau
Copy link
Owner

Update the CCID driver from version 1.4.34 to 1.4.35 and try again.

@yuvadm
Copy link
Author

yuvadm commented Aug 3, 2021

Upgraded ccid to 1.4.35 - same problem, here's the log for the second run https://gist.github.com/yuvadm/260d79103147909b3fa7a96aec3972de

@LudovicRousseau
Copy link
Owner

It is a bug in PCSC that is already fixed but not yet released.
See LudovicRousseau/PCSC@7730f6c

I will provide a snapshot of PCSC so you can test it.

@LudovicRousseau
Copy link
Owner

@yuvadm
Copy link
Author

yuvadm commented Aug 3, 2021

Looking much better! I still see commands.c:2336:SetParameters Command not supported or not allowed in the log but there's no failure anymore.

Any idea when a release can be expected?

Thanks @LudovicRousseau !

@LudovicRousseau
Copy link
Owner

Done
https://ludovicrousseau.blogspot.com/2021/08/new-version-of-pcsc-lite-192.html

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

2 participants