Gerald Madlmayr is mobile consultant dealing especially with contactless and UICC-based applications as well as security and privacy in such systems. In 2009 he was named the 'NFC-Guru' by Nokia.
geri-m | 21 October, 2008 21:02
Today I’d like to give a basic introduction into NFC (Near Field Communication). It will give a rough overview over the technology and smartcards.
Motivation
The idea behind NFC was to invent a new killer application of a mobile device – but what is it? It’s not payment, not ticketing and not BT pairing. It is every day life. So what can you help during every day life? You have a bunch of keys in our pockets, so what about making access easier? There are several cards and coins in your wallet, and for sure you don’t have the change when you need it ;-) So let’s put a technology into mobile devices that allows us exactly to do this with our most personal device: the mobile phone. And in 2004 Sony, Philips and Nokia agreed on starting to work on this technology, and they called it NFC.
NFC Starter
NFC is a wireless communication technology to cover distances up to 10 cm, possible data rates are 106, 212 or 424 kBit/sec. A “classic” NFC transaction doesn’t take too long, about 200- 500 ms in order to keep the user experience good. User experience is actually the “key” behind NFC. The technology provides an easy and intuitive interaction, like a simple touch. You probably know this kind of contactless transaction already from one of your contactless smartcards you use for payment, access or ticketing and as you may have experienced, the time for the transaction is quite short – and that’s good. Or would you like to wait 10 seconds until the door opens? (Also think of the people queuing behind you!)
Smartcards & RFID
Depending on the standard use, these cards are either proximity cards (according to ISO 14443) or vicinity cards (according to ISO 15693). Both standards use the so popular RFID Technology, so I'll talk about that first. RFID standard for Radio Frequency Identification. The technology bases in the inductive coupling of two coils/antennas. Depending on the antennas and the power used to generate the electro mangentic field, distances starting from some centimeters up to several meters can be briged by using RFID Technology. There are several different frequencies used in the RFID Industry, popular ones are: 125 kHz, 13,56 Mhz (used by ISO14443, ISO15693, ISO18092) or 900 Mhz. In an RFID System there is usually an active reader, that generates the electro mangentic field and a passive transponder (tag, smartcard) that is powered by this field (and thus needs no battery). After the passive part is powered, the communication is established and both parties can exchange data. The active part (reader) emitting the field is also called initiator where as the passive one (waiting for the initiator) is called target. So far for the electro magenetic stuff (from a very basic, theoretical side) and back to the smartcards.
13,56 MHz
As already mentioned both proximity and vinicity card use 13,56 Mhz and therefore are compatible on the very low (physical) layer of communcation. ISO 15693 actually is not considered by the NFC Forum – the standardization body for NFC – thus, I will not give further details on this standard. During the standardization of ISO 14443 the two major players (Infineon, Philips; now NXP) could not agree on a modulation schema, thus there are two different one: ISO 14443-A (Philips, now NXP & Co.) and ISO 14443-B (Infineon & Co. ). There are several popular products using ISO 14443, like the RFID Passport. One of the most widely used RFID Card is Mifare. Mifare is not compliant to ISO 14443 on all levels (only 1 – 3) as it implements a proprietary cipher. Several public transport Systems, like London (Oyster) or Hongkong (Octopus) use Mifare. The cipher actually was broken in 2008. In Japan Sony has introduced its one contactless Smartcard: Felcia; there it is used for Payment & Public Transport (Suica). Felcia is neither ISO14443-A nor –B. NFC Devices in the further should be able to overcome all this different smartcard standards and should be able to talk to any of these contactless smartcards or reader.
NFC (= ISO18092) vs. NFC Device
When talking about NFC, I'd first like to clarivy two terms: when talking about "pure" NFC, I'm talking about ISO18092, which specifies the NFC peer-2-peer mode. (see Operating Modes). When talking about an NFC device, I'm talking about an NFC device like a handset, that features also other operating modes, like reading smartcards or acting as a passive tags.
Operating Modes
This brings me now to the different operating Modes of an NFC Device:
Great new world
The great thing about NFC devices now is that you don’t only have passive transponder or an RFID reader, but also a display and a keyboard to interact. Secondly, there is no air time that will be billed by the operator when using NFC (but if you open URL, of course, a GRPS connection is opened billed). And: the transaction is only made by intention, as the range is very short. It’s not like Bluetooth that can send data over several meters. NFC only works within some centimetres. This also helps to provide a better user interaction. Let’s say: I want to pay now. So I touch this reader. Payment done. (without pressing _one_ single button!) Or: You take a picture, you touch a printer and it is printed. You don't have to care about anything like pairing devices. NFC can do that for you. NFC will make life and interaction more simple, as world already is too complicated.
Device Integration
NFC technology integrated in a mobile device typically consists of two integrated circuits. The NFC controller is required for the analog digital conversion of the signals transferred over the proximity connection. An HCI (host controller interface) allows the host controller to set the operating modes of the NFC controller and process data sent and received. The second IC, a secure smartcard chip also referred to as the secure element, is used for the tag emulation mode. The secure element is connected to the NFC controller for proximity transactions (external mode e. g. for payment at point of sale ) through the Single-Wire Protocol (SWP). The host-controller as well is able to exchange data with the secure element (internal mode e. g. for top up of money into the secure element over the air ). In order to access the functionallity with an Application, there a two APIs:
Both APIs allow an application developer to use the functionality of an NFC device. By providing a J2ME API for using NFC technology, the barrier to application developers is lowered in comparison to using proprietary Symbian OS or Windows mobile APIs.
(taken from: "State of Standardization of NFC" by Gerald Madlmayr)
Nokia at the moment offers three different NFC Devices: The Nokia 3220, Nokia 6131 and the Nokia 6212. The Noia 5140 with the RF Shell is not considered as an NFC device, as it only supports Reader/Writer Mode. All three Nokia Models come with an NXP NFC Chips inside (PN511/512 or PN531/532) and SmartMX Secure Memory Chip with a Java Card OS from G&D. The Chip is the same as in a G&D SmartCafe Javacard. The integration of the NXP solution is called smart connect.
(taken from: "NFC und seine Pluspunkte" by Holgar Kunkat)
The solution allows you to switch between internal access of the secure element (eg: a Midlet is reading/write data of the smartcard chip), Active/Initiator Mode (in this case the device activly emits a field) and Passiv/Target/Card Emulation Mode (in this case the device is found by an external reader or other Initiator). This switing of the operating modes is also called "Mode-Switch" (what else *g*) Actually, there is only one mode at a time possible, which causes the following problem: Imaging, you are reading an external tag and would like to use a key, to authenicate, that is stored in the secure element. In this case the midlet requires to read on the one hand site the tag and on the other handset to access the secure element. But you can't do that and you need to implement some kind of work around for that.
Well that's it for day. You should now know the very basics about NFC and how this can be integrated into a device. I'll keep you in the loop and post some more.
NFC |
Next |
Previous |
Comments (2) |
Trackbacks (0)
korsun14 | 21/02/2009, 19:50
wery good IFC intro. it's the second essay about NFC, and i'm really glad of it, because the first, that i read (on the other website) wasn't so clear to me))
Thanks!
tote_b5 | 22/10/2008, 13:52
Thanks, Gerald, for this introduction on NFC! I can't say that I fully understood everything :), however, I do believe that I have a better understanding now. Thanks again and looking forward to new articles on the topic!