Différences entre versions de « PN532-RFID-NFC-Carte-et-tag-MiFare »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 107 : Ligne 107 :
 
Le dump de la mémoire illustre la structure d'une carte MiFace Classic de 1K où vous pouvez clairement voir les données et secteurs de fin (''trailer''):
 
Le dump de la mémoire illustre la structure d'une carte MiFace Classic de 1K où vous pouvez clairement voir les données et secteurs de fin (''trailer''):
  
  <nowiki>    [--------------------------Start of Memory Dump--------------------------]
+
  <nowiki>    [--------------------------Début du dump mémoire-------------------------]
 
     ------------------------Sector 0-------------------------
 
     ------------------------Sector 0-------------------------
     Block 0 8E 02 6F 66 85 08 04 00 62 63 64 65 66 67 68 69  ?.of?...bcdefghi
+
     Bloc 0 : 8E 02 6F 66 85 08 04 00 62 63 64 65 66 67 68 69  ?.of?...bcdefghi
     Block 1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 1 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 2 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 3 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 3 : 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 1-------------------------
 
     ------------------------Sector 1-------------------------
     Block 4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 4 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 5 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 6 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 7 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 7 : 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 2-------------------------
 
     ------------------------Sector 2-------------------------
     Block 8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 8 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 9 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 11 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 11: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 3-------------------------
 
     ------------------------Sector 3-------------------------
     Block 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 12: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 13 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 13: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 14: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 15 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 15: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 4-------------------------
 
     ------------------------Sector 4-------------------------
     Block 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 16: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 17: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 18: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 19 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 19: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 5-------------------------
 
     ------------------------Sector 5-------------------------
     Block 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 21: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 22: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 23 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 23: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 6-------------------------
 
     ------------------------Sector 6-------------------------
     Block 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 24: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 25: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 26: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 27 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 27: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 7-------------------------
 
     ------------------------Sector 7-------------------------
     Block 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 28: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 29 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 29: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 31 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 31: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 8-------------------------
 
     ------------------------Sector 8-------------------------
     Block 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 32: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 33: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 34: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 35 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 35: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 9-------------------------
 
     ------------------------Sector 9-------------------------
     Block 36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 36: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 37: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 38: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 39 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 39: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 10-------------------------
 
     ------------------------Sector 10-------------------------
     Block 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 41: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 42: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 43 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 43: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 11-------------------------
 
     ------------------------Sector 11-------------------------
     Block 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 44: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 45: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 46: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 47 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 47: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 12-------------------------
 
     ------------------------Sector 12-------------------------
     Block 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 48: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 49: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 51 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 51: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 13-------------------------
 
     ------------------------Sector 13-------------------------
     Block 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 52: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 53 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 53: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 54 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 54: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 55 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 55: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 14-------------------------
 
     ------------------------Sector 14-------------------------
     Block 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 56: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 57: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 58: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 59 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 59: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
 
     ------------------------Sector 15-------------------------
 
     ------------------------Sector 15-------------------------
     Block 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 61 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 61: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
+
     Bloc 62: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     Block 63 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
+
     Bloc 63: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
     [---------------------------End of Memory Dump---------------------------]</nowiki>
+
     [---------------------------Fin du dump mémoire--------------------------]</nowiki>
  
 
{{PN532-RFID-NFC-TRAILER}}
 
{{PN532-RFID-NFC-TRAILER}}

Version du 31 juillet 2015 à 10:37


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Cartes & tags MiFare

MiFare is one of the four 13.56MHz card 'protocols' (FeliCa is another well known one) All of the cards and tags sold at the Adafruit shop use the inexpensive and popular MiFare Classic chipset

Cartes MiFare Classic

MIFARE Classic cards come in 1K and 4K varieties. While several varieties of chips exist, the two main chipsets used are described in the following publicly accessible documents:

Mifare Classic cards typically have a 4-byte NUID that uniquely (within the numeric limits of the value) identifies the card. It's possible to have a 7 byte IDs as well, but the 4 byte models are far more common for Mifare Classic.

