No reader available (ACR122) on Mac

Asked by jgarnham

With my ACR122U plugged in on my Mac I run the tagtool.py example (python tagtool.py -d nfc) and the following is output:

[main] enable debug output for 'nfc'
[nfc.clf] searching for reader on path usb
[nfc.clf.transport] using pyusb version 1.x
[nfc.clf.transport] path matches '^(usb|)$'
[nfc.clf.device] loading acr122 driver for usb:072f:2200
[nfc.clf.device] [Errno 19] No such device (it may have been disconnected)
[nfc.clf] no reader available on path usb
[main] no contactless reader found on usb
[main] no contactless reader available

It detects the device and loads the driver but for some reason thinks it has been disconnected when it hasn't been, lsusb output for it:

Bus 020 Device 006: ID 072f:2200 072f ACR122U PICC Interface

Question information

Language:
English Edit question
Status:
Expired
For:
nfcpy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#1

It may simply be that the device can not be opened from a regular user account, least that often happens on Linux. Try as root and if that works you may just need to adjust device permissions. You can also try to see if the output of "python tagtool.py --device usb:072f:2200" helps, for Linux this will inspect access rights and kernel driver issues but I could never test that on Mac.

Revision history for this message
jgarnham (joshua-garnham) said :
#2

When the reader is not connected at all it says:

[nfc.clf] searching for reader on path usb:072f:2200
[nfc.clf] no reader available on path usb:072f:2200
[main] no contactless reader found on usb:072f:2200
[main] no contactless reader available

When connected the output is:

[nfc.clf] searching for reader on path usb:072f:2200
[main] no contactless reader found on usb:072f:2200
[main] no contactless reader available

Also perhaps of note, the output from nfc-info is:

nfc-list uses libnfc 1.7.0
error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:008
nfc-list: ERROR: Unable to open NFC device: acr122_pcsc:ACS ACR122U PICC Interface

But with a card on the reader the PICC interface at least works:

nfc-list uses libnfc 1.7.0
error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:008
NFC device: ACS ACR122U PICC Interface / ACR122U214 opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00 04
       UID (NFCID1): — — — —
      SAK (SEL_RES): 08

Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#3

Have you also tried as superuser?

Revision history for this message
jgarnham (joshua-garnham) said :
#4

No change unfortunately. I feel it may be down to an issue with OS X claiming the device already for itself (through a built in kext) and thus libnfc and nfcpy cannot claim it for itself.

Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#5

Recent (~2 yrs) Linux kernels have NFC kernel driver support and it's enabled for example on a standard Ubuntu installation. Use with nfcpy (and libusb) typically requires to blacklist the pn533 module (port100 for Sony RC-S380). Maybe that's just the same on OS X. I have the following blacklist-nfc.conf in /etc/modprobe.d/

$ cat /etc/modprobe.d/blacklist-nfc.conf
blacklist port100
blacklist pn533

Revision history for this message
jgarnham (joshua-garnham) said :
#6

Unfortunately the modprobe.d doesn't exist on OS X and even creating it and the files make no difference unfortunately. May be a Mac specific issue.

Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#7

Have you installed drivers from ACS or may there be some other PC/SC stuff running? I found this "ps ax |grep pcscd |grep -v grep" to check for pcscd daemon and "pcsctest" to look for PC/SC stack information (http://fatsquirrel.org/oldfartsalmanac/random/macos-x-with-rfid-smartcards-notes/)

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.