Monday, April 30, 2012

Near Field Communication - Android Perspective

NFC stands for Near Field Communication .A technology which aims at communicating between two NFC compatible devices, tags(NFC Tags) , Readers. Writers, etc placed in a close range of ~4cm.A device communicating with other NFC device can communicate in three ways :
> Reader - Writer Modes
   In this mode a device can read or write from any other NFC device.A phoen with NFC enabled can read or write a tag(NFC memory) from the another Phone.The data being read is in the form of NDEF (NFC Data Exchange Format) format which is genearlly exchanged  with the NFC device.
> Peer -2- peer Mode
In this mode two device can interact with each other using the Peer-2-peer messages and the communicating link is the NFC.Of course the speed is very slow yet this is a zero configuration setup mode.
> Card Emulation modes
This is the most widely yet most rarely used mode .In this a phone can actually emulate(can behave) as a Credit card, or any secure payment card .The information is stored in the NFC Secure element which can reside in the phone at three different places(one at a time)
> SIM card

> SD card
> Embedded Secure Element called SmartMx(similar to CN072 is a secure element in the Smart MX family)

According to the NXP documentation of PN544, three SE variants are
- SIM Card (via UICC)
- Embedded (SmartMX security chip)
- SD Card
yes Keys are private and most likely needs to be provided by Service Provider

CN072 is a secure element in the Smart MX family

I have tried some commands, which I found on page eleven at the
following pdf document:

