For illustrative purposes only. Not for commercial use or re-sale. Use of “Sony” brand subject to regulatory approval.

Yesterday we announced the new Xperia™ S and the Xperia™ SmartTags, as well as the Xperia™ ion for the US market. This marks an exciting new era, as these are the first Xperia™ devices supporting NFC. But what is really NFC? Surely you’ve heard about it, and know it’s expected to be widely used in the future. But how does it work, and how will it be used? In this article, you will get to know more about the technology, some of the use cases and how we will work with NFC initially.

NFC stands for Near Field Communication, and it’s a technology that enables data exchange between devices within a short distance, typically only a few centimetres. In most cases, the communication takes place between an active device and a non-powered target, but peer-to-peer interaction between two powered devices is also possible. Transfer rates are low, ranging from 106 Kbit/s to 424 Kbit/s, which means that use cases are all about small data exchanges. A typical use case would be to use the NFC connection as a trigger to set up Bluetooth™ or Wi-Fi™ connections.

With the new Xperia™ S, Xperia™ SmartTags and the Xperia™ ion supporting NFC, it will enhance the user experience of social applications and entertainment. You could tag your friends in a photo, or initiate multi-player games by tapping your handsets together. Check in at places, or even “like” things Facebook-style in real life by reading an NFC tag. Hold your phone close to a pair of speakers to start playing your music. These are some examples of existing and possible uses of the NFC technology. Since it is an open system, any app developer can come up with their own unique use cases.

Another use case is simplified secure transactions using apps like Google Wallet. With Google Wallet, you can have a virtual credit card and simply tap your phone at a reader in the store. You can also store virtual cards for things like customer loyalty information, access to buildings and transportation tickets.

NFC can be separated into three different technical modes which all suit different use cases: reader/writer mode, peer-to-peer mode and card emulation mode. When developing your own NFC-enabled app, you will find out that the different modes all cater to different needs, which are introduced below. In the Android SDK you find the information you need to get started with NFC in your own apps.

For illustrative purposes only. Not for commercial use or re-sale. Use of “Sony” brand subject to regulatory approval.

Interact with NFC tags using Reader/Writer mode
Reader/Writer mode is when the phone is the active part and reads data from or writes to an NFC tag. In Reader/Writer mode the phone is generating a field that is used to read information from passive tags that do not have any power source of their own. When you put a passive tag in the field close to a phone, the tag uses the field from the phone to send data back to the phone.

Many of the possible uses of NFC in reader/writer mode are about simplifying existing use cases. Instead of scanning a QR code – which requires installing a QR-reader app, opening the reader and scanning the QR code – you can simply touch an NFC tag with your phone with the screen lit up to get the same information. Bluetooth pairing is another use case that is made much easier: instead of searching for the gadget you want to connect to, you tap it with your phone and the pairing is done automatically.

Since NFC tags are available at relatively low cost, and can be produced in many different shapes, they can also be used to introduce physical real-world elements into games. For example, to go to the next level, you might have to find and read a tag at a certain place in your city.

Use P2P mode for smooth content sharing
With the new Xperia™ S and Xperia™ ion, you will be able to share content in a really easy way. When touching another NFC device with your phone, the application in use will automatically send the active content, for example, the track that is currently playing in the Media player, or the contact displayed on the screen if you are browsing through your contacts.

In Xperia™ S and Xperia™ ion, this function is enabled in the pre-installed Gallery, Music player, Web browser and Contacts. In our sharing function NFC is normally used to initiate the connection and then handover is done to a faster bearer such as Bluetooth or Wi-Fi, which makes it work well for locally stored content.

To share content between two devices, peer-to-peer mode is used. This is suitable whenever multi-pass communication is needed, which means the two devices have to talk to each other and confirm the interaction. This mode is defined by the NFC Forum, who defines the NFC standard, and differentiates NFC from earlier proprietary RFID variants, which only works between an active device and a passive tag.

Android Beam is the standard Android implementation of P2P mode which is introduced in the Ice Cream Sandwich release. It works for sharing small pieces of content, for example links to web content. Using Android Beam, you can add the possibility for users to share content from your own app. However, there is no support in Android Beam for the handover to Bluetooth or Wi-Fi.

Card emulation mode – it’s all about secure transactions
The card emulation mode is used for secure transactions, such as payments, transportation tickets, or when using the phone to access buildings. The card emulation mode can always be active in the phone, since the phone functions as a tag and there is no need to generate a field from the phone. The phone only needs to be ready to respond when being close to an NFC reader. If allowed by the service provider, card emulation can even work when the phone is switched off. Writing applications for card emulation mode requires the opportunity to access the secure element, which most developers don’t have.

