L
L
lowderplay2018-12-13 15:36:02
Raspberry Pi
lowderplay, 2018-12-13 15:36:02

How to use PN532 in RFIDIOt on RPi 3?

Good afternoon! I have such an nfc module PN532-NFC-RFID-Easy-Module-R2-03.jpgwhich is connected to RPi 3 via Arduino UNO (uart -> usb).
In libnfc it is defined as it should

$ nfc-list
nfc-list uses libnfc 1.7.0
NFC device: pn532_uart:/dev/ttyACM0 opened

but in the program with RFIDIOt:
$ python2 NFC.py
Could not find PCSC daemon, try with option -n <code></code>if you don't have a reader

The question is how can the pn532 module be used with a PC/SC. Tried different methods. My config (reader.conf):
DEVICENAME        /dev/ttyACM0
FRIENDLYNAME      "Arduino serial"
LIBPATH           /usr/local/lib/pcsc/drivers/serial/libccidtwin.so

PC/SC log:
00000399 [1996292096] readerfactory.c:1075:RFInitializeReader() Attempting startup of Arduino serial 00 00 using /usr/local/lib/pcsc/drivers/serial/libccidtwin.so
00001177 [1996292096] readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000858 [1996292096] ifdhandler.c:1961:init_driver() Driver version: 1.4.30
00007351 [1996292096] ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000683 [1996292096] ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00002100 [1996292096] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: /dev/ttyACM0
00001688 [1996292096] ccid_serial.c:837:OpenSerialByName() Set serial port baudrate to 115200 and correct configuration
02002751 [1996292096] ccid_serial.c:863:OpenSerialByName() Get firmware failed. Maybe the reader is not connected
00000262 [1996292096] ifdhandler.c:150:CreateChannelByNameOrChannel() failed
00000059 [1996292096] readerfactory.c:1106:RFInitializeReader() Open Port 0x0 Failed (/dev/ttyACM0)

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spetros, 2018-12-22
@Spetros

I saw a similar glitch with the acs122 reader (it is also on pn532), for which it was necessary to unload / disable the kernel module called pn533. Otherwise, pcscd could not work with it. Perhaps in your case, too, something similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question