Topic: Mifare data analysis
Thanks to all in libnfc community I was able to read and analyze to some
extend Mifare classic 4K card used in public transport.
In my case:
Sector 0, Block 1&2 Mifare Application Directory (MAD)
http://www.nxp.com/acrobat_download2/ot
ad0107.pdf
Sector 1 (administration code 0x00 0x04) contains card holder information.
The recommented format for storing card holder information is Run-Lenght-Coding.
Sector 2 card publisher information (code 0x00, 0x15).
Sector 3 electronic purse, city traffic
These sectors don't change during card usage.
Sectors 4 and 5 - prepaid coupon, city traffic
I suspect that every administation code has a registered format.
Sector 4, Block 2 contains information about last travel.
Format type:
00 aa 00 bb 01 00 cc cc dd dd dd dd 00 ee 00 ff
aa = line number
bb = tram/trolley bus
cc cc = car number (dec)
dd dd dd dd = time and date
lower 14 bits = number of days since 01.01.1997
higher bits = number of minutes since the start of the day
ff = some sort of check sum
Is there a way to figure out what method is used to calculate check sum?
Sector 5 Block 0 and 1 Value blocks.
I would be happy if someone shared his observations. Regards
Andy