Hi Alistair,

I'm attempting to get into NFC on Android by communicating with a custom 
> PN532 device, however I'm a little confused as to my options and the 
> Android protocol.
>
>    - NFCIP-1, is it possible to place my device as a target into this 
>    mode, for Android to automatically detect and communicate with to load an 
>    app
>
> Android's foreground NDEF push/beam is based on NFCIP-1 (+ LLCP), so you 
can exchange NDEF messages between an Android device and the PN532 in 
peer-to-peer mode. See http://code.google.com/p/ismb-snep-java/ (or the 
older http://code.google.com/p/ismb-npp-java/ ) for an example of how to 
communicate with Android apps in peer-to-peer mode. The ACR122U that is 
used in this examples contains a PN532, so it should be easy to adapt them 
to your custom PN532 device.

>
>    - or can this only be done in card emulation mode (i.e. does NFCIP-1 
>    have to be actively triggered)?
>
> You mean that you put your PN532 into card emulation mode and use the 
Android device as a card reader? This is also possible. You could then, for 
instance, emulate a type 4 NDEF tag or use your custom ISO-DEP based 
protocol.

>
>    - What's the easiest to use card emulation mode for the sake of data 
>    format simplicity? (get an NDEF file over to the phone as simple and easy 
>    as possible that it will automatically act upon)?
>
> If you put the PN532 into card emulation mode and emulate a type 4 NDEF 
tag (see the NFC Forum website for the specification), the phone will 
recognize it as any other (real) tag.

br
Michael

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to