Memoire EEPROM

Mifare Classic cards have either 1K or 4K of EEPROM memory. Each memory block can be configured with different access conditions, with two seperate authentication keys present in each block.

Mifare Classic cards are divided into section called sectors and blocks. Each "sector" has individual access rights, and contains a fixed number of "blocks" that are controlled by these access rights. Each block contains 16 bytes, and sectors contains either 4 blocks (1K/4K cards) for a total of 64 bytes per sector, or 16 blocks (4K cards only) for a total of 256 bytes per sector. The card types are organised as follows:

  • cartes de 1K - 16 sectors of 4 blocks each (sectors 0..15)
  • Cartes de 4K - 32 sectors of 4 blocks each (sectors 0..31) and 8 sectors of 16 blocks each (sectors 32..39)

Secteurs de 4 blocs

1K and 4K cards both use 16 sectors of 4 blocks each, with the bottom 1K of memory on the 4K cards being organised identically to the 1K models for compatability reasons. These individual 4 block sectors (containing 64 byts each) have basic security features are can each be configured with seperate read/write access and two different 6-byte authentication keys (the keys can be different for each sector). Due to these security features (which are stored in the last block, called the Sector Trailer), only the bottom 3 blocks of each sector are actually available for data storage, meaning you have 48 bytes per 64 byte sector available for your own use.

Each 4 block sector is organised as follows, with four rows of 16 bytes each for a total of 64-bytes per sector. The first two sectors of any card are shown:

    Sector  Block   Bytes                                                           Description
    ------  -----   -----                                                           -----------
                      0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15
      1       3       [-------KEY A-------]   [Access Bits]   [-------KEY B-------]   Sector Trailer
              2       [                            Data                           ]   Data
              1       [                            Data                           ]   Data
              0       [                            Data                           ]   Data
      0       3       [-------KEY A-------]   [Access Bits]   [-------KEY B-------]   Sector Trailer
              2       [                            Data                           ]   Data
              1       [                            Data                           ]   Data
              0       [                     Manufacturer Data                     ]   Manufacturer Block

Secteur de fin (3 blocs)

Le secteur de fin s'appelle "sector trailer" en anglais. Ce secteur contient deux clés secrètes Clé A et Clé B (Key A et Key B en anglais), ainsi que les conditions d'accès pour les 4 blocs.

Ce secteur à la structure suivante:

          Sector Trailer Bytes
          --------------------------------------------------------------
          0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15
          [       Key A       ]   [Access Bits]   [       Key B        ]

For more information in using Keys to access the clock contents, see Accessing Data Blocks further below.

Blocs de données (Blocs 0..2)

Data blocks are 16 bytes wide and, depending on the permissions set in the access bits, can be read from and written to. You are free to use the 16 data bytes in any way you wish. You can easily store text input, store four 32-bit integer values, a 16 character uri, etc.

Blocs de données comme "bloc valeurs"

An alternative to storing random data in the 16 byte-wide blocks is to configure them as "bloc valeur" ("Value Blocks" en anglais). Value blocks allow performing electronic purse functions (valid commands are: read, write, increment, decrement, restore, transfer).

Each Value block contains a single signed 32-bit value, and this value is stored 3 times for data integrity and security reasons. It is stored twice non-inverted, and once inverted. The last 4 bytes are used for a 1-byte address, which is stored 4 times (twice non-inverted, and twice inverted).

Data blocks configured as "Value Blocks" have the following structure:

          Value Block Bytes
          --------------------------------------------------------------
          0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15
          [   Value   ]   [   ~Value  ]   [   Value   ]   [A  ~A  A   ~A]

Bloc Fabricant (Secteur 0, Bloc 0)

Sector 0 is special since it contains the bloc Fabricant ("Manufacturer Block" en anglais). This block contains the manufacturer data, and is read-only. It should be avoided unless you know what you are doing.

Secteurs de 16 blocs

