Questions tagged [nfc-p2p]

Peer-to-peer mode (P2P) for Near Field Communication (NFC) is a mode where two NFC devices can directly communicate with each other.

Peer-to-peer mode (P2P) for Near Field Communication (NFC) is a mode where two NFC devices can directly communicate with each other. Peer-to-peer mode is one of NFC's three operating modes (besides reader/writer mode and card emulation mode) and is standardized in ISO/IEC 18092 (NFCIP-1) and adopted by the NFC Forum's Analog and Digital protocol specifications.

NFC peer-to-peer mode supports different communication modes between two devices:

  • Active mode, where both devices alternately generate their own HF field.
  • Passive mode, where one device generates the HF field (similar to a contactless smartcard reader) and the other device operates as a passive target (similar to a contactless smartcard).
212 questions
1
vote
0 answers

Android Studio, pass String (username) from Android phone with NFC to another Android phone

I am searching for 3 days now, and still I don't find anything that is what I want. Maybe it's not possible? But to accept that, I have to ask here. I have a project, where I want to exchange usernames to both phones, phone 1 gets username of phone…
Leaderide
  • 11
  • 2
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

Sending data, using HCE, or using secure element? (Android, Kotlin, Mifare 1k)

I'm trying to implement the functionality for emulating a Mifare One (1K/S50, ISO14443A) chip to be able to use a phone with NFC capability instead of a physical Mifare card or, if possible sending only the data to the reader. I have this type of…
atanii
  • 226
  • 2
  • 12
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
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
1 answer

NFC interaction between Android devices triggers Android Beam instead of HCE

I'm developing payment terminal simulator that acts as a standalone POS terminal. It works ok with chip contactless cards (it can communicate with them on proper protocol), initiate transaction, read data from them etc. I also wanted to handle…
krzykol
  • 25
  • 5
1
vote
0 answers

How to push and open a URL via NFC, skipping Android Beam UI?

Use case: I want a passing by user to Tap his phone on my Kiosk Android Device and get my store's URL opened on his phone's default browser app. The only option that I could think of the three available (HCE, R/W, P2P) is P2P with Beam. But, the…
Bavan
  • 1,021
  • 1
  • 10
  • 24
1
vote
1 answer

Get notified when NDEF is sent / touch to beam is pressed

I am using setNdefPushMessageCallback to send an NDEF message (text/plain) through Android Beam (TM) from one Android device to another one. In onResume I am checking ACTION_NDEF_DISCOVERED so in this way the Android phone that is detecting/reciving…
Ilir V. Gruda
  • 1,562
  • 5
  • 17
  • 23
1
vote
2 answers

Sending text data from Android to IOS using NFC

I know that at the moment there is no API in IOS 11 to write data to NFC tags, but it's possible to read data from NFC tags and want to pass text from Android device to iPhone. I assumed that it's possible to write NdefMessage and it will be…
Daniil Dubrovsky
  • 459
  • 7
  • 17
1
vote
1 answer

How to detect a NFC P2P event

Android allows you to prepare NFC push messages using either NfcAdapter.setPushMessage or NfcAdapter.setPushMessageCallback. My understanding is that after setting the push message or callback, the message will be sent on the next NFC event (such as…
1
vote
0 answers

Exchange strings via NFC (Android Beam) between two Android devices

I'm trying to implement a nfc-p2p comunication Android app. I'd want to exchange strings between two devices at the same time. Starting from this post #25963691 I've found that the easy way is to use the method android.nfc.NfcAdapter.invokeBeam() to…
Anchor
  • 133
  • 1
  • 1
  • 7
1
vote
1 answer

How to a send SNEP GET request from Android

I have an NFC reader ACS ACR122U and I want to send data from my Android phone to it. I have found many examples on how to connect my two devices in P2P mode and how to send data from my phone to the ACR122U, but my desktop server (ACR122U) always…
firegloves
  • 5,581
  • 2
  • 29
  • 50
1
vote
1 answer

Why isn't Android Beam/NFC receiving the records that I send?

I've read the documentation a few times now and looked at the example code but I can't seem to figure out what I'm doing wrong. Whenever I put my two devices together I see the Beam screen and tap it, but nothing seems to be sent and none of my…
Hardy
  • 477
  • 9
  • 19
1
vote
1 answer

Reading data in NFC phone, with NFC Reader

In my project, i need to send 9 digit number to NFC Reader via my NFC phone. NFC Reader should read the data, and use it in my windows project. I have Samsung note 3 as NFC phone, and acr122L as NFC Reader. I've been searching about it, but couldn't…
Ahmet
  • 11
  • 1
  • 4
1
vote
2 answers

Send TgInitAsTarget command to PN532 (ELEHOUSE module),get ACK frame back, but lost the normal information frame

I am getting started with a PN532 NFC module recently. I can successfully read/write M1 and S50 cards. Now I am trying to learn how to use P2P communication. However, when I send a TgInitAsTarget command to the PN532 (ELEHOUSE module), I receive an…
Allen
  • 21
  • 3