What is NFC in wireless communication?

  • Platform
  • Android Studio
  • Google Play
  • Jetpack
  • Kotlin
  • Docs
    • Overview
    • Guides
    • UI Guide
    • Reference
    • Samples
    • Design & Quality
  • Games

Stay organized with collections Save and categorize content based on your preferences.

Near Field Communication (NFC) is a set of short-range wireless technologies, typically requiring a distance of 4cm or less to initiate a connection. NFC allows you to share small payloads of data between an NFC tag and an Android-powered device, or between two Android-powered devices.

Tags can range in complexity. Simple tags offer just read and write semantics, sometimes with one-time-programmable areas to make the card read-only. More complex tags offer math operations, and have cryptographic hardware to authenticate access to a sector. The most sophisticated tags contain operating environments, allowing complex interactions with code executing on the tag. The data stored in the tag can also be written in a variety of formats, but many of the Android framework APIs are based around a NFC Forum standard called NDEF (NFC Data Exchange Format).

Android-powered devices with NFC simultaneously support three main modes of operation:

  1. Reader/writer mode, allowing the NFC device to read and/or write passive NFC tags and stickers.
  2. P2P mode, allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam.
  3. Card emulation mode, allowing the NFC device itself to act as an NFC card. The emulated NFC card can then be accessed by an external NFC reader, such as an NFC point-of-sale terminal.
NFC BasicsThis document describes how Android handles discovered NFC tags and how it notifies applications of data that is relevant to the application. It also goes over how to work with the NDEF data in your applications and gives an overview of the framework APIs that support the basic NFC feature set of Android.Advanced NFCThis document goes over the APIs that enable use of the various tag technologies that Android supports. When you are not working with NDEF data, or when you are working with NDEF data that Android cannot fully understand, you have to manually read or write to the tag in raw bytes using your own protocol stack. In these cases, Android provides support to detect certain tag technologies and to open communication with the tag using your own protocol stack.Host-based Card EmulationThis document describes how Android devices can perform as NFC cards without using a secure element, allowing any Android application to emulate a card and talk directly to the NFC reader.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2019-12-27 UTC.

[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]

NFC stands for Near Field Communication. It enables short range communication between compatible devices. At least one transmitting device and another receiving device is needed to transmit the signal. Many devices can use the NFC standard and are considered either passive or active. 

So NFC devices can be classified into 2 types: 
 

  1. Passive NFC devices – 
    These include tags, and other small transmitters which can send information to other NFC devices without the need for a power source of their own. These devices don’t really process any information sent from other sources, and can not connect to other passive components. These often take the form of interactive signs on walls or advertisements. 
     
  2. Active NFC devices – 
    These devices are able to both the things i.e. send and receive data. They can communicate with each other as well as with passive devices. Smartphones the best example of active NFC device. Card readers in public transport and touch payment terminals are also good examples of the technology. 
     

How does NFC work? 
Like other wireless signals Bluetooth and WiFi, NFC works on the principle of sending information over radio waves. Near Field Communication is another standard for wireless data transition which means devices must adhere to certain specifications in order to communicate with each other properly. The technology used in NFC is based on older technology which is the RFID (Radio-frequency identification) that used electromagnetic induction in order to transmit information. 

This creates one major difference between NFC and Bluetooth/WiFi. NFC can be used to induce electric currents within passive components rather than just send data. This means that their own power supply is not required by passive devices. Instead they can be powered by the electromagnetic field produced by an active NFC component when it comes into range. NFC technology unfortunately does not command enough inductance to charge our smartphones, but QI charging is based on the same principle. 

The transmission frequency is 13.56 megahertz for data across NFC. Data can be sent at either 106, 212, or 424 kilobits per second which is quick enough for a range of data transfers like contact details to swapping pictures and music. 

The NFC standard currently has three distinct modes of operation to determine what sort of information will be exchanged between devices. 

  1. The most common used in smartphones is the peer-to-peer mode. Exchange of various piece of information is allowed between 2 devices. In this mode both devices switch between active when sending data and passive when receiving. 
     
  2. The second mode i.e. read/write mode is a one-way data transmission. The active device, possibly your smartphone, links up with another device in order to read information from it. NFC advertisement tags use this mode. 
     
  3. The third mode of operation is card emulation. The NFC device can function as a smart or contactless credit card and make payments or tap into public transport systems. 
     

Comparisons with Bluetooth – 
There are several important technological differences between NFC and bluetooth but NFC has some significant benefits in certain circumstances. 

The major advantage of NFC over bluetooth is that it requires much less power consumption than Bluetooth. This makes NFC perfect for passive devices, such as the advertising tags as they can operate without a major power source. 

But this power saving does have some major drawbacks. First and the foremost is that the range of transmission of NFC is much shorter than Bluetooth which is a major drawback. NFC has a range of around 10 cm, just a few inches whereas Bluetooth connections can transmit data up to 10 meters or more from the source. Another drawback is that NFC is quite a bit slower than Bluetooth. NFC can transmit data at a maximum speed of just 424 kbit/s, whereas Bluetooth 2.1 can transmit 2.1 Mbit/s and with Bluetooth Low Energy around 1 Mbit/s . 

NFC has one another major advantage i.e. faster connectivity. It uses inductive coupling(i.e. the absence of manual pairing) which takes less than one tenth of a second to establish a connection between two devices. While modern Bluetooth connects pretty fast, NFC is still super handy for certain scenarios as mobile payments. 

Samsung Pay, Android Pay, and even Apple Pay use NFC technology though Samsung Pay works a bit differently than the others. While Bluetooth works better for connecting devices together for file transfers, sharing connections to speakers, and more, we anticipate that NFC will always have a place in this world thanks to mobile payments — a quickly expanding technology.
 

What is NFC and its function?

Near Field Communication (NFC) is a set of short-range wireless technologies, typically requiring a distance of 4cm or less to initiate a connection. NFC allows you to share small payloads of data between an NFC tag and an Android-powered device, or between two Android-powered devices.

What is NFC example?

Near-Field Communication: History Perhaps near-field communication is best known as the technology that lets consumers pay retailers and each other with their cell phones. NFC drives payment services like Google Wallet (NASDAQ: GOOG) and Apple Pay (NASDAQ: AAPL), for example.

Is NFC a Bluetooth or Wi

Wireless connections. Instead of going through several steps in order to successfully pair two devices, you only tap your phone to an NFC tag that will handle Bluetooth pairing. Furthermore, you can use NFC tags to let people connect to your Wi-Fi connection, so that they would not need to know your password.

What is the principle of NFC?

NFC works based on the principle of near field magnetic communication. This principle of inductive coupling is applied to all communications based on near field magnetism between transmitting and receiving devices.