Android Edition

Quick access: overview , Using the Simulator , requirements , latest news

 

Overview

The Open NFC for Android edition archive contains:

Here is what you can do with this Edition:

Back to top

 

HOWTO use the NFC Simulator with the Open NFC add-on included in the delivery

This paragraph is dedicated to people who want to emulate NFC basic functions (tag reading, P2P exchanges) without having access to real NFC hardware.

We describe here how to use the add-on image included in the Open NFC for Android delivery, along with the NFC Simulator tool included in the Open NFC SDK and Core deliveries. The steps below do not require compilation of the Android image, but a working Android SDK environment is a requirement (we will use adb).

  1. Download the latest Open NFC for Android edition, as well as the corresponding Open NFC SDK edition from this website: Downloads. Extract both archives.
  2. Copy the content of the “add-ons” folder from the Android Edition archive into your Android SDK’s “add-ons” folder.
  3. Start your AVD manager software from your Android SDK, and create a new Android Virtual Device. During the creation, chose the “Target” corresponding to the Open NFC edition you have installed. You can configure other parameters as you see fit.
  4. Start your newly-created AVD. NFC is not available yet, this is normal. The emulator may take a few minutes to start this AVD image, this is normal the first time it is run.
  5. Once the AVD is fully started (Android system is usable), run the following commands on your host machine:
  6. # Change to your installed Android SDK tools, e.g.:
    cd \android-sdk\platform-tools

    # Check that the AVD image is correctly detected by your adb:
    adb devices
    List of devices attached
    emulator-5554 device

    # Retrieve the default connection_center_access file:
    adb pull /data/connection_center_access
    0 KB/s (11 bytes in 0.217s)

    # Now edit the connection_center_access file on your computer, replace the content with “S 10.0.2.2″ (see the included Porting Guide for details why this step is required).

    # Replace the file on the AVD image.
    adb push connection_center_access /data/connection_center_access
    0 KB/s (11 bytes in 0.136s)

  7. Once this change is completed, shutdown your running emulator.
  8. Start the Connection Center software from your Open NFC SDK edition.
  9. In the Connection Center, change to the "Connection" tab, and enable the option "Accept service client connections from other machines". Close the Connection Center and re-start in order for the option to be active. Be sure to allow the connections to the software in your firewall, if any.
  10. Start the NfcSimulator software from your Open NFC SDK edition. You should see some activity in the Connection Center window, showing that the NfcSimulator tool has successfully connected.
  11. Now, start your AVD again. You should get additional activity in the Connection Center window, showing that client source "nfcc_hal" has connected.
  12. Once the AVD image has booted, you can see the reader modes started on the NfcSimulator software. You can start emulating NFC events from this point.

Back to top

 

Requirements

In order to develop applications for Android using Open NFC, you will have to comply to the requirements of the Android SDK. Please check on Android SDK home page for more information.

The requirements for running the Connection Center and NFC Simulator tools are listed here.

In order to re-compile the complete Android File System image with included Open NFC, you will need an environment compliant with the Android Build Environment described here.

A device that can run the Android operating system is necessarily powerful enough to run the Open NFC software stack, there is no additional requirements in this area.

Back to top

 

Recent news in this Edition

2013/03/06

The new 4.5.2 release of Open NFC (build 16234) is now available on the website. This new release includes: Core Edition SDK Edition Linux Edition NFC HAL for MicroRead Edition and the Android Edition for Android Jelly Bean 4.2.1_r1 platform For a complete description of what is included in each Edition, please refer to the [...]

Read the rest of this entry...

Posted in Android Edition, Core Edition, Editions, HAL, Linux Edition, Microread, SDK Edition, Simulator

Back to top

 

2013/02/07

We are happy to announce our final release of Open NFC 4.5.1 is now also available for the Android 4.2, Jelly Bean platform. If you are interested in getting this edition of Open NFC for a different Android platform, please contact us. Please refer to the release notes of the Core Edition for the list [...]

Read the rest of this entry...

Posted in Android Edition

Back to top

 

2012/10/22

We are happy to release today our new Android porting of Open NFC. We have completely redesigned the architecture of this porting to be far less intrusive in the Android system. As a result, our new delivery integrates more smoothly in the Android file system, it is also more maintainable and stable. Our Porting Guide [...]

Read the rest of this entry...

Posted in Android Edition

Back to top

 

Click here to see older news.

Except as noted otherwise, this content is licensed under the terms of the Apache 2.0 License. For details and restrictions, see the Content License.
Open NFC is a registered trademark of Inside Secure, All logos and graphics are copyrighted.