Questions tagged [nfc]

Near Field Communication (NFC) is a set of short-range communication protocols that enables electronic devices to exchange data within short distances of roughly 10 cm or less. Can be used with Tags [mifare] [iso-15693] [ndef] [nfc-p2p], etc., as some questions are very specific to the NFC Tag type.

Near field communication (NFC) builds on the RFID standards that have bi-directional contactless communications: ISO/IEC 14443, ISO/IEC 18092 and JIS 6319-4 (FeliCa). Nowadays, almost all smartphone manufacturers (and some tablet manufacturers) have added support for this technology in their high-end devices. It allows users to share data through NFC tags and NFC peer-to-peer communication between 2 devices and, in some regions, to use their device as a contactless payment card.

Tag Types & Modes of operation

In addition to the signaling technologies used by near field communication technology, four tag types and two sets of active/passive roles exist. Tag types refer to the speed and compatibility between an NFC tag and NFC readers, and the roles define how active and passive devices respond during a NFC communication. Most often a URL will be embedded in a NFC tag. URLs take up only a small amount of memory, lowering the production cost of the NFC tags since many are placed on posters or other items that are thrown away later on. NFC tags can, however, hold nearly any type of information, though more memory costs more money.

Tag Types:

  • Type 1: Type 1 NFC tags have data collision protection and can be set to either read and rewrite capable or read-only. Read-only programming prevents the information from being changed or written over once embedded in the tag. Type 1 tags have 96 bytes of memory, enough for a URL or a small amount of data. The tag’s memory can expand to a larger size as needed. The low price makes type 1 tags to ideal choice for most near field communication needs.
  • Type 2: Type 2 NFC tags also have data collision protection and can be rewriteable or read-only. They start at 48 bytes of memory, half of what the type 1 tags can hold, but can expand to be as large as a type 1 tag. Communication speeds are the same for tag types 1 and 2.
  • Type 3: Also equipped with data collision protection, NFC tag type 3 has larger memory and faster speeds than tag types 1 and 2. This tag is part of the FeliCa system. The bigger size lets it hold more complex codes beyond URLs, but it costs more to create each tag.
  • Type 4: Type 4 NFC tags can use either NFC-A or NFC-B communication and have data collision protection. The tag is set as either rewritable or read-only when manufactured and this setting cannot be changed by the user, unlike the other NFC tags which can be altered at a later date. The tag holds 32 Kbytes in memory and has faster speeds than the other tags.
  • Type 5: Type 5 NFC tags use NFC-V communication and offer support for offers support for the ISO/IEC 15693 specification. Type 5 Tags are NFC-RFID crossover technology that gives longer range ‘vicinity’ communication with dedicated reader hardware and also allows ‘proximity’ interaction with a NFC readers.

In addition to the five tag types, four modes of operation exist. The modes – reader/writer, card, initiator, and target – describe what role a device or tag is playing in an NFC transaction. Devices can switch between more than one role depending on the transaction being processed.

NFC Basic Roles:

  • Reader/Writer and Card – Typically a transaction occurs between an active device that sends out signals and receives information and a passive device that simply sends the information and does not receive anything other than instructions on what data to reply with. The reader/writer is the smartphone serving as the active device and the card is the NFC tag serving as the passive device. Smartphones can take on the role of card, however, when they act as a credit card for contactless payments. Then the credit card reader becomes the reader/writer and the smartphone serves as the passive card device.
  • Initiator and Target – NFC technology has a major advantage over other technologies such as RFID. NFC can create peer-to-peer sharing between two phones. In this case, the phone making the connection or sending an invitation is the initiator and the phone receiving the instructions and sending back information is the target. Yet both phones can serve both roles by switching back and forth depending on what transmission is being sent, though this requires a higher level of technology.

The Nokia C7-00 was the first smartphone with NFC shortly followed by the Google Nexus S. Any two NFC-enabled Android or Windows (Phone) 8 devices can share data by touching with each other, such as web page URLs, files and even apps. The first Android OS that supported NFC was 2.3.3. Android 4.0 made NFC more powerful with the so-called Android Beam functionality. Android NFC devices often also support the related RFID technology ISO/IEC 15693. Many devices also support the proprietary MIFARE protocol.

In addition to the commercial products, the academic world seems to be interested in this technology as well. More and more literature is published in areas like home care, mobile sensing and game supply.

The is the first Apple hardware to offer NFC, limited reading support was available in iOS 11 with more complete reading and writing support available in iOS 13

4425 questions
1
vote
1 answer

Does an app running in debug from android studio register intents. Trying to launch from NFC tag

I am attempting to have an app automatically load on detection of a NFC tag. Can someone advise when an apps intent is actually registered with the operating system i.e. will an app ran from the android debugger fire from an intent, or does the app…
1
vote
1 answer

Is it possible to switch a payment card in wallet without user interaction?

Is the following scenario in Android technically possible? User has an Android wallet with two payment cards, A and B. Where A is the default payment card. User tries to pay contactless at a merchants terminal. Payment fails for any reason. The app…
Sorcerer
  • 854
  • 1
  • 8
  • 20
1
vote
1 answer

How to trigger a function in a flutter app using a nfc tag

I recently bought nfc sticker tags for 6 $ from amazon and was wondering if I can trigger a function within my flutter app when the nfc tag is being scanned. I want it to happen even when the phone is locked. any help preforming such a thing would…
tessu
  • 65
  • 1
  • 5
1
vote
1 answer

Web-NFC: How to use web-nfc in my html5 page

This might be a silly question but after hours of search i could not come to conclusion. I need to add NFC functionality to my website where user can write information to tags while on their mobiles. Code for writing to tags looks simple but i am…
1
vote
1 answer

Application to send funds/money to Shop vendors, Person like Google Pay, Paytm

We would like to implement a payment solution where end users can send money to other users, merchants (e.g Walmart, shop vendors). (Payment service to send money to shop vendors (e.g Wallmart), Person, POS) e.g Nowadays we send money via NFC, by…
Aman
  • 11
  • 3
1
vote
1 answer

How to get EMV tag 9F19 Token Requestor ID?

I want to recognize the concrete NFC type - Apple, Google, Samsung Pay etc. is used in the EMV contactless transaction. Tag 0x9f6e helps me to differ phisycal card and NFC, but not exact payment system. There are a lot of information about tag 9F19…
1
vote
0 answers

How can I redirect the saved URL in NFC tag to another URL which I will control from my react-native app?

Well, here's the scenario... I have developed a react-native app. In a certain page I put the functionality to scan and write a certain URL in the NFC tag. Now if anybody scans that they can get the URL and thus the webpage. Now I will leave the NFC…
1
vote
1 answer

How to fully deactivate Apple App Clip - it still pops up

I added Apple App Clip but later removed it not yet needed. It was added "Advanced App Clip Experience", later deactivated, but when you bring the NFC tag to the phone, an alert still pops up with an empty content and message "This app clip is not…
1
vote
1 answer

Running python scripts on android

I'am struggling running a python script which should allow me to write a text to a tag by using the nfcpy.The code is downloaded from https://code.launchpad.net/nfcpy I have installed LS4A on my android device, but when I try to run the program the…
Tobias Moe Thorstensen
  • 8,861
  • 16
  • 75
  • 143
1
vote
0 answers

Authenticate and load keys fails Mifare Classic 4K

I want to read the balance of my transport card (or at least able to read any sector) which has the following technologies: NfcA, Mifare Classic, Ndef Formattable. I found similar questions but none of them solved my issue. I tried to authenticate…
Hilal
  • 902
  • 2
  • 22
  • 47
1
vote
1 answer

Is reading a NFC chip as a web app possible

I'd like to use Vaadin to create a web app in Java that reads a NFC chip to identify the user and then proceeds with other options, is that possible? My reason why I don't want to do that in an android app is to decentralize myself to perform the…
fujx11
  • 13
  • 4
1
vote
1 answer

Can iPhone NFC support Bank Card reading?

Hi its actually about a doubt clarification. Currently i'm working on an iOS Swift project. Here i want to store users bank card details. Now the card number is entered manually. But what i want is, can our iPhone NFC reader can reads the bank…
Hilaj S L
  • 1,936
  • 2
  • 19
  • 31
1
vote
0 answers

IONIC Capacitor Error Plugin Not installed

i'm trying to integrate nfc support to my ionic capacitor project. I followed this documentation: https://ionicframework.com/docs/native/nfc I installed all required packages: "@ionic-native/nfc": "^4.20.0", "phonegap-nfc": "^1.2.0", here is my…
Dominik Hartl
  • 105
  • 1
  • 2
  • 8
1
vote
1 answer

Locked NFC tag can still be formatted?

We are testing NFC tags for public places with simple URL. I have a NXP Mifare Ultralight EV1 card. Writing and reading worked as expected. Then I put desired URL on the tag and locked it. (permanent write-protection). I couldn't write to it after,…
Gabriel Uhlíř
  • 609
  • 3
  • 9
  • 18
1
vote
0 answers

Flutter: How to start app when NFC tag connected

Is it possible to start flutter app when NFC is connected and then get data from NFC tag? In Android manifest we need to define what activity NFC is starting, then when activity is loaded we get data from it. Problem is when I tried to transfer data…
Marko Karajlovic
  • 143
  • 1
  • 12