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
but my problem
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]:
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.
The following packages must be present:
OpenNFC Android SDK Add-on : Link
OpenNFC Core Edition (contains the Connection Center and NFC Simulator)
Echo Server – Echo Tool
The OpenNFC must be installed in the Android SDK (in the folder - android-sdk-windows/add-ons/)
Start the Echo server using the cmd with these parameters – “echotool /p tcp /s 7”
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.
Start the NfcSimulator.exe using Administrative rights (right click Run as Administrator)
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”
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.
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.
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.