Read NfcA MifareClassic NFC Tags

I have different tags:

  • Amazon tag: NfcA http://www.amazon.de/gp/product/B00AESJ3B0/ref=oh_details_o00_s00_i00
  • my key: NfcA
  • some ad tag: NfcA, Ndef, MifareUltraLight

I want to read my key. UID is 20 66 be 52

, ATQA 00 40

SAK 00 08

(ATQA and SAK are the same as from Amazon key, so I think this is also Mifare Classic 1KB)

Whenever I try transceive(byte[])

, I catch TagLostException

. Fun fact: ad tag performs better, but still quitsIOException: Transceive failed

Trying to parse the tag (for my key) into IsoDep

or MifareClassic

produces a Nullpointer

. Only NfcA

works, but I can't read the data from the tag.

Can anyone provide my valid commands or any other way to read the content from Android.

MifareClassic mfc = MifareClassic.get(tagFromIntent);
mfc.connect(); //Nullpointer

      

EDIT: Looks like the problem might be with my Nexus 4 (mostly bought it for NFC :() doesn't seem to support the classic MIFARE tags. But if you still have ideas please post them.

+3
java android nfc mifare


source to share


1 answer


Now it's clear: Nexus 4 doesn't support MIFARE Classic (e.g. MIFARE Ultralight works)

It can read UID, ATQA and SAK, but cannot write to and read from blocks / sectors.



Sadly, a high-end / flagship device like the Nexus 4 (as well as the Nexus 10) can't read the most popular tags.

+3


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics