Top Banner
Introduction to NFC Chamu Goli & Prateek Aggarwal Android Team -India
15
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to NFC

Introduction to NFC

Chamu Goli & Prateek Aggarwal Android Team -India

Page 2: Introduction to NFC

11/10/12 Mutual Mobile India 2

Origin What is NFC How NFC works What can you do using NFC What is an NFC tag NFC Implementation Demo

http://developer.android.com/guide/topics/connectivity/nfc/index.html

Agile ManifestoAgenda

Page 3: Introduction to NFC

11/10/12 Mutual Mobile India 3

In 2004 Nokia, Philips and Sony established the Near Field Communication (NFC) Forum In 2006 Initial specifications for NFC Tags In 2006 Nokia 6131 was the first NFC phone In 2010 Samsung Nexus S: First Android NFC phone shown Available from GingerBread in Android

Origin

Page 4: Introduction to NFC

11/10/12 Mutual Mobile India 4

Short range wireless (1-4cm typical, 10cm theoretical) Speed (106 to 424 kbps) Low friction setup (no discovery, no pairing) Passive targets ( no batteries) Operation frequency is 13.56MHz on ISO/IEC 18000-3 Consumes less power

What is NFC?

Page 5: Introduction to NFC

11/10/12 Mutual Mobile India 5

Reader/Writer Peer-to-Peer Card Emulation

NFC Modes

Page 6: Introduction to NFC

11/10/12 Mutual Mobile India 6

How NFC works

NFC is based on RFID technology that uses magnetic field induction to enable communication between electronic devices in close proximity.

For two devices to communicate using NFC, one device must have an NFC reader/writer and one must have an NFC tag.  The tag is essentially an integrated circuit containing data, connected to an antenna, that can read and written by the reader.

Page 7: Introduction to NFC

11/10/12 Mutual Mobile India 7

Download music or video from a smart poster.

Exchange business cards, Pay bus or train or air fare,   Parking Tickets, Pay at Kiosks, Pay and purchase at Point of Sale Terminals

Access controls in office, hotels, airports ,home etc.

What can you do using NFC

Page 8: Introduction to NFC

11/10/12 Mutual Mobile India 8

NFC tags are passive devices that can be used to communicate with active NFC devices (an active NFC reader/writer)

Types of Tags: Topaz Mifare Ultralight Sony Felica Mifare Classic

What is an NFC tag

Page 9: Introduction to NFC

11/10/12 Mutual Mobile India 9

Tag Standard Read-Write capable Read-only Memory Communication speed

NFC tag factors

Page 10: Introduction to NFC

11/10/12 Mutual Mobile India 10

Writer Reader Changes in Manifest file

NFC Implementation

Page 11: Introduction to NFC

11/10/12 Mutual Mobile India 11

Get NFC Adapter Enable foreground dispatch Check whether the tag is writable Create NDEF Message with data to be written Write the message to the Tag

NFC Writer

Page 12: Introduction to NFC

11/10/12 Mutual Mobile India 12

NFC Reader

Add intent-filter in the manifest Get the Intent Check the MIME type Get the NdefMessage from the intent Get the Ndefrecords from the NdefMessage

Page 13: Introduction to NFC

11/10/12 Mutual Mobile India 13

Add Permission (android.permission.NFC)

Add uses-feature (android.hardware.nfc)

Add intent-filter for the ReaderActivity

<intent-filter>       <action android:name="android.nfc.action.NDEF_DISCOVERED" />     <data android:mimeType="application/vnd.mutualmobile.easyinventory" />     <category android:name="android.intent.category.DEFAULT" />

</intent-filter>

Changes in Manifest

Page 14: Introduction to NFC

11/10/12 Mutual Mobile India 14

Easy Inventory POC

Launchpad URL :****************SVN URL :********************

Demo

Page 15: Introduction to NFC

11/10/12 Mutual Mobile India 15

THANK YOU