NFC & YUN

YunOS has very good lib to support NFC, unfortunately it is out date.

libfreefare:0.2.3

libfreefare

libnfc:1.4.2

Libnfc

I backport both lib to current version:

cd /mnt/sda1
wget -O  nfc.tar.gz https://www.dropbox.com/s/moyx9otp7fpptzn/nfc.tar.gz?dl=0 --no-check-certificate
tar -zxvf nfc.tar.gz
cd nfc
opkg install libnfc_1.7.0-1_ar71xx.ipk
opkg install libnfc-bin_1.7.0-1_ar71xx.ipk
opkg install libnfc-examples_1.7.0-1_ar71xx.ipk
opkg install libfreefare_0.4.0-1_ar71xx.ipk
opkg install libfreefare-examples_0.4.0-1_ar71xx.ipk

Testing with mifare card:

root@Arduino:/mnt/sda1# /usr/bin/nfc-poll
/usr/bin/nfc-poll uses libnfc 1.1.0-30-ge81b29b
NFC reader: SCM Micro / SCL3711-NFC&RW opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04
       UID (NFCID1): d4  b0  48  2f
      SAK (SEL_RES): 08

The User space applications come with libs:

/usr/bin/mifare-desfire-access
/usr/bin/mifare-desfire-write-ndef
/usr/bin/mifare-desfire-read-ndef
/usr/bin/mifare-classic-write-ndef
/usr/bin/mifare-desfire-create-ndef
/usr/bin/mifare-desfire-ev1-configure-ats
/usr/bin/mifare-classic-read-ndef
/usr/bin/mifare-desfire-ev1-configure-default-key
/usr/bin/mifare-ultralight-info
/usr/bin/mifare-desfire-format
/usr/bin/mifare-desfire-ev1-configure-random-uid
/usr/bin/mifare-desfire-info
/usr/bin/mifare-classic-format
/usr/bin/nfc-mfultralight
/usr/bin/nfc-mfclassic
/usr/bin/nfc-list
/usr/bin/nfc-emulate-uid
/usr/bin/nfc-anticol
/usr/bin/nfc-poll
/usr/bin/nfc-relay
/usr/bin/nfc-relay-picc
/usr/bin/nfc-dep-target
/usr/bin/nfc-emulate-tag
/usr/bin/nfc-emulate-forum-tag4
/usr/bin/nfc-dep-initiator

The reader is SCM SCL3711:

/usr/bin/nfc-emulate-uid
/usr/bin/nfc-emulate-tag
/usr/bin/nfc-emulate-forum-tag4

emulate-tag by Yun and reader

desfire card

/usr/bin/mifare-desfire-access
/usr/bin/mifare-desfire-write-ndef
/usr/bin/mifare-desfire-read-ndef
/usr/bin/mifare-desfire-create-ndef
/usr/bin/mifare-desfire-info

New desfire card ev1 card

/usr/bin/mifare-desfire-ev1-configure-ats
/usr/bin/mifare-desfire-ev1-configure-default-key
/usr/bin/mifare-desfire-ev1-configure-random-uid

Thanks sonnyyu for the answer and the tips, but I already have all the hardware I need.
I need to solve the issue of having Yun and my NFC shields communicating together.
And besides, my problem at the moment is that Yun DOES NOT PRINT ANYTHING ON THE SERIAL!!!!!
I can't understand why!!! Is this a normal behavior or not? Should I return the board?
Is it defective??

  • NFC Forum Type 1 Broadcom Topaz
  • NFC Forum Type 2 Mifare Ultralight, Mifare Ultralight C
  • NFC Forum Type 3 Sony FeliCa
  • NFC Forum Type 4 Mifare Desfire (ev1/ev2), NXP SmartMX with JCOP

Mifare Classic is not an NFC Forum compatible card. It requires NXP's Crypto 1 support that is
only available in NXP reader ICs and crypto keys that are not published in NFC Forum specifications.

NXP SmartMX with JCOP are widely use at ePassport. The ePassport is the next generation of travel documents and has many advantages: It reduces the risk of tampering and identity fraud by adding more layers of identity checks, all of which must match.

You need faster CPU to mange it (Yun is fine.), Arduino would not go far.

Last three month NXP semiconductor stock chart.

NXP semiconductor manufactures NFC IC of SCL3711, Elecfreaks NFC Shield v1.6 as well as Apple Iphone 6. Iphone 6 is released at 10/2014.

The list of NXP NFC IC chip:

  • NXP PN531 Obsolete
  • NXP PN532 Most of NFC shield, if not all.
  • NXP PN533 (SCM SCL3711)
  • NXP PR533
  • NXP PN544
  • NXP PN65N
  • NXP PN65V10 Apple Iphone 6
  • NXP PN7120

Mifare Classic is not an NFC Forum compatible card. Mifare Classic 1K/4K is not NFC card!

Dear All
I get an error No NFC devise found with a reader SCL011
are there any drivers fro this ?

Thank you in advance

Alex