I'm trying to Read Track data for Payment cards (PayWave, PayPass). As
per my understanding they follow ISO 14443 B. With new NFC API,

   1. i can connect with IsoDep format without any exception thrown
   2. call getHiLayerResponse() - returns nothing :(. Now what?

Later i tried to call transceive() method, but all in vain (i don't
know the APDU commands).

Can someone help me how to read/get track details of PayWave or
PayPass cards (payment cards)?

if ( NfcAdapter.ACTION_TAG_DISCOVERED.equals(action) )
{
       Parcelable nfcTag =
intent.getParcelableExtra("android.nfc.extra.TAG");
       Tag t = (Tag)nfcTag;
       IsoDep myTag = IsoDep.get(t);

       String s1 = null, s2 = null, s3 = null;
       byte[] b1 = myTag.getHiLayerResponse(); //b1 is not null, but
length == 0
       if( b1 != null && b1.length > 0 )
           s1 = new String(b1);

       byte[] b2 = myTag.getHistoricalBytes(); //returns nothing coz
its NfcB
       if(b2 != null && b2.length > 0)
           s2 = new String(b2);

       if( !myTag.isConnected() )
       {
           myTag.connect();

           result = myTag.transceive(b1);
           if(result != null && result.length > 0)
           {
               s3 = new String(result); // value of s3 will be "g"
           }
       }
}

Any help will be great, please shed some light...

Thanks in Advance
~LAL

-- 
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