NFC 标签是否必须采用 NDEF 格式?

发布于 2024-12-25 23:57:15 字数 61 浏览 1 评论 0原文

NFC 标签是否必须采用 NDEF 格式才能使用标准 Android 应用程序或 PC 应用程序进行读/写?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可是我不能没有你 2025-01-01 23:57:15

不,标签不需要包含 NDEF 格式的数据。您可以使用任何您想要的格式。

NFC API 甚至提供了多种以本机格式读取和写入标签的方法。例如,以下是 Mifare Ultralight 标签的功能列表:

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

对于 NFC Api 未提供访问 API 的标签类型,您还可以使用收发方法。

请注意,如果您进入低级别,您会失去相当多的抽象。如果您使用 NDEF,NFC 子系统将为您抽象不同标签类型之间的差异。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文