mfoc/mfcuk not working with PN532 Adafruit shield via UART on Raspberry Pi3

417 views
Skip to first unread message

aselt...@gmail.com

unread,
Nov 11, 2018, 2:18:49 PM11/11/18
to nfc-tools
Hi,

I successfully downloaded and compiled libnfc-1.7.1, mfoc and mfcuk on my Raspberry Pi3 following these instructions: https://blandais.github.io/mifare/en; I use a Adafruit PN532 Arduino shield v1.0 clone connected to my RPi trough a FT232-based USB to UART adapter.
I created the libnfc configuration file libnfc.conf in /etc/nfc with this content:

allow_autoscan = false
allow_intrusive_scan = true
log_level = 1
device.name="PN532 Adafruit Arduino Shield"
device.connstring = "pn532_uart:/dev/ttyUSB1"

All works well with demos available in libnfc-1.7.1/examples folder (the PN532 responds at the pn53x-diagnose demo and I can also read tags info using nfc-poll); I also see TX/RX LEDs on the FT232 board flash

This is the output of pn53x-diagnose with log_level = 1:

/home/pi/libnfc/libnfc-1.7.1/examples/.libs/lt-pn53x-diagnose uses libnfc 1.7.1
NFC device [pn532_uart:/dev/ttyUSB1] opened.
 Communication line test: OK
 ROM test: OK
 RAM test: OK

However, when I try to use mfoc -O dump_file.mfd command I obtain almost immediately the answer No NFC device found and LED on the FT232 breakout board don't flash at all.

Same result with mfcuk; the command ./mfcuk -C given in the src folder os mfcuk gives this output without any flash of the RX/TX LEDs on the FT232 breakout board

mfcuk - 0.3.8
Mifare Classic DarkSide Key Recovery Tool - 0.3
by Andrei Costin, *****@gmail.com, http://andreicostin.com

mfcuk: ERROR: connecting to NFC reader

It is not clear to me if mfoc/mfcuk uses the same configuration file of libnfc-1.7.1

Please, is there anyone else that uses mfoc/mfcuk on the Raspberry Pi3 and can give me some hints to solve these problems?

Thanks in advance to anyone who will answer.


Reply all
Reply to author
Forward
0 new messages