Thursday, September 6, 2012

Re: [android-developers] Re: does NFC in gingerbread support card simulate?

On Fri, Sep 7, 2012 at 1:54 AM, Michael Roland <mi.roland@gmail.com> wrote:
> Hi Nikolay,
>
>>> Maybe Doug can give some more hints on how to properly use IsoPcd?
>>
>> Does he hang around here :)
>
> I don't know, but I had BCC'd him on that message, so here is what he wrote:

Thanks for this.

>
> || Sure guys,
> || ISOPCDA/B is just another tag type.
> || The only difference is that the intent won't fire unless the app
> || is in the foreground. This is on purpose to give default to
> || google wallet. The intent will fire only when the first APDU is
> || sent from reader to phone. At that point...the intent fires (so
> || rats, select, reset, etc 14443-3 commands don't fire the intent)
> || The emulation is a 14443-4 level emulation intended for APDU
> || exchange.
>

That is my understanding too, so I am not too far off :) I still
don't get the intent when I send APDUs but that may be a problem
with my libnfc setup. When I have a IsoPcdA activity in the foreground
nfc_initiator_select_passive_target() return 0, i.e. no tags found, but
this same code works with Google Wallet. Might be some sort of
a catch 22 situation -- the reader expecting some response to detect
it as a tag, and the tag expecting something from the reader to
get activated. Unfortunately I didn't get a chance to investigate
further. Additionally the ATR/ATS is different depending on whether
Google Wallet is installed. Will try to look into it some more.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment