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
2 answers

NFC sticker to launch website with unique URL

I can encoded an NFC Sticker with a website that will open when I tap it with a mobile phone. For the application I want to use it for I need to be able to expire that link so the user can't just save the URL and use it again. Basically I need to be…
user185813
  • 481
  • 1
  • 5
  • 16
1
vote
1 answer

NFC realtime permission Android

I am trying to get NFC permission at real time, I am able to get any permission except this one, the only way I am able to achieve this permission is by opening the wireless settings of the phone and asking the user to turn it on, is there a way of…
Coder123
  • 784
  • 2
  • 8
  • 29
1
vote
2 answers

Send NFC tag in Android if app isn't open?

It's possible to send any string by NFC in Android if i dont have any application open to make it? Imagine you pass the smartphone in passive mode on a reader NFC. Can reader receveive any data if i dont have a application on the smartphone side to…
Vítor Nóbrega
  • 1,219
  • 4
  • 26
  • 53
1
vote
0 answers

on some device not call callback (NfcAdapter.ReaderCallback) method in nfcAdapter.enableReaderMode

Here code than work with NFC import android.app.Activity import android.nfc.NfcAdapter import android.nfc.Tag import android.nfc.tech.IsoDep private val nfcAdapter: NfcAdapter? = NfcAdapter.getDefaultAdapter(activity) override fun start() { …
Alexei
  • 14,350
  • 37
  • 121
  • 240
1
vote
1 answer

How to stop overwrite to an NFC tag using ios Swift

I've application for NFC write in swift 5, Write is working properly but I want to update only 1 key from nfc without overwrite full nfc card data. NFC device is ISO 14443-3A NXP MIFARE Ultralight (Ultralight C). Please check code below and anybody…
1
vote
1 answer

Getting Phone Number from PN532 NFC

I am using a raspberry pi hooked up to an PN532 NFC to print out the following information from an Android phone. I was wondering if there is any way to also obtain the phone's number using NFC? I am getting the impression that NFC does not allow…
Jeff Boker
  • 803
  • 1
  • 9
  • 25
1
vote
2 answers

How to know when another phone is 10m away from me

Let's say I want to make an android app that will be installed in 2 devices. I want to know when one device is more than 10 meters away from the other device. What type of technology will I use for that? (i.e. proximity cards, rfid, nfc, etc). And…
Alexandros Kourtis
  • 539
  • 2
  • 6
  • 20
1
vote
1 answer

NFC - OnNewIntent() sometime not working on android device

I have been detecting NFC enabled card in my app to read tag value. Following is my code OnCreate() nfcAdapter = NfcAdapter.getDefaultAdapter(AuthDriverCard.this); piTap = PendingIntent.getActivity( this, TAP_REQUEST_CODE, new…
Rajeev Kumar
  • 4,901
  • 8
  • 48
  • 83
1
vote
0 answers

How to read the data from iOS 13 NFC

Can any body suggest working examples to read data from epassport via NFC chip using BAC/PACE. I know that there are lot of steps to implement BAC/PACE.
Raknasavis
  • 23
  • 1
  • 6
1
vote
1 answer

What is happening after nfc loyalty card is submitted?

We are developing mobile app in which customers can access multiple loyalty programs. The most convenient way for customers is to use nfc loyalty card and we are in search of ways to implement it via google pay passes and apple wallet…
Anton Bystrov
  • 134
  • 2
  • 10
1
vote
0 answers

Android app for reading ISO15693 tags with 10% modulation depth

I read a lot about how to develop an Android app that can read ISO15693 transponders. As far as that is all possible and there are a lot of ready-made apps in the PlayStore that do this task. If you look at the reading process with an oscilloscope,…
1
vote
3 answers

How to check if the back button was clicked

I have an app with a button. (see image). This preview only occurs if the user has not activated a certain setting. If he presses the button, he arrives in the settings. If he presses back he comes back to the settings. I would now like to intercept…
user13615135
1
vote
0 answers

libnfc - Emulate NDEF URI - NFC

I am using an ACR122U-A9 NFC Reader and Mac OS X. I want to emulate and NDEF URI Message (for example https://stackoverflow.com), so when an Android or (newer) iPhone approaches the NFC Reader, the Browser should automatically open the URI. For that…
mtw
  • 81
  • 1
  • 6
1
vote
1 answer

Android NFC: How transceive method working with memory?

I have ntag213. I'm trying to understand how work blocks, sections of memory of my tag. I found project https://github.com/lepunk/react-native-nfc-demo/blob/master/RNNFCDemo/App.js but cannot understand what is agruments for transceive method: let…
user377055
  • 91
  • 1
  • 9
1
vote
1 answer

Can I send NFC readings (Android Phone) to a program on my PC (Windows) which will paste text in whatever text box I have selected?

I'm not really good at developing myself and I would really like to set up some sort of NFC readings to PC like program. I don't know how to explain this because all the articles I went through didn't have any useful info. I found this Virtual Smart…
xxDANIELxx
  • 11
  • 4
1 2 3
99
100