building and testing libnfc

requirements

modprobe -r pn533_usb
apt install pcsc-tools libccid pcscd
pcsc_scan

install

with binaries

install LibNFC

apt install libnfc-bin libnfc6 libnfc-dev
# libnfc5

–or– from scratch

git clone https://github.com/nfc-tools/libnfc.git
cd libnfc/

cp -i contrib/udev/93-pn53x.rules /lib/udev/rules.d/
#diff -bu contrib/udev/93-pn53x.rules /lib/udev/rules.d/93-pn53x.rules

apt install \
    libusb-dev \
    build-essential autoconf automake \
    libtool libpcsclite-dev \
    doxygen

./make_release.sh
#autoreconf -vis

./configure --sysconfdir=/etc --localstatedir=/var \
    --with-drivers=all

make
make install

ls -lhF /usr/local/lib/libnfc.so.6*
ldconfig

which nfc-list
ldd /usr/local/bin/nfc-list

cd ../

setup

read your kernel log

tail -F kern.log

and plug the ACR122U device, gives

new full-speed USB device number 8 using xhci_hcd
New USB device found, idVendor=072f, idProduct=2200, bcdDevice= 2.14
New USB device strings: Mfr=1, Product=2, SerialNumber=0
Product: ACR122U PICC Interface
Manufacturer: ACS
NFC: NXP PN532 firmware ver 1.6 now attached

now check with

nfc-list -v

troubleshooting

nfc-list uses libnfc 1.8.0
error   libnfc.driver.acr122_usb    Unable to claim USB interface (Device or resource busy)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:003:009

==> building from source doesn’t help (anyhow we’re v1.8 with binaries). rather install pcsc and reload the pn533_usb module

resources

install & setup

Using the ACS ACR122 NFC card reader under linux https://choffee.co.uk/posts/2015/01/nfc_reader_acr122_linux/

How to fix acr122’s and libnfc’s “Unable to claim USB interface” on Linux https://medium.com/@andv/how-to-fix-acr122s-and-libnfcs-unable-to-claim-usb-interface-on-kali-linux-932a34bb8e32

ACR122U NFC USB reader on Linux Mint https://oneguyoneblog.com/2016/11/02/acr122u-nfc-usb-reader-linux-mint/

Touchatag RFID Reader https://wiki.archlinux.org/index.php/Touchatag_RFID_Reader

Drivers for ACR122U https://www.acs.com.hk/en/driver/3/acr122u-usb-nfc-reader/

Part 1: RFID Kit https://www.fuzzysecurity.com/tutorials/rfid/1.html

build

https://stackoverflow.com/questions/18978252/error-libtool-library-used-but-libtool-is-undefined

HOME | GUIDES | PLAYBOOKS | LECTURES | LAB | CONTACT | HTML | CSS
Licensed as MIT