• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
NFC & RFID on Android
 

NFC & RFID on Android

on

  • 122,822 views

The Google Nexus S offers support for Near Field Communication (NFC), an extension to an RFID smart card protocol popularly used for secure access, metro passes (Oyster/Clipper), and electronic money ...

The Google Nexus S offers support for Near Field Communication (NFC), an extension to an RFID smart card protocol popularly used for secure access, metro passes (Oyster/Clipper), and electronic money (FeliCa/Octopus). NFC in smartphones promises adding these features to the phone you carry by allowing the it to emulate both RFID tag and reader.

NFC additionally adds new capabilities like exchanging configuration data such as WiFi settings, trading vCard contact information, reading URLs, triggering SMS text messages or initiating calls, and secure bi-directional communication between NFC devices.

This session will cover what NFC and RFID is and is not, what Android on the Nexus S is currently capable of, and some examples of how to add NFC to your apps.

http://where2conf.com/where2011/public/schedule/detail/18443

Statistics

Views

Total Views
122,822
Views on SlideShare
91,682
Embed Views
31,140

Actions

Likes
170
Downloads
0
Comments
13

53 Embeds 31,140

http://todbot.com 26063
http://www.eletronica.com 2575
http://www.opengardensblog.futuretext.com 744
http://jerryfahrni.com 534
http://www.johansetiawan.com 414
http://orione.wordpress.com 161
http://baryum.net 144
http://translate.googleusercontent.com 120
http://teeker.wordpress.com 66
http://malotur.blogspot.com 62
https://tasks.crowdflower.com 40
url_unknown 30
http://www.sinoutopia.org 24
http://www.scoop.it 24
http://paper.li 13
http://malotur.blogspot.it 11
http://malotur.blogspot.ru 10
http://takkk.tk 9
http://128.1.49.182 8
http://wegotguru.com 8
http://www.slideshare.net 6
http://webcache.googleusercontent.com 6
http://www.squidoo.com 5
https://twitter.com 5
http://somethingisafoot.tumblr.com 5
http://9.douban.com 4
http://malotur.blogspot.in 4
http://www.google.com.br 3
http://www.dev.dic.brother.co.jp 3
http://twitter.com 3
http://www.techgig.com 3
http://indevrserver 3
http://freemmer.tistory.com 2
http://www.pearltrees.com 2
http://207.46.192.232 2
http://www.google.com 2
http://localhost 2
http://127.0.0.1 2
http://search.mywebsearch.com 2
http://131.253.14.250 2
http://a0.twimg.com 2
http://131.253.14.98 1
http://feeds.feedburner.com 1
http://us-w1.rockmelt.com 1
http://www.todbot.com. 1
http://malotur.blogspot.co.uk 1
http://tubemote.com 1
http://www.todbot.com 1
http://todbot.com. 1
http://fanyi.youdao.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

110 of 13 previous next Post a comment

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • WorkDaddy is the best application for office/corporate management in Android platform. Fully compatible with RFID/NFC cards. Can keep attendance calculate working hour, plan event and also if the user requires WorkDaddy can generate salary. But the salary generation plugin is not built in in Google Play version. As per the user demand it can be added. WorkDaddy is available in Google Play. Try it now. Trust me its worthy of downloading.
    Are you sure you want to
    Your message goes here
    Processing…
  • good.
    Are you sure you want to
    Your message goes here
    Processing…
  • very good thanks
    Are you sure you want to
    Your message goes here
    Processing…
  • good
    Are you sure you want to
    Your message goes here
    Processing…
  • thnks
    Are you sure you want to
    Your message goes here
    Processing…

110 of 13 previous next

