Can not connect to ACR122-A9

Asked by James Jiao

Hi Stephen,

We've met on the Plugfest, now I am setting up the nfcpy platform.
Here is the output of "sudo python examples/tagtool.py -d nfc"

[main] enable debug output for module 'nfc'
[nfc.clf] searching for reader with path 'usb'
[nfc.dev.transport] using pyusb version 0.x
[nfc.dev.transport] path matches '^(usb|)$'
[nfc.dev] trying usb:072f:2200
[nfc.dev] import nfc.dev.acr122
[nfc.dev.transport] device probably used by another process
[nfc.clf] no reader found at 'usb'
[main] no contactless reader found

Could you give me some help?

Thanks!

Question information

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

Hi James,
could it be that you have the pcsc daemon running? The ACR122 is PC/SC
compliant.
/Stephen

Revision history for this message
James Jiao (jiaoxf95) said :
#2

Hi Stephen,

I've stopped the pcscd manually, here is the console output:

james@james-ThinkPad-X230:~/Documents/Manual/NFC/nfcpy/nfcpy/examples$ sudo service pcscd stop
james@james-ThinkPad-X230:~/Documents/Manual/NFC/nfcpy/nfcpy/examples$ service pcscd status
 * pcscd is not running
james@james-ThinkPad-X230:~/Documents/Manual/NFC/nfcpy/nfcpy/examples$ python tagtool.py -d nfc
[main] enable debug output for module 'nfc'
[nfc.clf] searching for reader with path 'usb'
[nfc.dev.transport] using pyusb version 0.x
[nfc.dev.transport] path matches '^(usb|)$'
[nfc.dev] trying usb:072f:2200
[nfc.dev] import nfc.dev.acr122
[nfc.dev.transport] device probably used by another process
[nfc.clf] no reader found at 'usb'
[main] no contactless reader found
james@james-ThinkPad-X230:~/Documents/Manual/NFC/nfcpy/nfcpy/examples$ service pcscd status
 * pcscd is not running
james@james-ThinkPad-X230:~/Documents/Manual/NFC/nfcpy/nfcpy/examples$

Still doesn't work, did I missed anything?

Thanks again.

James

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

Sorry, I've only now remembered that it's most likely the Linux Kernel NFC driver that grabs the reader first. Please read the note in the install section of nfcpy's documentation http://nfcpy.readthedocs.org/en/latest/topics/get-started.html#installation and blacklist the driver as described.

Revision history for this message
James Jiao (jiaoxf95) said :
#4

Hi Stephen,

After trying many combinations, I've figured out the issue. The driver for the card reader need to be updated. The driver package for Linux can be found from:
http://www.acs.com.hk/cn/driver/73/acr122u-nfc-%E9%9D%9E%E6%8E%A5%E8%A7%A6%E5%BC%8F%E6%99%BA%E8%83%BD%E5%8D%A1%E8%AF%BB%E5%86%99%E5%99%A8/

Thanks for your help.

Best regards