PN532 NFC Shield + NDEF Messages

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

PN532 NFC Shield + NDEF Messages

Postby shailentj » Sun Apr 15, 2012 4:45 pm

Can the PN532 NFC Shield for Arduino (http://www.adafruit.com/products/789) read NDEF messages?

I used my Nexus S to record a plain text message on a Mifare Classic 1K tag. If I use my Nexus S to read the tag again, I see the recorded message.

Now, if I mount the PN532 NFC Shield on my Arduino board, and use the libnfc library, is it possible to read the recorded message fromthe tag?

This seems to be the utmost basic functionality of this NFC ecosystem. Is it possible? Google could not provide any information about that. I also could not find any occurrence of the keyword NDEF in the libnfc library documentation.
shailentj
 
Posts: 3
Joined: Sun Apr 15, 2012 4:12 pm

Re: PN532 NFC Shield + NDEF Messages

Postby adafruit » Mon Apr 16, 2012 9:51 am

we have some basic code and NDEF examples but no direct tutorial for this - check out the library and code linked from the breakout board
User avatar
adafruit
 
Posts: 10550
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: PN532 NFC Shield + NDEF Messages

Postby shailentj » Mon Apr 16, 2012 10:13 am

adafruit wrote:we have some basic code and NDEF examples but no direct tutorial for this - check out the library and code linked from the breakout board


The library page (https://github.com/adafruit/PN532), which can be accessed from the breakout board's page (http://www.adafruit.com/products/364) seems to be down.

Could you please kindly have a look into the matter?
shailentj
 
Posts: 3
Joined: Sun Apr 15, 2012 4:12 pm


Re: PN532 NFC Shield + NDEF Messages

Postby shailentj » Mon May 07, 2012 1:42 pm

The code provided by Adafruit did not contain anything to extract NDEF messages from NFC tags.

Therefore, I decided to write my own library to do this. I have recently started. Please feel free to have a look at it, and improve it where necessary.

https://github.com/shailensobhee/NDEF-lib
shailentj
 
Posts: 3
Joined: Sun Apr 15, 2012 4:12 pm

Re: PN532 NFC Shield + NDEF Messages

Postby scott-42 » Mon May 07, 2012 10:54 pm

Nothing in that code repo right now. Did you forget to push?
scott-42
 
Posts: 123
Joined: Mon May 30, 2011 9:46 am
Location: Santa Clara, CA

Re: PN532 NFC Shield + NDEF Messages

Postby ktownsend » Tue May 08, 2012 5:32 pm

The I2C version of the library includes a basic NDEF example to format a Mifare Classic 1K card with a URL that can be read on a phone, for example:
https://github.com/adafruit/Adafruit_NFCShield_I2C

Look in the examples folder.

It gets a bitty messy, but the basics of NDEF are also covered in the Adafruit PN532 wiki: http://www.ladyada.net/products/rfidnfc/ndef.html
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: Google [Bot] and 11 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]