I hope it is okay to ask the community and a specific person:
I am trying to setup the my raspberry pi to read nfc cards with the music-cards project by @hovee
The problem is, that my the config.py will not get any devices.
[email protected]:~/music-cards $ python config.py Choose the reader from list Device Number:
I do not know python and I am not a developer but i checked the evdev library which is used in the config.py.
This should recognize any usb device as far as I know.
- Run: the nfc reader was plugged in and no device was found.
- Run: I plugged in my keyboard and it shows up
[email protected]:~/music-cards $ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import evdev >>> evdev.list_devices()  >>> evdev.list_devices() ['/dev/input/event1', '/dev/input/event0']
I am using this nfc card reader (acr122u): https://www.acs.com.hk/en/products/3/acr122u-usb-nfc-reader/
I did install libnfc 1.7.1 with
./configure --with-drivers=acr122_usb make sudo make install
I can see my device with on the system
lsusb Bus 001 Device 015: ID 0835:8502 Action Star Enterprise Co., Ltd Bus 001 Device 014: ID 0835:8500 Action Star Enterprise Co., Ltd Bus 001 Device 016: ID 072f:2200 Advanced Card Systems, Ltd ACR122U Bus 001 Device 013: ID 0835:8501 Action Star Enterprise Co., Ltd Bus 001 Device 012: ID 0835:8500 Action Star Enterprise Co., Ltd Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
It is connected via a USB hub since the internet says you should do that for power reasons
I can list the device with the nfc only with sudo:
[email protected]:~/music-cards $ nfc-list nfc-list uses libnfc 1.7.1 error libnfc.driver.acr122_usb Unable to claim USB interface (Operation not permitted) nfc-list: ERROR: Unable to open NFC device: acr122_usb:001:016 [email protected]:~/music-cards $ sudo nfc-list nfc-list uses libnfc 1.7.1 NFC device: ACS / ACR122U PICC Interface opened
Can someone guide me into the right direction?
Maybe I did miss some configuration somewhere.