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

UART pins in BCM mode compatibility #168

Closed
zelix25 opened this issue Feb 22, 2024 · 6 comments
Closed

UART pins in BCM mode compatibility #168

zelix25 opened this issue Feb 22, 2024 · 6 comments

Comments

@zelix25
Copy link

zelix25 commented Feb 22, 2024

Versions

  • Libnfc with pn532 reader
  • libnfc 1.8.0
  • pcsc-lite version 1.9.9.
    Copyright (C) 1999-2002 by David Corcoran [email protected].
    Copyright (C) 2001-2022 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-gnu libsystemd serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/etc/reader.conf.d
    MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16

Platform

  • PI OS Debian 12
  • libnfc 1.8.0
  • PN532 reader/writer

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

What is the problem?
What result did you expect?

@zelix25
Copy link
Author

zelix25 commented Feb 22, 2024

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

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
Copy link
Author

zelix25 commented Feb 22, 2024

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

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

@zelix25
Copy link
Author

zelix25 commented Feb 22, 2024

it works!

I forgot to install ifdnfc....

Thank you very mush :)

@zelix25 zelix25 closed this as completed Feb 22, 2024
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