Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NFC tag and NFC data format-Android

Tags:

android

nfc

I started studying android NFC ,I am Confused about NFC tag(i think it is hardware component,Am i correct) and NFC data Format

  1. Can any one list the types of NFC tags and NFC data Formats.
  2. If NDEF is data format,Where it is possible to write in all NFC tags.

I am confused about NDEF and Mifare whether they are tags or data Format.

Thanks.

like image 204
Nasrudeen Avatar asked Jan 19 '12 13:01

Nasrudeen


1 Answers

There are 4 standard NFC tag types: Type 1, Type 2, Type 3, Type 4 They differ in how you access data on them, and on the communication frame work you use to talk to them. (This gets into the mechanics of how data is exchanged) Mifare is a proprietary standard made by NXP Mifare Ultralite is a type 2 tag

The tags differ in the maximum amount of data you can store on them, and the maximum amount of data that can be exchanged per command (Type 2 tags can read 16 bytes at a time, and can write 4 bytes at a time)

NDEF is a way of formatting data on the tags. Mifare and the 4 tag types can all be formatted to store data in a NDEF format.

Android recognizes these tag types when you use the NDEF class for accessing and filtering tags it scans.

Not all Nfc tags (even the standard ones and Mifare) will be set up for Ndef, or will hold Ndef formatted data. But Android automates this process, so you don't have to worry about what type of tag you have, only if it can store Ndef data on it.

Mifare, as a proprietary standard, is not guaranteed to have it's own class in Android, so you may have to write your own stack for accessing it on a phone. (Nexus S supports Mifare, and can write Ndef data to it, if you are wondering.)

I hope this helps.

like image 140
Ben Ward Avatar answered Oct 13 '22 22:10

Ben Ward