I just got myself a new ACR122U-A9 nfc reader that I need to set up with libnfc on ubuntu 18.10. It needs to work with libnfc because mfoc interfaces wit that (If there is a way to use mfoc without libnf, great! That solution would help me as well!) After installing libnfc 1.7.1 and doing a few hours of research I still did not get it to work. Every time I use sudo nfc-list
and pcscd is not running it gives me the following error:
nfc-list uses libnfc 1.7.1
error libnfc.driver.acr122_usb Unable to set alternate setting on USB interface (Connection timed out)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:004:005
If pcscd isrunning, the error reads as follows:
nfc-list uses libnfc 1.7.1
error libnfc.driver.acr122_usb Unable to set alternate setting on USB interface (Connection timed out)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:004:007
nfc-list: ERROR: Unable to open NFC device: acr122_pcsc:ACS ACR122U 00 00
And sometimes this shows up as well:
nfc-list uses libnfc 1.7.1
error libnfc.driver.acr122_usb Unable to set alternate setting on USB interface (Connection timed out)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:004:007
error libnfc.driver.acr122_pcsc No ACR122 firmware received, Error: 80100016
nfc-list: ERROR: Unable to open NFC device: acr122_pcsc:ACS ACR122U 00 00
What I read from that is:
- libnfc works
- There is some driver issue
- something blocks the reader
- that something is pcscd (accoarding to the internet)
I already did the following things:
- Blacklist
nfc
pn533
pn533_usb
in the file/etc/modprobe.d/blacklist-libnfc.conf
- stop the pcscd deamon
- remove the drivers stated above manually using
sudo modprobe -r <driver>
- install the device drivers from here: https://www.acs.com.hk/en/products/3/acr122u-usb-nfc-reader/
- restart my laptop about 100 times
- pray to the nfc god
Can anyone help me out and/or tell me what I did wrong? Thank you in advance!
PS: I somehow got it to work with pcscd, but since I couldn't figure out how to make mfoc use that (if that's even possible) it's no use.