Android NFC tag and NFC data format的关系

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.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值