打开NFC使用模拟器 [英] Open NFC Simulator Usage

查看:1056
本文介绍了打开NFC使用模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何正确使用Open NFC模拟器,我已经通过了类似的帖子在了:
开始使用NFC打开模拟器

I would like to know how to properly use the Open NFC Simulator, i have already gone through a similar post in: Getting started with Open NFC emulator

但我的问题是,在上面没有运气的链接下面所有的指令后,会有人给我一步就如何正确加载SDK插件和启动模拟器步说明?

but my problem is after following all the instruction in the link above no luck, could someone give me step by step instructions on how to properly load the SDK addon and start the simulator?

我在做Android上的NFC的毕业设计,使用NFC做移动支付,如果任何人有样本程序或等主题,还大大AP preciated。

I'm doing an Final Year Project on Android NFC, using NFC to do mobile payments, if anybody has sample programs or such topics it is also greatly appreciated.

推荐答案

好吧,我会把这里的步骤下来,它会在这个环节中列出的步骤部分复制:入门打开NFC模拟器,但对如何做到这一点一些指针,以便打开NFC模拟器可用于模拟两个设备[对等网络]:

Ok i will put the steps down here, it will a partial replicate of the steps listed in the this link: Getting started with Open NFC emulator, but with some pointers on how to do it so that the Open NFC Simulator can be used to simulate two devices [Peer-to-peer]:

下面的步骤,并且需要在顺序来执行,并且如果模拟器挂起/冻结之前的过程完成的步骤(5-8)需要从开始时进行,因此顺序是至关重要的。

The following steps and need to be performed in order and if the simulator hangs/freeze before the procedure is completed the steps (5-8) need to be performed from the beginning and hence the order is crucial.


  1. 下面的包必须是present:

  1. The following packages must be present:

OpenNFC Android SDK中的附加:链接

OpenNFC Android SDK Add-on : Link

OpenNFC核心版(包含连接中心和NFC模拟器)

OpenNFC Core Edition (contains the Connection Center and NFC Simulator)

回声服务器 - 回声工具

该OpenNFC必须安装在Android SDK(该文件夹中 - Android的SDK窗口/插件/)

The OpenNFC must be installed in the Android SDK (in the folder - android-sdk-windows/add-ons/)

使用CMD使用这些参数启动Echo服务器 - echotool / p TCP /秒7

Start the Echo server using the cmd with these parameters – "echotool /p tcp /s 7"

启动ConnectionCenter.exe并且如果它是第一次运行,它必须被配置为接受来自其他机器服务客户和提供者的连接。

Start the ConnectionCenter.exe and if it is the first run, it must be configured to accept service client and provider connections from other machines.

启动NfcSimulator.exe使用管理权限(右键以管理员身份运行)

Start the NfcSimulator.exe using Administrative rights (right click Run as Administrator)

启动多个(两个)的Andr​​oid模拟器(AVD),通常建立AVD的从AVD管理就足够了,如果这个过程不工作,然后使用CMD,运行模拟器,arm.exe(该文件夹中 - Android的SDK窗口/工具/)与这些参数模拟器-arm.exe -avd如模拟器-arm.exe -avd A1

Start Multiple (Two) Android Emulators (AVD), conventionally creating AVD’s from the AVD Manager is sufficient, if this process doesn’t work, then using cmd, run the emulator-arm.exe (in the folder - android-sdk-windows/tools/) with these parameters "emulator-arm.exe –avd " e.g. "emulator-arm.exe –avd A1"

在在第一次运行的各种仿真器中,NFC设置必须配置如下图所示:
该IP - 10.0.2.2必须输入以及NFC控制器模拟器必须选择NFC HAL实施,现在启用/禁用NFC可以切换

In each emulator at first run, the NFC settings must be configured as shown below: The IP – 10.0.2.2 must be entered and the "NFC Controller Simulator" must be selected for NFC HAL Implementation and now the Enable/Disable NFC can be toggled.

一旦这些设置都配置了NFC模拟器将显示NFC的激活每一个设备,它会亮起来的可用技术来模拟。

Once these setting are configured the NFC Simulator will show the activation of the NFC in each device, it will light up the available technologies to emulate.

要执行NFC对等网络传输,在NFC模拟器,将NFC设备#2必须是双如下图所示,这是因为当用户把智能手机的NFC读卡器附近点击,并完成转让OpenNFC图标,可见必须用双点击,这是因为当用户从阅读器删除智能手机类似。

To perform NFC peer-to-peer transfer, in the NFC Simulator, the "NFC Device #2" must be double clicked as shown below, this is as when the user places the Smartphone near the NFC reader, and to complete the transfer the OpenNFC icon as visible must be double clicked, this is similar as when the user removes the Smartphone from the reader.

这篇关于打开NFC使用模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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