Topic: How to distinguish a mifare ultralight c ?

I have a stupid question:

How can I distinguish a mifare ultralight c from a classic mifare ultralight ? Is the size of the card written somewere ?

thank you

Re: How to distinguish a mifare ultralight c ?

cliclem wrote:

How can I distinguish a mifare ultralight c from a classic mifare ultralight ?

It is not a stupid question at all ! Actually, I'm asking similar questions about whole MIFARE family tags.

Concerning Ultralight and according to "MIFARE Type Identification Procedure",  ATQA, SAK are the same and this tag doesn't replay ATS. The only way I saw is to send a READ command on page >0xf (i.e. 0x10). If the command succeed, this is an Ultralight C, otherwise an "simple" Ultralight.

The only problem I can see ATM using this method is that I don't know which kind of respond will the PICC reply if 0x10 is 3DES crypted.

cliclem wrote:

Is the size of the card written somewere ?

AFAIK, there is no field for that in MIFARE Ultralight (C).

Romuald Conty

Re: How to distinguish a mifare ultralight c ?

The previous suggestion have been implemented in nfcutils (lsnfc) and confirmed to work fine : revision 529.
http://code.google.com/p/nfc-tools/source/detail?r=529

The 3DES case have not been tested.

Romuald Conty

Re: How to distinguish a mifare ultralight c ?

Thank you for your answer