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

How to enable NFC in aosp android

I have aosp 10 source code but when I run the build image by flashing, I am not able to find NFC in connected device. How to check NFC chip integrated in device? Is there any command to check in terminal? As per device manufacture, they said they…
Star
  • 735
  • 3
  • 13
  • 34
1
vote
1 answer

When NFC reads the card, it opens the application by itself, how can I solve this problem?

When NFC reads the card, it opens the application by itself but I want to read NFC only when I open this application
mervegenc
  • 13
  • 5
1
vote
1 answer

Can we use iOS device as rfid tag with Core NFC?

I am looking at Core NFC to figure out if it is possible to make the device itself as nfc tag? I need to read data from iOS/Android devices with iOS tag reader. If not possible, any other recommendation you guys have? I have read beacon/nearby…
ordinaryman09
  • 2,761
  • 4
  • 26
  • 32
1
vote
1 answer

How to get plain text from NDEF Record object?

I am trying to read the NFC tag using Web NFC. I've received the message object, I am able to read the record message.records[0], but I am not able to get the plain text "Hello world" stored in that NFC record. scanRfid.addEventListener("click",…
Maciej K
  • 11
  • 4
1
vote
0 answers

Height of NFC Reader Modal ActionSheet in iOS14

Using iOS14.0.1, Swift-5.3, I try to find the height of the NFC-reader Modal ActionSheet. Any idea on how to get it for all iOS devices ?
iKK
  • 6,394
  • 10
  • 58
  • 131
1
vote
0 answers

YubiKey NFC as authentication method in FIDO using Android?

I'm not familiar with the FIDO API so I am wondering if there is a way to use/"blip" a NFC key (YubiKey) as authentication method on a website implementing the FIDO API running on an Android device (in chrome browser/custom tabs)? How is this…
Dan
  • 173
  • 2
  • 18
1
vote
0 answers

NFC Money/Transport Card Reading in Swift

I'm trying to build an iOS app for reading money/transportation card (eg. credit card) information. My apps already detect it. However, I still can't get the data inside the byte I retrieve. Here's my APDU command code: if case let .iso7816(tag) =…
Firda Sahidi
  • 1,227
  • 1
  • 11
  • 22
1
vote
1 answer

Write lock Ntag 424DNA using makeReadOnly() throwing failed error

Creating react native NFC read/write application using https://github.com/whitedogg13/react-native-nfc-manager ->with this plugin. But I was not able to write lock after writing a NDEF record to tag. try{ await NfcManager.writeNdefMessage(bytes) …
AnAndHu S
  • 11
  • 2
1
vote
0 answers

NFC Peer-to-peer between two PN532s using Python

I am trying to setup a P2P network with two PN532 v3 chips. They are connected to respective Raspberry Pi 4Bs via I2C. I just need to be able to detect, send and receive data between them. Most libraries either don't support I2C or P2P. Some have…
Lewis O
  • 11
  • 2
1
vote
2 answers

How does the NDEF Header work when the Payload is bigger than 1 Byte?

I am trying to understand how a Mifare Ultralight Chip, I've got, works. This page pretty much explains it for normal circumstances: https://learn.adafruit.com/adafruit-pn532-rfid-nfc/ndef (At the very end of the page) But now I have the problem…
DudeWhoWantsToLearn
  • 751
  • 2
  • 10
  • 29
1
vote
0 answers

unable to run my nfc application

I m creating a sample Nfc application.. in GingerBread2.3.3 - which includes nfc features.. i have checked for the Nfc service running on the system bootup... the service runs perfectly on boot up... I m using an external hardware to detect the Nfc…
Indhu
  • 9,806
  • 3
  • 18
  • 17
1
vote
0 answers

How do I select a double-size UID (7-Bytes) using the reader IC MFRC500?

For this explanation please follow attached image. It explains the communication loop for selecting an NFC card. I am trying to read the 7-bye UID from a Mifare Classic 1k card. So far, I have managed to read the cascade tag (0x88) and first 3-bytes…
lukecam95
  • 67
  • 9
1
vote
2 answers

reading NFC tag through tablet

I want assistance for writing an application for Android Tablet to pass NFC tags over it where it link automatically to social sites.
Ahmad H.
  • 26
  • 1
1
vote
1 answer

iOS NFC-enabled Passes for payments solutions

Our team is developing a payment infrastructure that provides for payment via smartphone with NFC technology. For Android no problem as we used HCE; while as far as iOS is concerned we have come to the conclusion that the best solution, given the…
Vag
  • 11
  • 1
1
vote
0 answers

TagLostException when I try write data to blocks

I have a problem with writing data to NFC card blocks I use standard mifare classic class for working with NFC. Everything works perfectly when Key A and Key B values are FFFFFFFFFFFFFF. But when I test this code with another key A and key B on…
MDev25
  • 216
  • 2
  • 9
1 2 3
99
100