不要NFC标签必须NDEF格式化? [英] Do NFC tags have to be NDEF formated?

查看:132
本文介绍了不要NFC标签必须NDEF格式化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不要NFC标签必须NDEF格式化读/使用标准的Andr​​oid应用程序或PC应用程序写?

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

推荐答案

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

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

器的NFC API甚至提供了几种方法,以读取和写入标签中的本机格式。这里有个例子是一个功能的Mifare标签超轻名单:

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 /技术/ MifareUltralight.html

对于没有访问API是由NFC API,您提供了使用收发方法也可以直接发送命令到标签的标签类型。

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.

需要注意的是你失去相当多的抽象,如果你去低级别的。如果您使用的NDEF NFC功能的子系统会为你不同的标签类型抽象之间的差异。

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.

这篇关于不要NFC标签必须NDEF格式化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