Using Xperia™ SmartTags
Xperia™ SmartTags will be available in bundled kits together with certain phones in our Xperia™ 2012 portfolio (bundling options may differ between markets). An Xperia™ SmartTag is a read-only tag, containing an ID. In the LiveWare™ manager application you can configure what action that should be performed when a certain Xperia™ SmartTag is read. This means that reading the tag will have a result that is specific for your phone, while reading the same tag with a differently configured phone will give another result. For example, you can set up a special “work tag” at your desk, which will trigger the ringtone volume to be lowered and music to be turned off.

More information

Sort by

  • By Kjetil B. Thomassen
    11th January 2012.
    11:51

    I currently have an Xperia X10i upgraded to Android 2.3.3 as my work phone, and I have been following Sony/Sony Ericsson closely, as I probably need a new phone for my private use soon. So far, my current phone (non-Android) is still working, so I haven’t had to purcahse a new one, and I have therefore waited for you guys to make Xperia phones with NFC.

    Now you have, so I am happy about that.

    I hope that my employer will start to evaluate whether NFC could be an option for Access Control or identification for Secure printing. At present my employer uses a 250 kHz technology for this, which, unfortunately is not compatible with NFC, and therefor the card readers have to be replaced, which has a cost. But, the future benefit may make the cost worthwhile, so we’ll see.

    Personally I see NFC as a way forward when it comes to identification. Probably we will also see this technology being used as a digital signature and identification in relation to public and health services.

    Kjetil B.

    Thumb up 0 Thumb down 0

    • By Joe Padre
      12th January 2012.
      20:23

      Hi Kjetil,
      Thanks for the feedback and insightful comments on NFC. Hope your next personal phone is an Xperia with NFC. :)
      Best regards,
      Joe from Developer World

      Thumb up 0 Thumb down 0

  • [...] small NFC enabled tokens that work with any NFC (Near Field Communication) enabled smartphone, [...]

    Thumb up 0 Thumb down 1

  • By Kjetil B. Thomassen
    22nd May 2012.
    15:31

    Yes, Joe, I now have an Xperia S and some SmartTags, but this is my work phone. My personal phone will not be upgraded for some time.

    The SmartTags are very nice, but I was a bit surprised to discover that when you (Sony Mobile) talked about four different profiles for the SmartTags, you actually talked about four different tags in total. There are the blue, red, black and white ones, but to my surprise, the ones with the same color trigger the same actions. I have three black and three red ones, and two blue and two white ones, and all in all, I can only have four different sets of actions with the Xperia SmartTags module. I was also surprised to learn that the NT1 SmartTags is actually a pack of all four colored tags. The information on your product page is not clear regarding this:
    http://www.sonymobile.com/global-en/products/accessories/xperia-smarttags/specifications/
    One gets the impression that they have to be purchased separately, and that it is possible to order the tags in different colors. There is also no information about the fact that each color has it\’s own profile.

    I found the reason for the fact that each color triggers the same actions: There is a URI-tag written to them, and there is one URI for each color.
    I tried to write a different URI to one of them, that did not match any of the four, but that did not work (I changed a 4 to a 5).

    In order to use the tags for more than four different types of configurations, I used the NFC Tag Writer & Reader app to delete the URI-tag on one of them, and then it no longer triggered the Xperia SmartTags module. Then I used the NFC ReTag FREE ver 1.5 app to set up actions for them, based on the ID, and now I have one black for home, and another black for work. I will set up more of these in the future.

    You really should make the Xperia SmartTags module more flexible, so that users can create their own profiles using their own URIs.

    Using the TagInfo app from NXP, I found that the URIs in the SmartTags are as follows:
    Blue tag: semc://liveware/A1/1/NT1/1/smarttags
    Red tag: semc://liveware/A1/1/NT1/2/smarttags
    Black tag: semc://liveware/A1/1/NT1/3/smarttags
    White tag: semc://liveware/A1/1/NT1/4/smarttags

    My current uses are:
    - Sleep
    - Home (mobile data)
    - Work (wireless network)
    - Bicycle riding (GPS Essential app)

    Future uses are:
    - Work car (wireless network)
    - Private car (mobile data)
    - A private activity that needs a silent phone
    - Meetings at work

    There are other areas I am thinking about using the SmartTags, but at present they are just ideas, not plans.

    As said, they are great, but has their limitations. I trust that you (Sony Mobile) will improve upon this in the future.

    Kjetil B.

    Thumb up 0 Thumb down 0

    • By Kjetil B. Thomassen
      23rd May 2012.
      08:33

      Another thing that just came to mind. It would be very nice, if you could make the NFC chip in the Xperia S respond also when the phone is locked. As it is now, I have to unlock the phone in order to use the SmartTags, just to set the the states needed for cycling, work, home, sleep etc. At least I think that should be an option in the settings. The distance between the Xperia S and the SmartTag needs to be at the most around 5 cm (2 in) in order to trigger the action, so having this enabled in locked mode should not trigger many accidental events. This would also make it a lot more practical for use in connection with access control and purchases.

      Kjetil B.

      Thumb up 0 Thumb down 0