paulgavrikov
paulgavrikov

Reputation: 1891

Reading NfcA MifareClassic NFC Tags

I have different Tags:

I want to read out my key. The UID is 20 66 be 52, the ATQA is 00 40 the SAK is 00 08 (ATQA and SAK is the same as from the Amazon key, so I guess it is also a Mifare Classic 1KB)

Whenever I try to transceive(byte[]) I catch the TagLostException. Funny fact: advertising tag works better but still throws IOException: Transceive failed

Trying to parse the tag (for my key) to IsoDep or MifareClassic throws a Nullpointer. Only NfcA works but I can't read any data from the tag.

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

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

EDIT: Seems like the problem could be my Nexus 4 (mainly bought it for NFC stuff :( ) it seems not to support MIFARE Classic Tags. But If you still have ideas write them down.

Upvotes: 3

Views: 4842

Answers (1)

paulgavrikov
paulgavrikov

Reputation: 1891

Ok it is clear now: Nexus 4 does not support MIFARE Classic (e.g. MIFARE Ultralight works)

It can read the UID, ATQA and SAK but it can't write nor read from the blocks / sectors.

Sad that a high end / flagship device like the Nexus 4 (and also the Nexus 10) is not able to read from the most popular tags.

Upvotes: 3

Related Questions