public static final byte[] KEY_DEFAULT =  {(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF, 

Public byte [] exchangeAPDU(int handle,byte [] data){...} 

I tested with an Omnikey 5321, but that reader automatically activated
the SMX up to the ISO 14443-4 layer, so it was not possible to transmit
any MIFARE Commands.

All these are connected via SWP_UICC(SIM Card) or NFC(NFC wired mode - SD Card or SmartMx).The connection is between NFC Controller like pn544(a NFC micro controller fomr the NXP) and the Secure Element.

     NFC Android Code Study :
        How NFC works right from API level to System Level

      NFC Java classes :

     NFC Application :
    Hardware abstraction layer from the NXP :


With JavaME access to the secure element was provided with JSR177 which supported the communication with smart card applications usind APDU commands - atleast Read

Latest and uptoDate Discussion is going here.

Phones available to purchase today:
  • The Samsung Galaxy Nexus is the latest Google reference handset and is now shipping in the UK and the US. The phone runs Android 4.0 Ice Cream Sandwich. Follow the Galaxy Nexus story here.
  • The Google Nexus S, a full-featured smartphone running Android 2.3 'Gingerbread' and manufactured by Samsung, has NFC support built in. The device, the first widely available and easily obtainable NFC handset, is available at retail in the US (together with a 4G variant, the Nexus S 4G from Sprint), the UK and 27 other countries.
  • Samsung has begun shipping the Galaxy S II Android 2.3 handset. An NFC version of the phone has been available since launch in Korea, but is only just starting to appear in other markets, via Orangein Europe and AT&T and T-Mobile in the USA.
  • The BlackBerry Bold 9790, codenamed 'Bellagio', and the BlackBerry Curve 9380, also known as 'Orlando' were announced in November 2011 and are now shipping.
  • The BlackBerry Bold 9900 and 9930, the first handsets from Research in Motion to include NFC, were announced in early May 2011 and are now shipping.
  • The BlackBerry Curve 9350BlackBerry Curve 9360 andBlackBerry Curve 9370 were announced in August 2011 and are now shipping.
  • The Porsche Design P'9981 by BlackBerry is a 'restricted edition' leather and stainless steel-clad designer handset announced in October 2011 that retails at US$2,000. The device was referred to as the R47 and the Bold 9980 during its development.
  • An NFC version of the Samsung Galaxy Note tablet phone is available in Korea and will be coming to AT&T in the US during the second quarter of 2012.
  • The Nokia C7 smartphone contains NFC hardware and, via Symbian Belle, can now be used for NFC tag reading and writing applications. The C7 will be able to support secure NFC services such as mobile payments from the first half of 2012. The Nokia Astound, the US version of the Nokia C7 which is exclusive to T-Mobile and is positioned as an entry-level smartphone, also comes with NFC.
  • The Nokia N9 is a high-end MeeGo-based tablet-style smart phone which started shipping in September 2011. The 16GB version retails at of €480 (US$652) while the 64GB option carries a price tag of €560 (US$761) before taxes or operator subsidies. The N9 is not believed to support secure NFC.
  • Nokia announced three NFC phones in August 2011 — the Nokia 700,Nokia 701 and Nokia 600. The 700 and the 701 are available now but the 600 was cancelled before it shipped. All run Symbian Belle andwill be able to support secure NFC services such as mobile payments from the first half of 2012.
  • The Nokia 603 is a Symbian Belle device with NFC, designed for first time smartphone owners. The device retails at around €200 (US$275) before taxes and subsidies and started shipping on 21 October 2011.
  • The Nokia Oro is a phone "intended for someone who doesn't want their mobile device to look the same as other people's." The handset, which bears more than a passing resemblance to Nokia's C7, is gold-plated with a sapphire crystal home key and a fine leather back. The Symbian Anna based device also boasts NFC. The Oro retails at upwards of €800.
  • The Acer E320 Liquid Express is an entry-level Android smartphone and is the Taiwanese manufacturer's first NFC handset. The company has stated that all its Android smartphones will in future come with NFC.
  • The HTC Ruby, also known as the HTC Amaze 4G, is a high-end Android device and the first NFC phone from the Taiwanese manufacturer. It became available in October 2011 from T-Mobile in the US. The industry had long been expecting the arrival of an NFC phone from the company in the third quarter of 2011.
  • A version of the HTC Incredible designed to run China UnionPay's NFC payments service via a microSD-based NFC add-on was announced in August 2011.
  • The Sonim XP1301 Core NFC is an ultra-rugged handset designed for commercial use. The sub-£300 device was announced on 20 September 2011 and is available now.
  • Sonim's XPand NFC expansion pack is a battery cover replacement that adds NFC to the XP3300 Force rugged mobile phone.
  • The Samsung Wave 578 is now available from Orange France, in the UK as a 'Quick Tap' handset via Orange, and in Singapore. The handset, announced at the Mobile World Congress in February 2011, runs Samsung's Bada smartphone platform and will be offered by Orange across Europe.
  • The Motorola Droid Razr has not been advertised as an NFC handset, but a teardown has revealed it carries an NXP PN544 NFC controller chip.
  • The LG T530 is the Korean electronics company's first mass-market NFC handset, a touchscreen feature phone. It is available now in France as the LG Ego.
  • The LG Optimus Net is an Android smartphone that comes with NFC in some markets.
  • The Prada phone by LG 3.0, also referred to as the LG-P940 and the K2, is the LG's first Android-based NFC device, running version 2.3 Gingerbread.
  • The Mobiwire Cosyphone is an NFC handset supporting the single wire protocol (SWP). It is aimed at the over-50s and at the B2B market.
  • The Samsung S5230 NFC, also known as GT-5230NStarAvila,Player One and Tocco Lite, is widely available. This phone isavailable at retail in France, where it is known as the Samsung Player One Cityzi. It was also used in Telefonica's Sitges pre-commercial pilot as well as in the Czech Republic and Poland. The Tocco Lite was also the first NFC phone offered by Orange for itsQuick Tap NFC payments roll-out in the UK.
  • The Samsung S5260 NFC, also known as the GT-S5260P, isavailable with NFC from Orange in France where it is known as thePlayer City.
  • The Huawei Sonic is the Chinese telecoms giant's first NFC handset, a sub-US$200 Android phone. The device, also known as the U8650NFC, is marketed in Turkey as the Turkcell T20.
  • The Turkcell T11 Maxiphone is an Android 2.3.4-based single wire protocol smartphone, manufactured by China's ZTE and priced at 389TL (US$213). The T11, launched in January 2012, is the second Turkcell-branded NFC handset and supports the world's first SIM-based NFC road toll payment application.
  • The Sky Vega Racer from Pantech is a high-end dual-core smartphone that is only available in Korea. Billed as the fastest Android handset yet, it is aimed at the same market segment as Samsung's Galaxy S II.
  • The Sky Vega LTE is a premium smartphone for the South Korean market, announced in October 2011.
  • The Samsung SHW-A170K is a touch screen featurephone designed for KT and to meet the needs of the Korean market. It features SWP and is the launch handset for KT's Show Touch commercial NFC service.
  • Chinese phone manufacturer Hedy is supplying SWP-compliant NFC handsets for China Unicom's NFC roll out, using an NFC controller manufactured by Shanghai Fudan Microelectronics.
  • Shanghai Simcom is also manufacturing NFC handsets using Shanghai Fudan components. The EVDO phones are marketed under the East Com brand name.
  • The Motorola MC75A HF is an enterprise-class rugged handheld computer that combines mobile communication and secure contactless transaction capability.
  • Malaysian manufacturer Fifth Media offers specialist NFC PDAs/smartphones aimed at the B2B market. The Axia A206, a collaboration with Garmin Asus and based on the latter's M10, runs Windows Mobile 6.5.3 and costs from US$620 to $700 depending on volume.
  • The Casio DT-X8 is a business-class rugged handheld terminal that can handle NFC, 2D barcodes and more.
  • The Casio IT-800, launched in late 2009, is another ruggedised handheld PDA built for business use that incorporates NFC.

Coming soon...

Phones that have been announced but are not yet shipping or widely available:
  • The Nokia 801T is a Symbian smartphone designed for use on China Mobile's TD-SCDMA network.
  • Panasonic has announced a 'global' smartphone, expected to launch in March 2012, which looks set to include NFC functionality and a 4.3-inch OLED screen.
  • Sony unveiled the Sony Xperia S at CES 2012. The handset is set to include NFC functionality, a 4.3-inch HD screen, 12MP camera and 1.5GHz dual core processor. The Xperia S is believed to be the device previously known as the Sony Ericsson Nozomi. In mid-2011 Sonycontracted to buy NFC controller chips with an embedded secure element from NXP.
  • The Sony Xperia Ion, an LTE variant of the Xperia S, was alsoannounced at CES 2012. The Ion is exclusive to AT&T and has a 4.6-inch HD screen.
  • The Lenovo K800 features NFC and will be the first smartphone to be built around Intel processors. The device, announced at CES 2012by Intel CEO Paul Otellini and Lenovo senior VP Liu Jun, is set to be released first in China in spring.
  • LG has announced the LG Viper, which will offer NFC and Google Wallet functionality, a 4-inch 800x480 pixel screen, 5MP camera and 1.2GHz processor. The Viper is expected in 2012.
  • Microsoft's Windows Phone operating system will offer NFC in 2012, the company's Andy Lees has said. An earlier report, citing unidentified sources, said Microsoft plans to include mobile payment technology in its phone OS as part of an effort to narrow Google's lead in handset software. The OS giant has also announced there will be support for NFC in Windows 8 and a leaked corporate video hints at NFC being a major feature of Windows Phone 8.
  • HTCLGMotorolaRIMSamsung and Sony Ericsson have announced that they will all be implementing Isis' NFC and technology standards.
  • Samsung has announced two new smartphones, the Wave M and theWave Y, which run the maker's own Bada 2.0 operating system and will be available in both NFC and non-NFC versions.
  • Chinese handset manufacturer OiiA Technology has announced it will be launching a high end Android G.To smartphone with NFC in early 2012.
  • The LG Optimus LTE, also known by the model number LG LU6200, is a high-end Android smartphone which boasts a 4.5-inch HD screen, LTE and NFC. The handset is available in South Korea from the U+ network.
  • The Nokia N5, a smartphone believed to run Symbian, has cleared FCC approval in the US and can be expected soon.
  • Chinese handset manufacturer ZTE, now the world's fourth largest mobile phone maker, has announced it is to include NFC functionalityin its Android-based QSC6270 platform devices as well as a number of more entry-level feature phones from the second quarter of 2011. The company has deals with chip suppliers NXP and Inside Secure.
  • Multiple additional Android 2.3 'Gingerbread' and Android 4 'Ice Cream Sandwich'-based NFC phones are expected to become available now the latest versions of the operating system incorporate NFC support. However, it is important to understand that simply running Android 2.3+ does not mean a handset comes with NFC; special hardware is required as well.
  • RFID medical sensor specialist Gentag's GT-601 phone is aimed at "people who are concerned only with basic voice communication, mobile payments, social networks, and diagnostics using a low-cost mobile wireless device." The candybar handset is expected to retail at $119 or 89 euros and incorporates an NXP PN544 NFC controller.
  • Nokia has confirmed that all its future Symbian smartphones will support NFC from 2011.
Source : '

Good Links I have Collected on NFC:,or.r_gc.r_pw.r_cp.,cf.osb&fp=7ed63dd09c3c8f36&biw=1368&bih=658


  1. More details about NFC Technology here