P2P在Android中使用Open NFC虚拟设备 [英] P2P in Android using Open NFC virtual device

查看:375
本文介绍了P2P在Android中使用Open NFC虚拟设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名学生,在一个硕士项目。我想用NFC P2P创建一个应用程序。

I am a student, working on a Master's project. I want to create an app using NFC P2P.

我试图在Windows上Android SDK中模拟P2P模式。我也跟着开放NFC编译快速HOWTO提供了Android版页上的步骤(的http://开-nfc.org/wp/editions/android/ )。我配置了两台设备,并使用IP作为10 0.2.2支持NFC技术。我用模拟器和连接中心,P2P模式两个NFC开放虚拟设备(API 10)连接起来,但没有成功。

I am trying to emulate P2P mode on android sdk on Windows. I followed the steps provided in Open NFC Compilation quick HOWTO on the Android edition page (http://open-nfc.org/wp/editions/android/). I configured the two devices and enabled NFC using IP as 10. 0.2.2. I used the simulator and connection center to link up two open nfc virtual devices(API 10) in p2p mode but was not successful.

请让我知道,如果你已经尝试过这一点,并取得了成功。

Please let me know if you have tried this and were successful.

推荐答案

我有同样的问题。

我尝试用模拟器,并成功地与标准标记交换的应用程序标签。
我使用 4.3.3 gingerbird插件4.3.3和内核版本

I experimented with the simulator and successfully exchanged tags with the standard tag app. I use the 4.3.3 gingerbird addon and 4.3.3 core edition.

订单:


  1. 开始在管理模式下连接中心。

  2. 启动NFC模拟器。

  3. 启动Open-NFC 4.3.3虚拟设备(=#1)

  4. 启动Open-NFC 4.3.3虚拟设备(=#2)

  5. 两个设备上启用NFC。

  6. 先从ForegroundNdefPush应用一台设备上。 (与标准应用程序标签,你可以共享用于测试的标签。)

  7. 启用在NFC模拟器NFC设备#2。

  8. 在NFC模拟器上的NFC设备#2双击禁用设备。

  9. NFC标签被成功交换。

我想这是因为你必须在设备齐心协力而去。

I think this is because you have to pull the devices together and away.

我的问题是,一个或多个标签交换后,NFC模拟器crashs。也许是因为64位Windows。

My problem is that the NFC simulator crashs after one or several tag exchanges. Maybe it's because the 64 bit windows.

问候

这篇关于P2P在Android中使用Open NFC虚拟设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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