Using an NFC Simulator

I would like to know how to use Open NFC Simulator correctly, I already went through a similar entry in: Getting started with the open NFC emulator

but my problem is that after completing the entire instruction in the link above, no luck, can someone give me step-by-step instructions on how to properly load the SDK add-on and run the simulator?

I am doing a Final Year project on Android NFC, using NFC for mobile payments, if anyone has examples of programs or such topics, I am also very grateful.

+1
source share
1 answer

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

The following steps must be performed in order, and if the simulator freezes / freezes before the procedure is completed, steps (5-8) must be performed from the very beginning, and therefore, the order is critical.

  • The following packages must be present:

    OpenNFC Android SDK Add-on: Link

    OpenNFC Core Edition (contains connection center and NFC simulator)

    Echo Server - Echo Tool

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

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

  • Run ConnectionCenter.exe, and if this is the first start, it must be configured to accept client and service provider connections from other computers.

  • Run NfcSimulator.exe with administrator privileges (right-click Run as administrator)

  • Run several (two) Android emulators (AVDs), usually creating AVDs from the AVD Manager, it is enough if this process does not work, and then use emd-arm.exe to run cmd (in the folder - android -sdk-windows / tools / ) with these parameters "emulator-arm.exe -avd", for example "emulator-arm.exe -avd A1"

  • In each emulator, at the first start-up, NFC settings must be configured as follows: IP-10.0.2.2 must be entered and "NFC Controller Simulator" must be selected to implement NFC HAL, and now you can switch Enable / Disable NFC.

    After setting these parameters, NFC Simulator will show the activation of NFC on each device, it will launch the available technologies for emulation.

  • To perform NFC peer-to-peer transfer in the NFC simulator “NFC Device # 2”, double-click, as shown below, the same as if the user places the smartphone next to the NFC reader, and to complete the transfer, the OpenNFC icon, as visible, should be double-clicked, this is similar to when the user removes the smartphone from the reader.

+2
source

Source: https://habr.com/ru/post/948928/


All Articles