LudovicRousseau / pcsc-tools

Some tools to be used with smart cards and PC/SC
https://pcsc-tools.apdu.fr/
GNU General Public License v2.0
190 stars 62 forks source link

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

Closed feklee closed 4 years ago

feklee commented 4 years ago

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

Platform

Log

Output of pcsc_scan:

Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...    -  \  |  

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

feklee commented 4 years ago

I forgot the output of lsusb (BusyBox, no -v option) with the reader connected:

Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 04e6:e003
Bus 002 Device 001: ID 1d6b:0003

Without the reader connected, the output is empty.

feklee commented 4 years ago

Concerning how I got the reader to work with GnuPG in the past, see my gist: GnuPG on Termux for accessing USB smart card reader

LudovicRousseau commented 4 years ago

Strange. I don't see any log from the CCID driver in your pcscd trace.

Also you have configdir=/data/data/com.termux/files/usr/etc/reader.conf.d but your log contains:

00000392 configfile.l:360:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
feklee commented 4 years ago

It's definitely the same pcscd. I just generated the log again using the full path for the executable.

I'm lost here. Maybe I should try compiling pcscd from source.

LudovicRousseau commented 4 years ago

Maybe. I can't support binaries provided by others.

You can also ask for help on the MUSCLE mailing list https://lists.infradead.org/mailman/listinfo/pcsclite-muscle