Topic: Android NFC : SNEP protocol and P2P response

Hello,

I don't know if it's the good place to ask these questions but I'll try anyway big_smile

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 non-android devices.

I have following the Google tutorial for NFC P2P (http://developer.android.com/guide/topi … c.html#p2p) and I can send some information from one phone to the other, but I have a few questions:

1. Android Beam is just a name for NFC or it is an Android protocol working over SNEP/NPP ? If it's a protocol, how to do NFC P2P without Beam ?
2. How to set the use of SNEP ?
3. How to send a response to the other device when the connection is initialized (first message received) ?

Thank you for your help !!!

Re: Android NFC : SNEP protocol and P2P response

Android Beam is a high level NDEF message exchange mechanism. It can use NPP or SNEP. In ICS SNEP is the default with a fallback to NPP.
Right now you cannot access SNEP directly from Android. It is used by Android Beam and all you can do is to pass messages via NdefPush.

One option would be to implement the LLCP and SNEP protocols on top of IsoDep but I don’t know if this is what you want to do.

If you have an ACR122 device you can try my NDEF Push /Android Beam Demo Applet. It’s a Java Applet that runs in the browser and allows you to receive and send NDEF messages to an Android phone. If you activate the java console you will see all the messages that are being exchanged.

http://www.grundid.de/nfc/

Regards,
Adrian.

Re: Android NFC : SNEP protocol and P2P response

To see more from SNEP an how it is implemented you could have a look at nfcpy https://launchpad.net/nfcpy.
So far, I have successfully pushed a URL/SmartPoster from an ubuntu box via anSCL3711 to a Galaxy Nexus (something I have so far failed to achieve with libnfc (see my question regarding an error with tag emulation in this list).

Did you manage to get data sent between PC and phone?
Success
  Hartmut

Re: Android NFC : SNEP protocol and P2P response

Is There a way to continuously exchanging messages using Android Beam without having to press "Touch to Beam" UI?