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

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{PN532-RFID-NFC-NAV}} {{traduction}} {{PN532-RFID-NFC-TRAILER}} »)
 
Ligne 2 : Ligne 2 :
  
 
{{traduction}}
 
{{traduction}}
 +
== Cartes & tags MiFare ==
 +
{{bloc-etroit|text=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 ==
 +
{{bloc-etroit|text=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:
 +
 +
* [http://www.nxp.com/documents/data_sheet/MF1S503x.pdf MF1S503x Mifare Classic 1K data sheet]
 +
* [http://www.nxp.com/documents/data_sheet/MF1S70YYX.pdf MF1S70yyX MIFARE Classic 4K data sheet]
 +
 +
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 ==
 +
{{bloc-etroit|text=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)
 +
}}
 +
 +
== Secteur 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:
 +
 +
<nowiki>    Sector  Block  Bytes                                                          Description
 +
      ------  -----  -----                                                          -----------
 +
                      0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15</nowiki>
 +
<nowiki>      1      3      [-------KEY A-------]  [Access Bits]  [-------KEY B-------]  Sector Trailer
 +
              2      [                            Data                          ]  Data
 +
              1      [                            Data                          ]  Data
 +
              0      [                            Data                          ]  Data</nowiki>
 +
<nowiki>      0      3      [-------KEY A-------]  [Access Bits]  [-------KEY B-------]  Sector Trailer
 +
              2      [                            Data                          ]  Data
 +
              1      [                            Data                          ]  Data
 +
              0      [                    Manufacturer Data                    ]  Manufacturer Block</nowiki>
  
 
{{PN532-RFID-NFC-TRAILER}}
 
{{PN532-RFID-NFC-TRAILER}}

Version du 29 juillet 2015 à 10:47


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)

Secteur 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

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.