cuamckuu / nfc-frog

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

Segmentation Fault #2

Closed lps83 closed 4 years ago

lps83 commented 4 years ago

Hi, I just tried your lib in different mode; I just have a lot of Hexa in my console and then a Segmentation fault. Do you have any idea ? Im trying on raspbian.

Thanks

Edit : device_nfc.cpp:89 std::count << HEX(ret.data[I]) << " ";

cuamckuu commented 4 years ago

Hi, I think, that it's kind of "hardware" error, not software.

Make sure that you hold your card near nfc-scanner long enought (and close enought). If you will move card away, then there will be a segfault, I used to see same thing several times before.

lps83 commented 4 years ago

Thanks for your answer. I'm going to try with an official Adafruid PN532. Do you think the raspberry pi can be the problem ?

lps83 commented 4 years ago

Just tried with another PN532 board and a new FTDI cable on my other linux ...

`sudo ./nfc-frog GPO [Info] NFC reader: pn532_uart:/dev/ttyUSB0 opened. [Info] Searching card...

error libnfc.driver.pn532_uart Application level error detected [Info] Response from SELECT PPSE: 00 00 ... 45Erreur de segmentation`

cuamckuu commented 4 years ago

As I said: Make sure that you hold your card near nfc-scanner long enought (and close enought)

Also check that you have libnfc(>= 1.7.1), and that it works correctly by running nfc-list and nfc-pool with your card or with another one.