marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Cannot open NFC device, Touchatag (ACR122U), r1463 #208

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. executing bundled nfc-list
or
2. calling nfc_open() in the library

What is the expected output? What do you see instead?
nfc-list uses libnfc 1.6.0-rc1 (r1463)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:001:006

What version of the product are you using? On what operating system?
Ubuntu 12.04 64-bit

Original issue reported on code.google.com by drwhitew...@gmail.com on 4 Oct 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Thanks for reporting.
BTW, it seems to be the same problem than Adam:
http://www.libnfc.org/community/post/3763

FYI, acr122_usb is a new but experimental driver for Touchatag/ACR122U devices.
The goal is to be able to abort command and bring timeouts in addition to 
remove PCSC dependency if user want to.

So you can use acr122_pcsc driver if you need the old driver:
./configure --with-drivers=acr122_pcsc && make clean all

Original comment by romu...@libnfc.org on 4 Oct 2012 at 5:21

GoogleCodeExporter commented 9 years ago
hmm, when I run nfc-list as root, it works. But before that, I have also 
restarted pcscd, so this may be indeed related to Adam's problem. I will try 
the same thing out tomorrow without restarting pcscd.

Original comment by drwhitew...@gmail.com on 4 Oct 2012 at 5:49

GoogleCodeExporter commented 9 years ago
Even after restarting pcscd, libnfc will not run correctly when not running as 
root. Will try --with-drivers=acr122_pcsc option

Original comment by drwhitew...@gmail.com on 4 Oct 2012 at 8:39

GoogleCodeExporter commented 9 years ago
Have you installed udev rules? That fixed the root/non-root issues for me.

Original comment by fnargwibble on 4 Oct 2012 at 9:57

GoogleCodeExporter commented 9 years ago
Running ./configure --with-drivers=acr122_pcsc && make clean all fixed this 
issue for me on Mac Lion

Original comment by isaac...@gmail.com on 14 Nov 2012 at 5:40

GoogleCodeExporter commented 9 years ago
Working for me as well, thanks :)

Original comment by drwhitew...@gmail.com on 14 Nov 2012 at 6:17

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 5 Dec 2012 at 3:42