This is a C library that provides read and authentication to the acr122u smart reader.
Install pcsclite
and then execute the following to move winscard.h
to the correct location.
sudo cp /usr/include/PCSC/* /usr/include/
I have realised this ^^ is not needed and is due to my incompotence, I will not fix this though.
You also need to install acsccid
for the ACR122U then remove pn533
after connecting it.
# Plug reader in
sudo rmmod pn533_usb && pn533
# Stop the pcscd if it is running
# sudo systemctl stop pcscd
sudo pcscd -f -T
# add a main function?
make
- Copy
sdk.h
and,sdk.c
- Add the linker arguments
pkg-config libpcsclite --libs
- Enjoy.