User manual
NXP Semiconductors
AN11480
Quick Start Up Guide for EXPLORE NFC working with Raspberry Pi
AN11480
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2013. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.0 — 17 December 2013
279710
13 of 30
7. Card Emulation project
Suppose you want to organize an outdoor game similar to Paper Chase and you want to
give it a digital touch. In addition you also want to give some audience the opportunity to
follow the game live.
Then Card Emulation is the key technology for that purpose. The idea behind using it for
Paper Chase is that the organizer may place a Raspberry Pi with the EXPLORE-NFC
board and a mobile internet connection next to every riddle. A player that solves the
riddle can than send the solution with his own NFC enabled mobile phone contactless to
the Raspberry Pi. The application on the Raspberry Pi then can decide how to process or
where to publish the solution. That makes it possible for people outside following the
progress of the Paper Chase game. In the example this guide refers to, the messages
are being posted on Facebook.
Another use case could be a feedback station in a restaurant. With that approach a
restaurant manager could set up the software on the Raspberry Pi accordingly and give
the customer a way to give feedback with his own mobile phone very easily.
The main purpose for Card Emulation is to exchange a small amount of data between
two devices contactless over NFC, e.g. the Raspberry Pi with the EXPLORE-NFC board
and an NFC enabled mobile phone. In Card Emulation mode you can exchange all kind
of data that can also be written onto an NFC card.
7.1 How does it work?
In total there are three applications involved in this project.
• An application on an Android mobile phone. This application provides the
functionality to read, compose and send messages to the Raspberry Pi over
NFC.
• An application on the Raspberry Pi that emulates a contactless card for the data
exchange over NFC.
• A second application on the Raspberry Pi written in Java that receives the
message from the Card Emulation application on the Raspberry Pi and posts it
over the Internet on Facebook.
The application, that takes the message from a smart phone to be posted to Facebook,
emulates an ISO/IEC 14443A Type 2 Tag. For detailed specification please refer to the
web page of the NFC Forum [17.]. General description of the Card Emulation project
The PN512 supports 4 different operating modes:
• Reader/Writer mode supporting ISO/IEC 14443A/MIFARE and FeliCa compliant
scheme
• Reader/Writer mode supporting ISO/IEC 14443B
• Card Operation mode supporting ISO/IEC 14443A/MIFARE and FeliCa
compliant scheme
• NFCIP-1 mode
The card operation mode is passive mode, in which the PN512 does not generate an RF
field but acts as a card that modulates the field for communication with the reader.