16 block sectors are identical to 4 block sectors, but with more data blocks. The same structure described in the 4 block sectors above applies.

      Sector  Block   Bytes                                                           Description
      ------  -----   -----                                                           ----------
                      0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15
      32      15      [-------KEY A-------]   [Access Bits]   [-------KEY B-------]   Sector Trailer 32
              14      [                            Data                           ]   Data
              13      [                            Data                           ]   Data
              ...
              2       [                            Data                           ]   Data
              1       [                            Data                           ]   Data
              0       [                            Data                           ]   Data

Accéder à la mémoire de l'EEPROM

To access the EEPROM on the cards, you need to perform the following steps:

  1. You must retrieve the 4-byte NUID of the card (this can sometimes be 7-bytes long as well, though rarely for Mifare Classic cards). This is required for the subsequent authentication process.
  2. You must authenticate the sector you wish to access according to the access rules defined in the Sector Trailer block for that sector, by passing in the appropriate 6 byte Authentication Key (ex. 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF for new cards).
  3. Once authenication has succeeded, and depending on the sector permissions, you can then read/write/increment/decrement the contents of the specific block. Note that you need to re-authenticate for each sector that you access, since each sector can have it's own distinct access keys and rights!

Note sur l'Authentification

Before you can do access the sector's memory, you first need to "authenticate" according to the security settings stored in the Sector Trailer. By default, any new card will generally be configured to allow full access to every block in the sector using Key A and a value of 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF. Some other common keys that you may wish to try if this doesn't work are:

              0XFF 0XFF 0XFF 0XFF 0XFF 0XFF
              0XD3 0XF7 0XD3 0XF7 0XD3 0XF7
              0XA0 0XA1 0XA2 0XA3 0XA4 0XA5
              0XB0 0XB1 0XB2 0XB3 0XB4 0XB5
              0X4D 0X3A 0X99 0XC3 0X51 0XDD
              0X1A 0X98 0X2C 0X7E 0X45 0X9A
              0XAA 0XBB 0XCC 0XDD 0XEE 0XFF
              0X00 0X00 0X00 0X00 0X00 0X00
              0XAB 0XCD 0XEF 0X12 0X34 0X56

Carte MiFare Classic 1K - Exemple

Voici un exemple avec un carte MiFare Classic toute neuve.

Le dump de la mémoire illustre la structure d'une carte MiFace Classic de 1K où vous pouvez clairement voir les données et secteurs de fin (trailer):

    [--------------------------Début du dump mémoire-------------------------]
    ------------------------Sector 0-------------------------
    Bloc 0 : 8E 02 6F 66 85 08 04 00 62 63 64 65 66 67 68 69  ?.of?...bcdefghi
    Bloc 1 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 2 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 3 : 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 1-------------------------
    Bloc 4 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 5 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 6 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 7 : 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 2-------------------------
    Bloc 8 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 9 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 11: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 3-------------------------
    Bloc 12: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 13: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 14: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 15: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 4-------------------------
    Bloc 16: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 17: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 18: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 19: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 5-------------------------
    Bloc 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 21: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 22: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 23: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 6-------------------------
    Bloc 24: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 25: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 26: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 27: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 7-------------------------
    Bloc 28: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 29: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 31: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 8-------------------------
    Bloc 32: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 33: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 34: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 35: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 9-------------------------
    Bloc 36: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 37: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 38: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 39: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 10-------------------------
    Bloc 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 41: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 42: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 43: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 11-------------------------
    Bloc 44: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 45: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 46: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 47: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 12-------------------------
    Bloc 48: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 49: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 51: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 13-------------------------
    Bloc 52: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 53: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 54: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 55: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 14-------------------------
    Bloc 56: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 57: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 58: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 59: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    ------------------------Sector 15-------------------------
    Bloc 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 61: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 62: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    Bloc 63: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF  ......ÿ.?iÿÿÿÿÿÿ
    [---------------------------Fin du dump mémoire--------------------------]

Source: PN532 RFID/NFC Breakout and Shield créé par LadyAda pour AdaFruit Industries. Crédit [www.adafruit.com AdaFruit Industries]

Traduit par Meurisse D. pour MCHobby.be

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.