Android(安卓)NFC tag and NFC data format的关系
16lz
2021-01-26
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.
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.
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer