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

How can I send a string through NFC while Screen-Pinning?

I am trying to send a String through NFC while my app is using screen pinning. It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then…
12
votes
1 answer

NFC tag detection is not calling onNewIntent and it's Launching From Main Activity

I am new to NFC. I tried to connect to NFC and share the text data from a device to another device. I install my application on both devices and in one device I open my application and start tapping the device to the another device in order to…
android_dev
  • 1,477
  • 12
  • 18
12
votes
1 answer

NFC: What is the difference between S-beam and Android beam?

NFC: What is the difference between S-beam and Android beam? Can someone explain the exact flow of Wifi-Direct/Bluetooth getting activated and transferring the data?
Raa
  • 321
  • 2
  • 5
  • 16
9
votes
1 answer

Android Beam: launch application with MIME type record

I am working on a project, where I am using an Android smartphone and a PN532 USB chip (elechouse) which has peer to peer mode as one of its features. I tried to send NDEF messages from PN532 module to smartphone and conversely and it works…
Uroš Podkrižnik
  • 8,607
  • 5
  • 21
  • 31
9
votes
1 answer

How can my app find out which NFC mode is enabled?

I've found that Android devices support three NFC modes: reader/writer, P2P, and card emulation. Is it possible for my app to check which mode is currently enabled?
hoonj
  • 273
  • 3
  • 9
9
votes
5 answers

NFC Card Reader ACR 122 incompatible with Android 4.1 Jelly Beans?

I used the ACR 122 before and it worked flawlessly with an Android < 4.1 phone. I used it to exchange P2P SNEP messsages... But since the phone got 4.1, the reader starts beeping and flashing when you place the phone above it. Does anyone else have…
Sven Haiges
  • 2,636
  • 5
  • 42
  • 54
8
votes
1 answer

What does enableForegroundDispatch and disableForegroundDispatch do?

I read the documentation and I don't quite understand what either do. Considering Android made the puzzling decision that we now need to use Android Beam to send data from 1 one phone to another and there is no way to simultaneously send data from…
David
  • 7,028
  • 10
  • 48
  • 95
8
votes
2 answers

Sending URL from Android to Windows Phone via NFC gives Play Store link

I am trying to use NFC to send a URL from an Android app to a WP8 phone. When beaming to an Android device, the URL is sent correctly. However, when beaming to WP8, IE loads a link to the Play Store instead of the one I want to send (e.g.…
J Yang
  • 81
  • 3
8
votes
1 answer

Writing NFC tag so that it works with both Android and Windows Phone8

I am looking for some advice regarding NFC data. I have a device, lets say a printer or speaker. I want to put a NFC tag on this device. The data I want to put in NFC tag is DeviceName/MacAddress/Password. Now the requirement is when ever user…
Naveen
  • 343
  • 1
  • 3
  • 13
6
votes
3 answers

Android NFC : SNEP protocol and P2P response

I am trying to implement a P2P communication between two Android phones (one of them will be replaced by an independent device in the end). I have seen that Android 4 supports SNEP which is published by the NFC forum and should be available on…
user1029309
6
votes
1 answer

How to receive file using NFC (Android Beam) in Android

I was able to send a file using NFC, based on tutorials on the Android developer site. However I'm unable to handle the receiver part. I follow http://developer.android.com/training/beam-files/receive-files.html for the receiving side and I get the…
user3847939
  • 101
  • 4
6
votes
1 answer

ACR122U - Read NFC data sent from android phone

I am required to transfer a simple string via NFC to the PC through an android phone. To enable NFC capabilities in the PC I have plugged in an ACR122U to read the transmitted data from the android phone through my C# program in the PC. I have tried…
Hasitha Shan
  • 2,900
  • 6
  • 42
  • 83
6
votes
1 answer

How does Android poll for NFC devices

I am working with a contactless reader to communicate with my Android device. I have observed that any point in time I cannot connect to my Android device using P2P. If I want to connect to initiate an Android Beam transfer I must continuously try…
jim
  • 8,670
  • 15
  • 78
  • 149
6
votes
2 answers

How could you check if an android device supports SNEP or Android's Ndef Push Protocol?

You can find this inside Android documentation: For NDEF push to function properly the other NFC device must support either NFC Forum's SNEP (Simple Ndef Exchange Protocol), or Android's "com.android.npp" (Ndef Push Protocol). This was optional on…
George Pligoropoulos
  • 2,919
  • 3
  • 33
  • 65
5
votes
1 answer

Can't send data to or from a Galaxy Nexus through LLCP

I have a Galaxy Nexus phone with Android 4.0.2 and a NXP demoboard PN532-C106. I am trying to connect them to send data using the LLCP protocol and I am using "npp-server" and "llcp-test-server" from libnfc-llcp to do that. But I can only get them…
MrBucket
  • 73
  • 7
1
2 3
14 15