Post Comment
Edit your comment
  • \n
  • \n
  • I’m Tod, aka “todbot”. I’m a professional tinkerer.\n\nI founded ThingM with Mike Kuniavsky five years ago. We’re a ubiquitous computing device studio, a micro-OEM, producing a range of “Smart LED” products called BlinkM.\n\nI’ve written articles for MAKE magazine, had projects featured on MAKE:TV, and wrote the book on hacking the Roomba robot vacuum.\n\nI’ve been involved in the Arduino community for about five years too, and have produced a set of instructional material and hacking products.\n\nFinally, I’m active in the local Los Angeles hacker community. In 2010 I co-founded\nCRASH Space, the first LA hackerspace. And I work with local Los Angeles artists to help them add technology to their works.\n \n \n
  • First, how many have played with RFID tags? How many with NFC on Android?\n\nNFC is a type of RFID.\nRFID tech is being used increasingly for identification & financial transactions. \nAs keys to open locks of all kinds.\nAs the mobile phone has become a “convergence” device for other portable electronics,\nso too it may become a universal “keyring” for RFID applications.\n\n\nsf muni pic: http://www.flickr.com/photos/jlkinsel/5084445802/\n\n
  • Some of the promises:\none-touch setup of WiFi & Bluetooth\nsimple touch-based data exchange\nPC logins\ncar personalization\nsmart posters\n\nhttp://www.nfc-forum.org/events/oulu_spotlight/Technical_Architecture.pdfhttp://www.nfc-forum.org/aboutnfc/tech_enabler/\nhttp://www.nfc-forum.org/aboutnfc/nfc_in_action/\n
  • If the rumors about the next iPhone are true, we could see a flood of NFC applications in the near future.\n
  • A ThingM prototype, I designed a high-density RFID reader network for WineM, a winerack you can ask questions of. It knows what wine is in it and where it’s located. Each wine slot has an RFID reader. Each wine bottle has an RFID tag.\nWhen a wine bottle is inserted, the winerack registers that fact.\nhttp://winem.thingm.com/\n\nFor the Henry Ford Museum, we prototyped “Ghost Tours” where visitors had “magic tickets” that created an interactive narrative flow on top of existing museum exhibits.\n\nAnother startup I co-founded was AFK, with Ben Cerveny (Bloom) and Kevin Slavin (area/code).\nAFK focused on building platforms for spatial interaction.\nWe worked with Busch Entertainment (SeaWorld/Busch Gardens) on new projects domestically and in Dubai. \nOne of the things I designed was an active and semi-active RFID ticket sensor network that was to blanket an entire park.\n\n
  • Okay so let’s talk about what RFID actually is.\n
  • I used to think RFID tags stored lots of data.\nAnd that the RFID tag had some meaningful communication with its reader.\nNo. At its basic, RFID is just a barcode.\n\nRFID tags are just another kind of machine-readable number.\nLike barcodes, or QR codes, or magstripes.\n\nAll RFID tags have a permanent UID. Some tags have an additional writable area of 64bytes to 4kB.\nSome tags have a crypto engine for doing key exchanges, but those are in the minority.\n\n\n
  • \n
  • Not localization - no position data can be inferred from a tag read\nNot proximity detection - you can’t tell how far away a tag is from a reader\nNot crypto\n\nIt’s easy to use RFID but hard to use it securely. So eschew the use of it for sensitive information, instead use it for entertainment and fun.\n\n
  • This is the only schematic in here, promise.\n\nThe reader does two things: \n- generate a high-power RF field to power the tag\n- officiate the protocol between the two devices\n\nMost tags are “passive”. They have no power source. Instead, powered by the reader.\nPower and communication are transmitted inductively, like a wireless charging sytems.\n\nReaders control the data transmission. Readers energize the tags.\n\nData rate is between 100 kbps and 800 kbps. \nRF carrier is at 13.56MHz for NFC RFID. \n\nhttp://www.rfid-handbook.com/rfid/types_of_rfid.html\n\n\n
  • The insides of these cheap tiny tags. \nIt’s essentially three sections: an RF interface, a memory, and a controller joining the two.\n\nSome tags have rewritable EEPROM, some just have ROM. \nSome have only a few bytes (just enough for the UID), some have up to 4kB.\n\nhttp://www.rfid-handbook.com/rfid/types_of_rfid.html\n
  • \n
  • Tickets in the form of RFID wristbands are becoming increasingly popular in amusement parks.\nBecause they are waterproof and wrist-attached, people can carry them anywhere. \n\nUse their RFID bracelet to lock up their personal effects.\n\nSince visitors carry them everywhere, they can be leveraged for other purposes.\nVisitors can purchase food and merchandise. Alcohol served only to non-minors.\n\n
  • Dec 2010, guy walks in with a motorcycle helmut on, walked up to craps table, and walked out with $1.5 million in chips. The casino unregisters the chips. Thief comes in to cash some in, security grab him.\n\nhttp://www.minyanville.com/businessmarkets/articles/bellagio-anthony-carleo-rfid-las-vegas/2/3/2011/id/32595\nimage: http://news.cnet.com/2009-7355_3-5568411.html?tag=mncol;txt\n\n
  • And what’s NFC then?\n
  • Instead of just using the UID, a key into a database,\nnow can have interesting self-contained data\n\nimage: http://www.elasticspace.com/2005/12/nokia-3220-nfc\n\n
  • \n\nimage: http://www.nfc-forum.org/events/oulu_spotlight/Technical_Architecture.pdf\n
  • In addition to the low-level protocol specs, \nNFC also defines a set of mime-types and microformats for concisely embedding certain types of information, like URLs, where it has codes for common strings like “https://www.”\n\n\nimage: http://wiki.forum.nokia.com/\n
  • free business models here, no charge.\n\n
  • \n
  • \n
  • \n
  • Nexus S NFC antenna in back cover; two spring-loaded contacts make the connection.\nThe Secure Element chip is on the blue board for tag emulation. \nIt’s a SmartMX combined into the same package as the PN544 NFC controller\n
  • \nI’ve been looking at them mostly for testing of NFC & RFID\n\n
  • AnyTag is open source : http://code.google.com/p/anytag-android/\ntaglet is implemented as a web app somehow.\n
  • \n
  • They recompiled the SDK to get access to previously hidden APIs.\n\nThese guys are good.\n\nhttp://www.nfc-research.at/\n\n
  • NXP produces many RFID chips and reader products.\nTagWriter can “back up” NFC tags.\n\nHere is an example of TagWriter reading one of the 46-byte read-only Touchatag tags.\n\n\n
  • And here’s an example of TagWriter writing to a 1kB Mifare tag.\n\n
  • \n
  • Show some of these apps in action on the video camera.\n
  • \nOkay let’s look at what it would take to add RFID/NFC capability to an app.\n\n
  • \n
  • If you’ve never programmed in Android before, here’s the basic lifecycle of the primary chunk of code you write: the Activity\n\nimage: http://stuffthathappens.com/blog/2008/11/01/android-activity-lifecycle/\n
  • Every Android app has an AndroidManifest.xml file that describes needed resources and permissions.\nAn app’s activities, intents and services and permissions are declared in the manifest file\n\n\nhttp://stackoverflow.com/questions/4815718/getting-the-nfc-hardware-id-in-android\n
  • These are the two most important things to add to your code.\nIn your app’s AndroidManifest.xml\n
  • There are three different intents you can register for:\n- NDEF_DISCOVERED - What kind of NFC-formatted NDEF packet you’re looking for\n- TECH_DISCOVERED – What kind of RFID tag you’re expecting\n- TAG_DISCOVERED - Is a tag present or not\n
  • Seems you need to have “category” or it doesn’t work.\n\n
  • Filter for what kind of tag hardware you want to look at.\n\n
  • With all that setup, just getIntent() then get an array of NdefMessages containing an array of NdefRecords.\n
  • Like most interesting sensors on smartphones, you can’t use the simulator to test. You test on the device. Google provides a trick around this.\n
  • \n
  • \n
  • If you want to explore RFID & NFC outside of Android (which is useful for debugging Android), you should get some reader hardware.\n\n\n
  • The tags it comes with are read-only, but pre-formated with NFC URL data.\n\n
  • Open source and awesome, is used to explore possible exploits to RFID and NFC.\n\n
  • \nAt SparkFun at http://www.sparkfun.com/products/10126\nshould probably also get: http://www.sparkfun.com/products/10162\n\n
  • http://www.libnfc.org/\n
  • http://www.open-nfc.org/\n
  • Print your own NFC tags, with multiple tag types.\nSame web interface as online sticker makers, but also contains RFID tags.\n\n
  • \n
  • hat-tip to Carlyn for this video\nhttp://www.youtube.com/watch?v=IQ6xGMSOu1E\n\n\n
  • \n

NFC & RFID on Android NFC & RFID on Android Presentation Transcript