Saturday, April 9, 2011

[android-developers] Re: android nfc tech API help

Hallo Priti,

> I can get a NfcA object using the getTag(tag) method.
> NfcA myTag = NfcA.getTag(tag);
>
> I then do a
> [...]
>     retData = myTag.transcieve(apduCmd); //where apduCmd has a Select
> AID cmd}

Right, you are supposed to get an exception with this. The NfcA tech
is for "low-level" access to ISO 14443 Type A tags (i.e. the
proprietary protocol as mentioned in ISO 14443-3.) Exchanging APDUs
happens on top of ISO 14443-4 data exchange protocol (which is
independend of whether you use type A or B by the way). The correct
tech for this is IsoDep.

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

No comments:

Post a Comment