I try to use an ACR122 USB NFC-Reader on Mac OSX Mojave 10.14.6 with libnfc and I've got a "Unable to write to USB (Result too large)" error when I try to use the command LIBNFC_LOG_LEVEL=3 nfc-list
:
info libnfc.config Unable to open file: /usr/local/etc/nfc/libnfc.conf
debug libnfc.config key: [device.allow_autoscan], value: [false]
info libnfc.config Unknown key in config line: device.allow_autoscan = false
debug libnfc.config key: [device.allow_intrusive_scan], value: [false]
info libnfc.config Unknown key in config line: device.allow_intrusive_scan = false
debug libnfc.config key: [device.log_level], value: [3]
info libnfc.config Unknown key in config line: device.log_level = 3
debug 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
nfc-list uses libnfc 1.7.1
debug libnfc.driver.acr122_usb device found: Bus 020 Device 020 Name ACS ACR122
debug libnfc.general 1 device(s) found using acr122_usb driver
debug libnfc.driver.acr122_usb 3 element(s) have been decoded from "acr122_usb:020:020"
debug libnfc.driver.acr122_usb TX: 62 00 00 00 00 00 00 01 00 00
error libnfc.driver.acr122_usb Unable to write to USB (Result too large)
debug libnfc.general Unable to open "acr122_usb:020:020".
nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:020
When I started troubleshooting I had an "Unable to Claim USB Interface" error, which other people had as well. So I tried the following things from this stackoverflow question and this github issue I found:
- install libnfc with
brew install libnfc
--> Got the "Unable to Claim..." error. - Using sudo -> No change
- Disable the PC/SC daemon -> Did not do anything
- Editing
/usr/libexec/SmartCardServices/drivers/ifd-ccid.bundle/Contents/Info.plist
-> Did not help - Uninstall libnfc, compile the project myself and disable ifreader. I tried to build it with both drivers acr122_usb and acr122_pcsc -> Got now a "Unable to write to USB (Result too large)" error instead.
- Compile with:
autoreconf -iv && ./configure --with-drivers=acr122_usb && make clean && make && make install
sudo launchctl remove com.apple.ifdreader
sudo launchctl stop com.apple.ifdreader
- Compile with:
After troubleshooting now I'm stuck with the error and have no idea how to solve the problem. The readers light is not blinking red anymore, but from the error the device is clearly connected to the computer and available.
As a side node: I connect the reader over a USB Hub, since the reader has no USB C cable, but that shouldn't be a problem. Has anyone had the same problem or another approach I could try?