nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.72k stars 443 forks source link

TFI Mismatch error #670

Open Ataraxiall opened 2 years ago

Ataraxiall commented 2 years ago

Hi all,

Im trying to work with a PN532 SPI NFC reader but it dont works. Version 1.8.0

debug   libnfc.general  log_level is set to 3
debug   libnfc.general  allow_autoscan is set to true
debug   libnfc.general  allow_intrusive_scan is set to false
debug   libnfc.general  1 device(s) defined by user
debug   libnfc.general    #0 name: "_PN532_SPI", connstring: "pn532_spi:/dev/spidev0.0:500000"
debug   libnfc.general  0 device(s) found using acr122_usb driver
debug   libnfc.general  0 device(s) found using pn53x_usb driver
debug   libnfc.driver.pn532_spi Attempt to open: /dev/spidev0.0 at 500000 Hz.
debug   libnfc.bus.spi  SPI port speed requested to be set to 500000 Hz.
debug   libnfc.bus.spi  ret 0
debug   libnfc.bus.spi  SPI port mode requested to be set to 0.
debug   libnfc.chip.pn53x       Diagnose
debug   libnfc.chip.pn53x       Timeout value: 500
debug   libnfc.bus.spi  RX: 00
debug   libnfc.driver.pn532_spi Got 0 byte from SPI line before wakeup
debug   libnfc.chip.pn53x       SAMConfiguration
debug   libnfc.chip.pn53x       Timeout value: 1000
debug   libnfc.bus.spi  TX: 01 00 00 ff 03 fd d4 14 01 17
debug   libnfc.bus.spi  TX: 02
debug   libnfc.bus.spi  RX: 01
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.bus.spi  TX: 02
debug   libnfc.bus.spi  RX: 01
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 00 00 ff 02
debug   libnfc.bus.spi  RX: fe
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 15
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 00
error   libnfc.driver.pn532_spi TFI Mismatch
pn53x_check_communication: Input / Output Error
debug   libnfc.chip.pn53x       InRelease
debug   libnfc.bus.spi  TX: 01 00 00 ff 03 fd d4 52 00 da
debug   libnfc.bus.spi  TX: 02
debug   libnfc.bus.spi  RX: 01
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.bus.spi  TX: 02
debug   libnfc.bus.spi  RX: 00
debug   libnfc.bus.spi  TX: 02
debug   libnfc.bus.spi  RX: 01
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 00 00 ff 03
debug   libnfc.bus.spi  RX: fd
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: 53
debug   libnfc.bus.spi  TX: 03
debug   libnfc.bus.spi  RX: d8
error   libnfc.driver.pn532_spi TFI Mismatch
debug   libnfc.general  Unable to open "pn532_spi:/dev/spidev0.0:500000".
nfc-list: ERROR: Unable to open NFC device: pn532_spi:/dev/spidev0.0:500000

Any ideas?

Thanks!

DjamikTea commented 2 years ago

Raspberry pi?