Topic: NXP EXPLORE-NFC with libnfc

NXP and Farnell claim "EXPLORE-NFC is supported by libnfc" but, as far as I can see, there aren't any PN512 drivers available within libnfc.

I've tried using PN53x with SPI but libnfc doesn't appear to find the EXPLORE-NFC card.

I'm running: LIBNFC_LOG_LEVEL=3 nfc-scan-device under libnfc-1.7.1 and get:

error    libnfc.driver.pn532_spi    Unable to wait for SPI data. (RX)
debug    libnfc.general    Unable to open "pn532_spi:/dev/spidev0.0:500000".
nfc_open failed for pn532_spi:/dev/spidev0.0:500000

Has anyone managed to get the EXPLORE-NFC working with libnfc?

Re: NXP EXPLORE-NFC with libnfc

Hi there,

I just got my EXPLORE-NFC module, also hoping to get it working with libnfc. I tried with libnfc 1.7.0 from Arch Linux AUR and 1.7.1 built directly from git.

Configure prints this nice list:

Selected drivers:
   acr122_pcsc...... no
   acr122_usb....... yes
   acr122s.......... yes
   arygon........... yes
   pn53x_usb........ yes
   pn532_uart....... yes
   pn532_spi.......  yes
   pn532_i2c........ yes

... not even a pn512 in sight.

[root@Pi ~]# nfc-scan-device
debug    libnfc.general    log_level is set to 3
...
No NFC device found.

If I manually set the driver to pn532_spi I get timeouts, both on spidev0.0 and spidev0.1:

debug    libnfc.general      #0 name: "pn512", connstring: "pn532_spi:/dev/spidev0.1:500000"
nfc-scan-device uses libnfc libnfc-1.7.1-12-gb978c45
pn53x_check_communication: Timeout

Did you, by any chance, already e-mail NXP about libnfc support?

3 (edited by btempleton 2014-06-02 02:06:56)

Re: NXP EXPLORE-NFC with libnfc

It looks like you've got exactly the same symptoms as me.

I've run the NXP code successfully and the spidev_test.c so I know the EXPLORE-NFC card is OK.

I haven't contacted NXP but that will be my next stop.

acidicX wrote:

Hi there,

I just got my EXPLORE-NFC module, also hoping to get it working with libnfc. I tried with libnfc 1.7.0 from Arch Linux AUR and 1.7.1 built directly from git.

Configure prints this nice list:

Selected drivers:
   acr122_pcsc...... no
   acr122_usb....... yes
   acr122s.......... yes
   arygon........... yes
   pn53x_usb........ yes
   pn532_uart....... yes
   pn532_spi.......  yes
   pn532_i2c........ yes

... not even a pn512 in sight.

[root@Pi ~]# nfc-scan-device
debug    libnfc.general    log_level is set to 3
...
No NFC device found.

If I manually set the driver to pn532_spi I get timeouts, both on spidev0.0 and spidev0.1:

debug    libnfc.general      #0 name: "pn512", connstring: "pn532_spi:/dev/spidev0.1:500000"
nfc-scan-device uses libnfc libnfc-1.7.1-12-gb978c45
pn53x_check_communication: Timeout

Did you, by any chance, already e-mail NXP about libnfc support?

Re: NXP EXPLORE-NFC with libnfc

FYI, I did contact NXP but I am still waiting for an answer :-(

Re: NXP EXPLORE-NFC with libnfc

Any news on this?

Re: NXP EXPLORE-NFC with libnfc

Nope, NXP did not answer. Great customer service...
I'll try Farnell next, see what's up.

7 (edited by sysnux 2014-10-06 04:27:02)

Re: NXP EXPLORE-NFC with libnfc

The PN532 based NFC module from micro4you works with libnfc / libfreefare, and is cheaper than NXP Explore. Tested on Raspberry Pi:

pi@raspberrypi ~/deb $ nfc-scan-device -i
nfc-scan-device uses libnfc 1.7.1
1 NFC device(s) found:
- pn532_uart:/dev/ttyAMA0:
    pn532_uart:/dev/ttyAMA0:115200

pi@raspberrypi ~/deb $ mifare-ultralight-info
Tag with UID 04ecc981a02280 is a Mifare UltraLight

pi@raspberrypi ~/deb $ mifare-classic-read-ndef -o xxx
Found Mifare Classic 1k with UID 3d33fcc8. Read NDEF [yN] y
No MAD detected.