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
2
votes
1 answer

onNewIntent() being called in onResume() multiple times

My problem is that in onNewIntent() function I start a new intent to open contacts app and allow the user the complete the process of creating a new contact, but when I try to exit the contacts app and go back to my app it seems that onNewIntent()…
TheKey
  • 23
  • 4
2
votes
1 answer

Is there a way to check when two NFC enabled Android devices go out of range?

After I transfered data between two Android devices using Android Beam, I am looking for a way to be notified when these devices go out of range.
2
votes
4 answers

How to erase NFC tag data in android?

I'm facing problem when I try to erase data in NFC tag. I'm using MifareUltralight type NFC tag. Please some one help me to find solution. Here is my code. I got this code from here if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) { …
Aristo Michael
  • 2,166
  • 3
  • 35
  • 43
2
votes
1 answer

Choosing between NFC operation modes

You can program NFC in different modes. The mission is to send bi-directional messages. In NFC there are multiple combined operation modes you can use to accomplish this: Option 1 Phone > reader/writer mode Card reader > card-emulation mode This…
S.Pols
  • 3,414
  • 2
  • 21
  • 42
2
votes
2 answers

Transfer data to PC from android device via NFC

I am trying to develop an Android application for a hospital. In this system there is a need to get the patient information stored in the database in the android phone into the desktop computer using NFC technology. Is there anyway where I could use…
Marlon Fernando
  • 29
  • 1
  • 3
  • 7
2
votes
1 answer

Disable NFC Compatibility Check in Android Manifest

I have developed an Application which deals with NFC. Currently my Application can not be downloaded from play store if user's device doesn't support NFC. I want it to be downloaded from all devices i.e. it should be compatible with all devices…
SweetWisher ツ
  • 7,296
  • 2
  • 30
  • 74
2
votes
1 answer

Android Beam: Is there any callback or error code if receiver is not authorised

I am developing an Android application which uses Beam to send custom message to another device. If my application is present on both the devices then it works fine. But if it is not present at the receiver end then still at the sender I get…
2
votes
0 answers

Desktop application with NFC reader and Android phone - Exchanging files

I am trying to build a prototype - Windows based touch Kiosk application. This application am trying to NFC enable with ACR122U or SCl3711 . I am planning on interfacing an NFC enabled Android phone with this application. Typical use cases would…
2
votes
0 answers

android with external usb nfc device

I have to make an app where I have to use external USB NFC device to read and write data to NFC tags and also p2p between that reader and android nfc phones. I have a NFC device ACR1222L. I also downloaded the android library from…
Reza.Hoque
  • 2,690
  • 10
  • 49
  • 78
2
votes
1 answer

NDEF in P2P (LLCP)

I am trying to understand a communication beetween two NFC phones where I have exchanged a contact. So there is what I got: B2 4D DD D5 07 03 13 20 00 10 02 00 00 00 D0 D2 0C C1 74 65 78 74 2F 78 2D 76 43 61 72 64 42 45 47 49 4E 3A 56 43 41 52 44 0D…
MokaT
  • 1,416
  • 16
  • 37
2
votes
0 answers

How to know that shared NFC-tag was sended to someone

I've shared a NFC-tag on my Samsung Galaxy S3 via PhoneGap NFC Plugin (link) Then I put the phone on reader ACR122U and send the tag. I'd like to know how to detect that the tag was read by someone or sended to somewhere. var record =…
Pavel Varchenko
  • 727
  • 1
  • 11
  • 21
2
votes
2 answers

How to determine if the device has been waked up from sleep mode inside onResume

Is there anyway to check if onResume was called from the device waking up from sleep state in Android? The reason why I need to check that is I don't want it to call a particular method if resumed from sleep state: @Override public void onResume()…
TtT23
  • 6,876
  • 34
  • 103
  • 174
2
votes
1 answer

Nexus S ISO14443 comunication

I'm looking for a way to make a P2P exchange in ISO14443 with my nexus S in order to spy an LLC/NDEF communication. I have already tried with a NFC ACR122 reader, and a Galaxy S NFC phone, but the communication is always in FeliCa and not in…
MokaT
  • 1,416
  • 16
  • 37
2
votes
0 answers

Simple Android NFC Program

I am working on a simple program for Android API 14 (4.0 - Ice Cream Sandwich) to test NFC (which I will then use in a bigger program). The program has two EditTexts, one labeled input and one labeled output. The goal is, when I tap two phones…
gmaster
  • 692
  • 1
  • 10
  • 27
1
vote
1 answer

Android p2p with NFCF (Sony Felica)

I am trying to develop an Android application that connects to a Sony Felica NFC chip and performs P2P read/write operations. While in debugging mode I can see that the phone establishes a connection to the device. When the phone is in the NFC…