LudovicRousseau / PCSC

pcsc-lite: PC/SC implementation
https://pcsclite.apdu.fr/
Other
254 stars 107 forks source link

UART pins in BCM mode compatibility #168

Closed zelix25 closed 6 months ago

zelix25 commented 6 months ago

Versions

Platform

Issue

pcsc_scan reads my card but doesnt shows it?

Log

sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt

Result:

00000000 debuglog.c:394:DebugLogSetLevel() debug level=debug 00000235 debuglog.c:415:DebugLogSetCategory() Debug options: APDU 00000067 [548162509568] pcscdaemon.c:361:main() Force colored logs 00000149 [548162509568] utils.c:82:GetDaemonPid() Can't open /run/pcscd/pcscd.pid: No such file or directory 00000381 [548162509568] configfile.l:369:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000132 [548162509568] pcscdaemon.c:671:main() pcsc-lite 2.0.1 daemon ready. 00000239 [548162509568] pcscdaemon.c:754:main() Using drivers directory: /usr/local/lib/pcsc/drivers 00000100 [548162509568] hotplug_libudev.c:121:HPReadBundleValues() Cannot open PC/SC drivers directory: /usr/local/lib/pcsc/drivers 00000061 [548162509568] hotplug_libudev.c:122:HPReadBundleValues() Disabling USB support for pcscd. 00000055 [548162509568] hotplug_libudev.c:723:HPRegisterForHotplugEvents() No bundle files in pcsc drivers directory: /usr/local/lib/pcsc/drivers 00000054 [548162509568] hotplug_libudev.c:725:HPRegisterForHotplugEvents() Disabling USB support for pcscd

LudovicRousseau commented 6 months ago

What is the problem? What result did you expect?

zelix25 commented 6 months ago

My reader is connected to gpio 14 and 15 (uart_tx and uart_rx) and visible with nfc-scan-device. The problem is that I have no detection when I use pcsc_scan.

pcsc is compatible with uart_tx and uart_rx ports?

LudovicRousseau commented 6 months ago

You have 2 pcscd installed on your system: version 1.9.9 and version 2.0.1. Remove the version installed in /usr/local/ and try again.

zelix25 commented 6 months ago

I went with a new installation and reinstalled the pcsd package. This is version 1.9.9. But it's always the same.

image image image

LudovicRousseau commented 6 months ago

It looks like you have not installed ifdnfc https://github.com/nfc-tools/ifdnfc

zelix25 commented 6 months ago

it works!

I forgot to install ifdnfc....

Thank you very mush :)