Tuesday 15 February 2011

nfc - why i am getting Tag lost exception on AES authentication in mifare plus and MifareDesfire EV1 -



nfc - why i am getting Tag lost exception on AES authentication in mifare plus and MifareDesfire EV1 -

i sending aes authentication command on mifaredesfire tag , getting tag lost exception.

as first command code in desfire : 0xaa card key num 0x00(master card key)

have tried on native authentication (des) , working fine native command : (0x0a,0x00)

sample code : public void onnewintent(intent intent) { textview text2 = (textview) findviewbyid(r.id.textview2); textview text1 = (textview) findviewbyid(r.id.textview1); string action = intent.getaction(); if (nfcadapter.action_tag_discovered.equals(action) || nfcadapter.action_tech_discovered.equals(action) || nfcadapter.action_ndef_discovered.equals(action)) { toast.maketext(this, "discovered", toast.length_short).show(); } else { toast.maketext(this, "falied", toast.length_short).show(); } byte[] tagresponse = null; desfire = (tag) intent.getparcelableextra(nfcadapter.extra_tag); isodep = isodep.get(desfire); seek { isodep.connect(); } grab (ioexception e) { e.printstacktrace(); } byte[] test = new byte[] { (byte) 0xaa, (byte) 0x00 }; seek { tagresponse = isodep.transceive(test); } grab (ioexception e) { e.printstacktrace(); } seek { isodep.close(); } grab (ioexception e) { e.printstacktrace(); } }

resolved: rf antina problem, kept tag in proximity aes authentication needs more powerfulness exchange info between pcd , picc.

nfc mifare

No comments:

Post a Comment