NFC - P2P模式的场景 [英] NFC - p2p mode scenario

查看:988
本文介绍了NFC - P2P模式的场景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我最新的Andr​​oid SDK明白它有可能为手机作为一个标签,以通过NFC阅读器阅读的行为。

As far as I understand with the latest Android SDK it is possible for the phone to act as a 'Tag' to be read by a NFC reader.

我想执行以下情形:


  • 手机被放在旁边的NFC读写器

  • 的NFC读写器收集了GUID(基本上,我想读通过NFC一些数据,可用于唯一标识电话/所有者,没有任何幻想)

  • 这GUID,然后推到一个数据库戳一起

收集的数据这样将通过一个网页供浏览。

Data collected that way would be browsable via a web page.

1)这是用于NFC可能/有效的使用场景?

1) Is this a possible/valid usage scenario for NFC?

2)什么样的设备要做到这一点? (我有一个已经NFC功能的手机)

2) What kind of equipment is necessary to accomplish this? (I do have a NFC-enabled phone already)


  • 我在读者特别感兴趣(一个基于USB的廉价解决方案将是preferable) - 它必须是有可能得到的数据从它(这样可以再后来插入到数据库)。什么建议?

感谢

推荐答案

它种取决于你的意思是什么手机充当变量。你真的不能做商用设备卡仿真。你可以用一个根深蒂固的手机和最新版本的CyanogenMod的虽然与的一定的局限性的。为手机通过官方SDK主动发送出的数据的唯一方法是通过在Android的光束,它可以让你交换NDEF消息的P2P模式。如果为你工作,只要你可以有你的主机端程序接收和处理那些(你需要找到SNEP或谷歌专有的NDEF推协议的实现),整个系统可以正常工作。这个作品开箱即用两个Android手机,你就必须做更多的工作外部读卡器。

It kind of depends on what you mean by 'the phone to act as a "Tag"'. You can't really do card emulation on commercial devices. You can with a rooted phone and the latest version of CyanogenMod though, with certain limitations. The only way for the phone to actively send out data via the official SDK is in P2P mode via Android beam which lets you exchange NDEF messages. If that works for you, as long as you can have your host-side program receive and process those (you will need to find an implementation of SNEP or the Google proprietary 'NDEF push' protocols), the whole system could work. This works out of the box with two Android phones, for an external reader you would have to do more work.

是一种廉价而且相对普通读者与多平台的驱动程序。它确实有一些计时问题,但对于大多数的目的应该做的。

This is a cheap and relatively common reader with drivers for multiple platforms. It does have some timing issues, but should do for most purposes.

这篇关于NFC - P2P模式的场景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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