可以在Android的NFC手机充当一个NFC标签? [英] Can an Android NFC phone act as an NFC tag?

查看:929
本文介绍了可以在Android的NFC手机充当一个NFC标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,到目前为止,一个NFC手机将作为一个NFC读卡器,将从NFC标签读取数据。现在的问题是,我们可以切换这个局面?我们可以做一个Android NFC手机的​​行为作为其中的NFC读写器将获得的数据从标签?

From what I have understood so far, an NFC phone will act as an NFC reader which will read data from an NFC tag. Now my question is, can we switch this around? Can we make an Android NFC phone behave as the tag which an NFC reader will get data from?

感谢您的帮助。

推荐答案

在这个时候,我会回答否或有困难,但随着Android的NFC API的演变,可以随时间而改变。

At this time, I would answer "no" or "with difficulty", but that could change over time as the android NFC API evolves.

有NFC交互的三种模式:

There are three modes of NFC interaction:

  1. 读写器:手机读取标签,写他们。它不是仿照一卡代替的NFC读取器/写入器设备。因此,你不能模拟在此模式下的标签。

  1. Reader-Writer: The phone reads tags and writes to them. It's not emulating a card instead an NFC reader/writer device. Hence, you can't emulate a tag in this mode.

的对等体:手机可以读取并传回NDEF消息。如果标签阅读器支持的对等模式,那么手机可能会充当一个标记。不过,我不知道,如果Android使用自己的协议上LLCP协议(NFC逻辑链路协议),上面这将随后prevent大多数读者从对待手机的NFC标签。

Peer-to-peer: the phone can read and pass back ndef messages. If the tag reader supports peer-to-peer mode, then the phone could possibly act as a tag. However, I'm not sure if android uses its own protocol on top of the LLCP protocol (NFC logical link protocol), which would then prevent most readers from treating the phone as an nfc tag.

卡模拟模式:这款手机采用了安全元件来模拟智能卡或其他非接触装置。我不知道这是尚未推出,但可以提供有前途的。但是,使用安全元件可能需要硬件厂商或其他人来验证您的应用程序/把它的权限来访问安全元素。它不是简单的创建一个普通的NFC Android应用程序。

Card-emulation mode: the phone uses a secure element to emulate a smart card or other contactless device. I am not sure if this is launched yet, but could provide promising. However, using the secure element might require the hardware vendor or some other person to verify your app / give it permissions to access the secure element. It's not as simple as creating a regular NFC android app.

更多细节在这里: <一href="http://www.mail-archive.com/android-developers@googlegroups.com/msg152222.html">http://www.mail-archive.com/android-developers@googlegroups.com/msg152222.html

一个真正的问题是:你为什么要试图模仿一个简单的旧的NFC标签?有一些应用程序,我没有想到的?通常情况下,你会想模仿有点像公交卡,门禁钥匙或信用卡这就需要一个安全元件(我想,但不能肯定)。

A real question would be: why are you trying to emulate a simple old nfc tag? Is there some application I'm not thinking of? Usually, you'd want to emulate something like a transit card, access key, or credit card which would require a secure element (I think, but not sure).

这篇关于可以在Android的NFC手机充当一个NFC标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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