NFC协议栈在Android OS [英] NFC stacks on Android OS

查看:279
本文介绍了NFC协议栈在Android OS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我了解NFC的Andr​​oid栈的现状如何?随着 OS 2.3 有被释放的小NFC的支持(仅限于恩智浦半导体标签读取),后来谷歌增加了API,所以在 OS 2.3.3 的范围更广标签支撑并也p2p的是可能的。

我的问题是如何在打开NFC 堆栈( HTTP://www.open -nfc.org/ )适合当前状态?

据我所知打开NFC协议栈是平行的活动,是可选的替代当前栈。由于其描述它克服了谷歌的NFC协议栈实现的一些限制,使新的硬件adaptions(即新的标签类型的支持),更容易...

要我的理解这个栈的目的是通过使用设备制造商,而不是移动开发人员 - 是这样吗?或者是有可能下载开放式NFC协议栈,编译成库,投入.apk文件,并作为一种替代谷歌堆栈使用?

但是,即使这将是可能的应用程序开发人员使用Open NFC协议栈 - ?是否有意义与新的2.3.3操作系统特性

解决方案
  

有人可以帮助我理解   在NFC的Andr​​oid当前状态   栈?随着OS 2.3有   发布小NFC的支持(限   只有NXP标签读取),后来   谷歌增加了API,因此在OS 2.3.3   支撑在更宽范围的标签   并且还p2p的是可能的。

     

我的问题是如何打开NFC协议栈   (http://www.open-nfc.org/)适合   当前状态??

目前(安卓2.3.4),Android平台并没有集成NFC打开堆栈。该堆栈有几个优点:并不限于一个特定的NFC硬件,移植到许多不同的环境中(不仅机器人),许多额外的功能相比,目前的堆叠。而另一方面,因为Open NFC是不是标准的Andr​​oid环境的一部分,它需要一些工作(但它其实很简单)使用这个栈在Android平台上。开放NFC文档描述了这一过程。

  

据我所知打开NFC堆栈   平行活性和可选   更换当前栈。应有   它说明它克服了   在谷歌的NFC协议栈的限制   实施和使新硬件   adaptions(即新标签支持   类型)更容易...

正确的。

  

据我了解这个堆栈   旨在由所使用的设备   制造商,而不是移动开发者 -   是对的吗?或者是有可能   下载开放式NFC协议栈,编译   它作为一个库,投入.apk文件和使用   作为一种替代的谷歌叠

不幸的是,因为标准Android内核不支持模块加载,打开NFC堆栈不能简单地安装为另一种应用,它需要一个内核变化。但是,一旦内核替换,这是很容易部署和使用Open NFC协议栈。

  

但是,即使将有可能对于   应用程序开发者使用打开   NFC协议栈 - 是否有意义与   新的2.3.3操作系统功能?

这是应用程序开发人员或许应该坚持的操作系统特性,即使再有限的,因为他们保证的code在任何NFC功能的手机的便携性。但是,如果你试图用多的特点比自带的Andr​​oid,开放式NFC是一种很好的选择。

希望这有助于...

Can someone help me understanding the current state of the NFC Android stack? With the OS 2.3 there was released small NFC support (limited only to NXP tags reading), later the Google augment the API, so in OS 2.3.3 the wider range of tags is supported and also p2p is possible.

My question is how the Open NFC stack (http://www.open-nfc.org/) fits into current state?

As I understand the Open NFC stack is parallel activity and is optional replacement to the current stack. Due to its description it overcomes some limits of the Google NFC stack implementation and makes new HW adaptions (i.e. support for new tag types) easier…

To my understanding this stack is intended to by used by device manufacturers, not mobile developers – is that right? Or is it possible to download the Open NFC stack, compile it as a library, put into .apk and use as an alternative the Google stack?

But even it will be possible for application developers to use the Open NFC stack – does it make sense with the new 2.3.3 OS features?

解决方案

Can someone help me understanding the current state of the NFC Android stack? With the OS 2.3 there was released small NFC support (limited only to NXP tags reading), later the Google augment the API, so in OS 2.3.3 the wider range of tags is supported and also p2p is possible.

My question is how the Open NFC stack (http://www.open-nfc.org/) fits into current state??

At the moment (Android 2.3.4), the Android platform does not integrate the Open NFC stack. This stack has several advantages: not limited to one particular NFC hardware, portable to many different environments (not only Android), many additional features compared to the current stack. On the other hand, because Open NFC is not part of the standard Android environment, it requires some work (but it is actually quite easy) to use this stack in an Android platform. The Open NFC documentation describes this process.

As I understand the Open NFC stack is parallel activity and is optional replacement to the current stack. Due to its description it overcomes some limits of the Google NFC stack implementation and makes new HW adaptions (i.e. support for new tag types) easier…

Correct.

To my understanding this stack is intended to by used by device manufacturers, not mobile developers – is that right? Or is it possible to download the Open NFC stack, compile it as a library, put into .apk and use as an alternative the Google stack?

Unfortunately, because the standard Android kernel does not support modules loading, the Open NFC stack cannot be simply installed as another application, it requires a kernel change. But once the kernel is replaced, it is quite easy to deploy and use the Open NFC stack.

But even it will be possible for application developers to use the Open NFC stack – does it make sense with the new 2.3.3 OS features?

An application developer should probably stick to the OS features, even if more limited, since they assure the portability of the code over any NFC-enabled phone. But if you are trying to use "more" features than what comes with Android, Open NFC is a good candidate.

Hope this helps...

这篇关于NFC协议栈在Android OS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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