Do NFC tags have to be NDEF formated?

泪湿孤枕 提交于 2019-12-12 13:39:48

问题


Do NFC tags have to be NDEF formated to read/write using a standard android app or a PC app?


回答1:


No, the tags don't need to contain data in NDEF format. You can use any format that you want.

The NFC API even provides several methods to read and write to tags in the native format. Here for example is the list of functions for Mifare Ultralight tags:

http://developer.android.com/reference/android/nfc/tech/MifareUltralight.html

For those tag-types where no access API is provided by the NFC Api you can also directly send the commands to the tag using the transceive method.

Note that you loose quite a bit of abstraction if you go low-level. If you use NDEF the NFC-subsystem will abstract the differences between the different tag types for you.



来源:https://stackoverflow.com/questions/8771424/do-nfc-tags-have-to-be-ndef-formated

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!