Topic: [SOLVED] Raspberry Pi ACR122 Unable to claim USB interface Device busy

I'm on latest RPi update. I installed libnfc (libnfc-1.7.1-11) like so:

git clone (url to clone - can't post here because urls not allowed)
cd libnfc
autoreconf -vis
./configure --with-drivers=all --enable-debug
make
sudo make install

I get the error that the USB is in use, yet nothing is plugged into USB apart from the reader.

sudo utils/nfc-scan-device -v
info    libnfc.config    Unable to open file: /usr/local/etc/nfc/libnfc.conf
debug    libnfc.config    Unable to open directory: /usr/local/etc/nfc/devices.d
unknown    libnfc.general    log_level is set to 3
debug    libnfc.general    allow_autoscan is set to true
debug    libnfc.general    allow_intrusive_scan is set to false
debug    libnfc.general    0 device(s) defined by user
/home/pi/nfc/libnfc/utils/.libs/lt-nfc-scan-device uses libnfc libnfc-1.7.1-11-gbb9babb
debug    libnfc.driver.acr122_usb    device found: Bus 001 Device 004 Name ACS ACR122
debug    libnfc.general    1 device(s) found using acr122_usb driver
debug    libnfc.general    0 device(s) found using acr122_pcsc driver
debug    libnfc.general    0 device(s) found using pn53x_usb driver
1 NFC device(s) found:
debug    libnfc.driver.acr122_usb    3 element(s) have been decoded from "acr122_usb:001:004"
error    libnfc.driver.acr122_usb    Unable to claim USB interface (Device or resource busy)
debug    libnfc.general    Unable to open "acr122_usb:001:004".
nfc_open failed for acr122_usb:001:004

Here is USB list output:

lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 072f:2200 Advanced Card Systems, Ltd

Bus 001 Device 004 is my card reader. I had it running with the acr122_usb driver, but updating the RPi seems to have broken something. Any help would be appreciated.

Re: [SOLVED] Raspberry Pi ACR122 Unable to claim USB interface Device busy

Hi, please unplug and replug the reader, run   pcsc_scan  and post the output.
Does it detect the reader?

I had a similar issue, and solved it by blacklisting pn533 and nfc drivers, to do so:

nano /etc/modprobe.d/blacklist-libnfc.conf

Add the following

blacklist pn533
blacklist nfc

(save file and quit)
Then, run

modprobe -r pn533 nfc.

Good luck!

3 (edited by skymook 2014-06-28 10:33:33)

Re: [SOLVED] Raspberry Pi ACR122 Unable to claim USB interface Device busy

You are right. The pn533 driver was stopping it working on my Raspberry Pi. Blacklisting the pn533 driver done the trick. Cheers.