cuamckuu / nfc-frog

Contactless EMV credit card reader
MIT License
284 stars 52 forks source link

Segmentation fault #11

Closed TinyFr0g closed 2 years ago

TinyFr0g commented 2 years ago

error libnfc.driver.pn532_spi Application level error detected

Untitled

i got the same issues on i2c spi and usb interface....

cuamckuu commented 2 years ago

Hi, this kind of errors might be caused by inaccurate use of reader.

Try using more stable setup: place credit card closer to reader and keep it there for longer time.

TinyFr0g commented 2 years ago

Hi, this kind of errors might be caused by inaccurate use of reader.

Try using more stable setup: place credit card closer to reader and keep it there for longer time.

I do not get a reading like in your video, I have tried with more than 10 different types of credit cards and in all of them I get the same error as in the image. At the end the program closes ...

i try with 2 type of readers 1) pn532 itead studio 2) pn532 from https://www.amazon.com/Wireless-Module-Reader-Communication-Arduino/dp/B07V5YKTM9

both tested on spi and i2c...

i2c test Untitled2
fotos para webs

error libnfc.driver.pn532_i2c Application level error detected (127)

Any suggestion?

cuamckuu commented 2 years ago

It might be hardware or wiring error. Libnfc provides helpful utils nfc-scan-device and nfc-list. Try running them to verify that your reader is properly connected and works.

Also try adding export LIBNFC_INTRUSIVE_SCAN=true before running above commands and it might be helpful to use sudo

Some more info here: http://nfc-tools.org/index.php/Libnfc#POSIX_systems

cuamckuu commented 2 years ago

Btw, I am using pn532 like one from your amazon link, but I am connecting it via UART

TinyFr0g commented 2 years ago

@cuamckuu i got the same problem now with UART on both readers Untitled3

i run the command with sudo on both SPI and I2C on the last 2 test what version of libnfc do you have installed?

cuamckuu commented 2 years ago

Last time I used latest from releases page, but now I don't have any hardware wired to test.

What was the output from sudo nfc-scan-device and sudo nfc-list?

TinyFr0g commented 2 years ago

Last time I used latest from releases page, but now I don't have any hardware wired to test.

What was the output from sudo nfc-scan-device and sudo nfc-list?

@cuamckuu

pi@raspberrypi:~/Downloads/nfc-frog $ sudo nfc-scan-device nfc-scan-device uses libnfc libnfc-1.8.0-61-g6d0e8a5 1 NFC device(s) found:

pi@raspberrypi:~/Downloads/nfc-frog $ sudo nfc-list NFC device: PN532 board via UART opened error libnfc.driver.pn532_uart Application level error detected error libnfc.driver.pn532_uart Application level error detected

cuamckuu commented 2 years ago

So it's a problem with the way you connected your reader to board. Google some tutorials and pins schemes for proper connection