AN1304. NFC Type MIFARE Classic Tag Operation. Application note PUBLIC. Rev October Document information
|
|
|
- Lionel Newman
- 9 years ago
- Views:
Transcription
1 NFC Type MIFARE Classic Tag Operation Document information Info Content Keywords NDEF, NDEF data mapping, NDEF Data Exchange Format MIFARE Classic 1K, MIFARE Classic 4K, MIFARE Classic 1K/4K, MIFARE Plus X/S, NFC-enabled tag, NFC Type MIFARE Tag Abstract The NFC Forum is a standardization consortium that was formed to advance the use of Near Field Communication technology by developing specifications, ensuring interoperability among devices and services, and educating the market about NFC technology. The NFC Forum has defined a data format called NDEF to store different kind of application data. NDEF structured data may be stored inside a contactless tag. The NFC Forum has also defined four different tag types that are able to stored NDEF data. This document extends the tag types of the NFC Forum describing how the Reader device (called NFC device) can store NDEF data inside either MIFARE Classic 1K, MIFARE Classic 4K, MIFARE Plus X and MIFARE Plus S.
2 Revision history Rev Date Description Section License updated Editorial Review: added MIFARE Plus X and MIFARE Plus S, replaced NFC Forum sector with NFC sector, replaced NFC Forum AID with NFC AID and other editorial updates Corrected and rephrased some text element, added figures, updated NDEF Detection Procedure section 6.4.1, added chapter 9. ANNEX C, added chapter 10. ANNEX D, added chapter 11. ANNEX E Final Revision First draft version Contact information For more information, please visit: For sales office addresses, please send an to: [email protected] All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 2 of 36
3 1. Introduction The NFC technology allows to access standard ISO 14443A card products as the MIFARE family. A specification to store data for any kind of service or application is currently specified in the NFC Forum and it is called NFC Data Exchange Format (NDEF, see [NDEF]). To store NDEF formatted data (or also called NDEF data) inside a contactless tag product a mapping model is required. The MIFARE Classic and MIFARE Plus tag products (see [MF1K, MF4K, MFPLUS]) are ICs enabling a contactless card/tag and are currently available with 1Kbyte, 2Kbyte and 4Kbyte of EEPROM memory. The MIFARE Classic and MIFARE Plus support file data transfer in 106 kbit/s, mutual three pass authentication, data encryption of RF-channel with replay attack protection, and an encrypted data link for the data exchange. This application note describes: the mapping model to store one NDEF Message (or NDEF formatted data) inside MIFARE Classic 1k/4k card platform, the command set and the life cycle of the MIFARE Classic and MIFARE Plus to manage the NDEF Message, and how the Reader device (also called NFC device) can detect, read and write the NDEF Message in the MIFARE Classic and MIFARE Plus tag platform, 1.1 Applicable Documents [ISOIEC ] [ISOIEC ] [NDEF] [RFC2119] [MF1K] [MF4K] [MFPLUS] [MAD] ISO/IEC Type A Identification Cards- Contactless Integrated circuit(s) cards- Proximity Cards- Part 2: Radio frequency power and signal interface ISO/IEC Type A Identification Cards- Contactless Integrated circuit(s) cards- Proximity Cards- Part 3: Initialisation and Anticollision NFC Data Exchange Format (NDEF), NFC Forum, Technical Specification, May RFC Key words for use in RFCs to Indicate Requirement Levels. MF1 IC S50, Functional Specification, NXP Semiconductors, Product Data Sheet, Revision 5.2, 19 December 2006, Document Identifier MF1 IC S70, Standard 4 kbyte Card IC Functional Specification, NXP Semiconductors, Product Data Sheet, Revision 4.0, 7 February 2007, Document Identifier MF1PLUSx0y1, Mainstream Contactless Smart Card IC For Fast And Easy Solution Development, Revision 3.1, 19 April 2010, Document Identifier AN MAD, MIFARE Application Directory, NXP Semiconductors, Application Note, Revision 3.0, 4 May 2007, Document Identifier All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 3 of 36
4 1.2 Convention and notations Representation of numbers The following conventions and notations apply in this document unless otherwise stated. Binary numbers are represented by strings of digits 0 and 1 shown with the most significant bit (msb) left and the least significant bit (lsb) right, b is added at the end. Example: b Hexadecimal numbers are represented is using the numbers 0-9 and the characters A F, an h is added at the end. The Most Significant Byte (MSB) is shown on the left, the Least Significant Byte (LSB) on the right. Example: F5h Decimal numbers are represented as is (without any tailing character). Example: Special Word Usage The key words "SHALL", "SHALL NOT", "REQUIRED", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are used to signify the requirements in this document. SHALL, and REQUIRED have the same meaning. SHOULD and RECOMMENDED have the same meaning. MAY and OPTIONAL mean also the same. The key words are interpreted as described in [RFC2119]. 1.4 Glossary Table 1. Term Access Bits Terms and definitions Definition Bits of the sector trailer that controls the access rights to the whole sector C1 0 3, C2 0 3, C card CC DA GPB Key A Key B lsb LSB MAD access bits of the sector trailer A MIFARE Classic or MIFARE Plus contactless card, see [MF1K, MF4K, MFPLUS] Capability Container, the CC stores control data for managing the NDEF data inside the tag MAD available bit, see [MAD] General Purpose Byte, see [MAD] 6 bytes key of the sector 6 bytes key of the sector least significant bit least significant byte MIFARE Application Directory, see [MAD] All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 4 of 36
5 Term MAD1 MAD2 MAD sector msb MSB NDEF NDEF data NDEF Message NDEF Message TLV NFC NFC Forum NFC device NFC NULL TLV PCD PICC Proprietary TLV Reader device / Reader RF RFU Definition MIFARE Application Directory 1, see [MAD] MIFARE Application Directory 2, see [MAD] A sector containing the MAD, see [MAD]. most significant bit most significant byte NFC Data Exchange Format, see [NDEF] Data contained inside a MIFARE Classic or MIFARE Plus defined by the NFC Forum e.g. NDEF Message Data packet structured as specified by the [NDEF] specification. TLV block that contains an NDEF Message Near Field Communication Standardization body, see Reader device capable to read MIFARE Classic tags that contains NDEF data Single byte TLV block mainly used for padding. Proximity Coupling Device according the ISO The term PCD describes a reader/writer for contactless cards Proximity Card according to the ISO/IEC The MIFARE Classic or MIFARE Plus contactless card TLV block that contains proprietary data Reader/writer for contactless cards. It may be a NFC device or a PCD device. Radio Frequency Reserved for Future Use SAK Selective Acknowledge see [ISOIEC ] tag Terminator TLV TLV UID A MIFARE Classic or MIFARE Plus contactless card, see [MF1K, MF4K, MFPLUS] Last TLV block of the tag Type Length Value block, data structure element to store different kind of data. Unique Identifier, also called serial number in the [MF1K, MF4K, MFPLUS] specification All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 5 of 36
6 2. Memory Structure and Management MIFARE Classic and MIFARE Plus are based on particular memory chip with a certain memory size and space for data. The following sections briefly describe the details of such memory chips and in particular their memory structure and management (for more details see [MF1K, MF4K, MFPLUS]). MIFARE Plus SHALL be configured in Security Level 1: backwards functional compatibility mode (with MIFARE Classic 1K and MIFARE Classic 4K) with optional AES authentication. Table 2 gives an overview of the MIFARE Classic products. Table 2. Overview on MIFARE Classic products Name EEPROM MIFARE Classic 1k MF1 S50 1 Kbyte MIFARE Classic 4k MF1 S70 4 Kbyte MIFARE Plus X MF1 PLUS 60 2 Kbyte MF1 PLUS 80 4 Kbyte MIFARE Plus S MF1 SPLUS 60 2 Kbyte MF1 SPLUS 80 4 Kbyte The memory structure (or memory layout) is defined for each MIFARE Classic 1k and 4k products. The memory structures are divided into sectors containing 4 or 16 blocks each. Each block is numbered from 0 to 3 or from 0 to 15. The number associated to a block is called block number. Each block contains 16 bytes numbered from 0 to 15. For each block byte 0 is the MSB and byte 15 is the LSB. Byte 0 of block 0 in sector 0 indicates the MSB. The LSB is indicated by: Byte 15 of block 3 in sector 15 for MIFARE Classic 1k, byte 15 of block 3 in sector 31 for MIFARE Plus X/S with 2 Kbytes, and byte 15 of block 15 in sector 39 for MIFARE Classic 4k and MIFARE Plus X/S with 4 Kbytes. In this document the bit and byte order when defining packets and messages follows the big-endian byte order. The next two sections describe in detail the memory structures (also called layouts) of MIFARE Classic and MIFARE Plus. 2.1 MIFARE Classic 1k Layout Fig 1 outlines the memory layout of the MIFARE Classic 1k. The memory area of the MIFARE 1k is organized in 16 numbered sectors from 0 to 15. Each sector contains 4 blocks (block 0 to 3). Block 3 of each sector is called sector trailer and contains information (called access bits) to handle the sector access conditions and the secret keys (key A and key B). Depending on the setting of the access bits the Reader device has to perform an authentication with key A or key B to read or write the sector. Byte 9 of the sector trailer (see Fig 1) is called General Purpose Byte (GPB). All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 6 of 36
7 Block 0 of sector 0 (i.e. Manufacturer Block also called Manufacturer Data) contains the IC manufacturer data, and the Unique Identifier (UID, also called Serial Number, see [ISOIEC ] for a detailed definition). For more information about MIFARE Classic 1k see [MF1K]. Access Bits GPB Access Bits GPB Access Bits GPB Access Bits GPB Fig 1. MIFARE Classic 1k Memory Layout 2.2 MIFARE Plus X/S with 2 Kbytes Layout Fig 2 outlines the memory layout of the MIFARE Plus X/S with 2 Kbytes. The memory area is organized in 32 numbered sectors from 0 to 31. Each sector contains 4 blocks (block 0 to 3). Block 3 of each sector is called sector trailer and contains information (called access bits) to handle the sector access conditions and the secret keys (key A and key B). Depending on the setting of the access bits the Reader device has to perform an authentication with key A or key B to read or write the sector. Byte 9 of the sector trailer (see Fig 2) is called General Purpose Byte (GPB). Block 0 of sector 0 (i.e. Manufacturer Block also called Manufacturer Data) contains the IC manufacturer data, and the Unique Identifier (UID, also called Serial Number, see [ISOIEC ] for a detailed definition). For more information about MIFARE Plus X/S with 2 Kbytes see [MFPLUS]. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 7 of 36
8 Fig 2. MIFARE Plus X/S with 2 Kbytes Layout 2.3 MIFARE Classic 4k and MIFARE Plus X/S with 4 Kbytes Layout Fig 3 outlines the memory layout of the MIFARE Classic 4k tag. The memory area of the MIFARE Classic 4k and MIFARE Plus X/S with 4 Kbytes is organized in numbered sectors from 0 to 39. Each sector contains 4 or 16 blocks (block 0 to 3 or block 0 to 15). ). Block 3 of sector 0 to 31, and block 15 of sector 32 to 39 is called sector trailer, and it contains information (called access bits) to handle the sector access conditions and the secret keys (key A and key B). Depending on the setting of the access bits the Reader device has to perform an authentication with key A or key B to read or write the sector. Byte 9 of the sector trailer (see Fig 3) is called General Purpose Byte (GPB). Block 0 of sector 0 (i.e. Manufacturer Block also called Manufacturer Data) contains the IC manufacturer data, and the Unique Identifier (UID, also called Serial Number, see [ISOIEC ] for a detailed definition). For more information about MIFARE Classic 4k and MIFARE Plus X/S with 4 Kbytes see [MF4K, MFPLUS]. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 8 of 36
9 Access Bits GPB Access Bits GPB Access Bits GPB Access Bits GPB 0 Manufacturer Block Fig 3. MIFARE Classic 4k and MIFARE Plus X/S with 4 Kbytes Memory Layout 2.4 MIFARE Application Directory The memory mapping of NDEF data for the MIFARE Classic and MIFARE Plus IC uses the MIFARE application directory structure (see [MAD]). The MIFARE application directory (MAD) identifies to which application the information stored inside each memory sector belongs. Two MIFARE application directories have been specified: 1. MIFARE application directory 1 (MAD1): MAD1 MAY be used in any MIFARE Classic compliant product. The MAD1 is located in the MAD sector (sector 00h), In case the MAD1 is used on products with a memory size bigger than 1Kbytes, only 1Kbytes memory can be used and addressed by the MAD1. The remaining memory is therefore not used for NDEF storage and stays free. 2. MIFARE application directory 2 (MAD2): MAD1 MAY be used in any MIFARE Classic compliant product with a memory size bigger than 1Kbytes. MAD2 is not applicable for products with a memory size smaller or equal to 1Kbytes. The MAD2 is located in the MAD sectors (sector 00h and 10h) All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 9 of 36
10 To each application the MAD associates a unique application identifier (AID). The application identifiers (AIDs) are stored inside MAD sector(s) 00h. The AID is two byte long, and it is divided into 2 fields of one byte each: 1. the function cluster code (1 byte) that identifies the cluster to which the application belongs to, and 2. the application code (1 byte) that identifies the application inside the cluster. For more information about MAD1 and MAD2 see [MAD]. The General Purpose Byte (GPB) of the MAD sector SHALL be set with DA bit equal to 1b (DA bit is the MAD available bit of the GPB, see [MAD] for more information). All currently unused sectors SHOULD be write-protected with secret keys defined by the tag issuer in order to prevent unintended redefinition of access conditions and keys. It is RECOMMENDED to use different keys for all free sectors. This enables future release of some sectors to new service providers without the need of releasing all free sectors. 2.5 MIFARE Classic and MIFARE Plus Access Mechanism (Access Bits) MIFARE Classic and MIFARE Plus provide a mechanism based on keys and access bits to grant read and write access (see [MF1K, MF4K, MFPLUS]). Each memory sector has associated two keys called key A, and key B, and 12 access condition bits called C1 0 3, C2 0 3 and C By setting the access bits, it is possible to grant read and write access based on key A and/or key B. The access condition bits are called C1 0 3, C2 0 3 and C Their locations inside byte 6 to 8 of the Trailer are described in Fig 4. The value and also the negated value of each access bit are stored inside the sector trailer e.g. C1 0 = 0b and C1 0 = 1b. The Annex C in chapter 9 shows different values of the byte 6 to 8 depending on the access bits values. Trailer Access Bits GPB General Purpose Byte Fig 4. Access Bits location in the Trailer All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 10 of 36
11 The General Purpose Byte (GPB, see section 2.1 and section 2.3) of the sector trailer is not used in the access mechanism of MIFARE Classic and MIFARE Plus tags. However it indicates the version of the mapping document (i.e. this application note) and the read/write access (see section 6.1). In this section and in the next two sub-sections the access bits description is provided for sake of completeness and they might not be used in this application note for any purpose MAD Access The memory sectors where the MAD1 and MAD2 are stored (see [MAD]), are protected using the key A and key B. According to [MAD] the memory sectors are: MAD1: the MAD sector is 00h (sector 0), and MAD2: the MAD sectors are 00h and 10h (sector 0 and sector 16). Anybody SHALL be allowed to read the MAD sectors. This is achieved by using a public key A described in Table 3 (see also [MAD]). Table 3. Public Key A value of MAD sector(s) Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 A0h A1h A2h A3h A4h A5h The access bits for the MAD sector(s) are set to either: as described in Table 4 if the MAD sector has read and write access granted, or as described in Table 5 if the MAD sector has read-only access granted (see also [MF1K, MF4K, MFPLUS]). In this context the term read and write access granted means that for MAD sectors that have been previously authenticated with the secret key B, it is possible to read and write all sector blocks apart from the sector trailer block (see of Table 4 for more details). Instead the term read-only access granted means that for MAD sectors that have been previously authenticated with the public key A of Table 3 or secret key B, it is possible to only read all sector blocks apart from the sector trailer block (see Table 5 for more details). Using the key A it is always only possible to read the blocks of the MAD sector. trailers have a particular access configuration when read/write access or read-only access is granted (see Table 4 and Table 5). The MAD sectors SHOULD be write-protected by means of the secret key B (e.g. defined by the tag issuer), or setting the MIFARE Classic and MIFARE Plus tag as read-only using the access bits. Table 4. Access bits setting for MAD sector with read and write access granted Access bits setting for sector 0 of MAD1 or MAD2 and for sector 16 of MAD2 Access Bits Values Remarks C1 0 C2 0 C b i The block 0 is read with key A or key B and written with key B All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 11 of 36
12 C1 1 C2 1 C b The block 1 is read with key A or key B and written with key B C1 2 C2 2 C b The block 2 is read with key A or key B and written with key B C1 3 C2 3 C b The sector trailer block: Key A is written with key B and never read, Access bits is read with key A or key B and written with key B, Key B is written with key B and never read. i. Recommended value for the access bits C1 0 C2 0 C3 0 of sector 0 (manufacturer block). Table 5. Access bits setting for MAD sector with read-only access granted Access bits setting for sector 0 of MAD1 or MAD2 and for sector 16 of MAD2 Access Bits Values Remarks C1 0 C2 0 C b i The block 0 is read with key A or key B C1 1 C2 1 C b The block 1 is read with key A or key B C1 2 C2 2 C b The block 2 is read with key A or key B C1 3 C2 3 C b The sector trailer block: Key A is never written and read, Access bits is read with key A or key B and never written, Key B is never written and read. i. Recommended value for the access bits C1 0 C2 0 C3 0 of sector 0 (manufacturer block) NFC Access A sector MAY contain NDEF data. A sector that contains NDEF data is called NFC. An NFC is readable authenticating it with the public key A defined in Table 6. Public key A for NFC is different from public key A for MAD sector (compare Table 3 and Table 6). Table 6. Public Key A value of NFC s Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 D3h F7h D3h F7h D3h F7h The access bits for the data blocks and sector trailer of the NFC s are set to either: as described in Table 7 if the NFC has read and write access granted, or as described in Table 8 if the NFC has read-only access granted. In this context the term read and write access granted means that for NFC s that have been previously authenticating using the public key A of Table 6, it is possible to All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 12 of 36
13 read and write all sector blocks apart from the sector trailer block (see Table 7 for more details). Instead the term read-only access granted means that for NFC s that have been previously authenticated using the public key A of Table 6, it is possible to read all sector blocks apart from the sector trailer block (see Table 8 for more details). Key B SHALL be a secret key (e.g. defined by the tag issuer). Key B SHALL be used to modify the sector trailer i.e. key A, access bits, GPB and key B. Table 7. Access Bits Values Access bits setting for NFC s with read and write access granted Remarks C1 0 C2 0 C b The block 0 is read and written with key A or key B C1 1 C2 1 C b The block 1 is read and written with key A or key B C1 2 C2 2 C b The block 2 is read and written with key A or key B C1 3 C2 3 C b The sector trailer block: Key A is written with key B and never read, Access bits is read with key A or key B and written with key B, Key B is written with key B and never read. Table 8. Access bits setting for NFC s with read-only access granted Access Bits Values Remarks C1 0 C2 0 C b The block 0 is read with key A or key B C1 1 C2 1 C b The block 1 is read with key A or key B C1 2 C2 2 C b The block 2 is read with key A or key B C1 3 C2 3 C b The sector trailer block: Key A can never be written and read, Access bits is read with key A or key B and never written, Key B can never be written and read. 2.6 TLV blocks A TLV block consists of one to three fields: T (tag field, or T field) SHALL identify the type of the TLV block (see Table 9) and SHALL consist of a single byte encoding a number from 00h to FFh. The tag values 01h, 02h, 04h to FCh and FFh are reserved for future use. L (length field, or L field) SHALL provide the size in bytes of the value field. It has two different formats composed of one, or three bytes. The Reader device SHALL understand all two length field formats. Fig 5 shows the two different length field structures. However, depending on the tag field value, the length field MAY not be present. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 13 of 36
14 One byte format: The one byte format SHALL code the length of the value field between 00h and FEh bytes. This byte SHALL be interpreted as a cardinal if the value is between 00h and FEh. If it contains FFh the value SHALL be interpreted as flag that specifies that the length field is composed of more than one byte. Three consecutive bytes format: This format SHALL code the length of the value field between 00FFh and FFFEh bytes. The first byte is assumed to be a flag equal to FFh indicating that two more bytes length SHALL be interpreted as word. This word SHALL be interpreted as a cardinal if the value is between 00FFh and FFFEh. The value FFFFh is reserved for future use (RFU). 00- FE 1 byte format FF 00FF- FFFE 3 bytes format Fig 5. Length Field Formats V (value field, or V field) If the length field is equal to 00h or there is no length field, there SHALL NOT be the value field, i.e. the TLV block is empty. If there is the length field and indicates a length of the value field N bigger than zero (N>0), the value field SHALL consist of N consecutive bytes. Table 9 lists the TLV blocks specified by this document that are described in the following sections. Table 9. Defined TLV blocks TLV Block Name Tag Field Value Short Description NULL TLV 00h It might be used for padding of memory areas and the Reader device SHALL ignore this NDEF Message TLV 03h It contains the NDEF Message, see [NDEF] Proprietary TLV FDh Tag proprietary information Terminator TLV FEh Last TLV block in the data area The Reader device SHALL write the TLV blocks in a specific order inside the data area following the rules below: The TLV blocks SHALL be written in order starting from byte 0 of block 0 of the NFC (sector containing NDEF data) with the smallest address. A TLB block MAY be memorized across two or more NFC s. If present the Terminator TLV is the last TLV block on the MIFARE Classic and MIFARE Plus tag. NULL TLV and Terminator TLV are the only TLV blocks that are 1 byte long (e.g. composed of only the Tag field, see below). All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 14 of 36
15 All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. Reader devices SHALL ignore and jump over those TLV blocks that make use of reserved tag field values (see above). To jump over a TLV block with reserved tag field values, the Reader device SHALL read the length field to understand the length of the value field. Future definitions of TLV blocks composed of only the tag field are not backward compatible with this application note NDEF Message TLV At least one NDEF Message TLV SHALL be always present inside the MIFARE Classic and MIFARE Plus tag. The NDEF Message TLV stores the NDEF Message inside the Value field (see [NDEF]). The Reader device SHALL be able to read and process the NDEF Message TLV found by the NDEF Detection Procedure (also called mandatory NDEF Message TLV or first NDEF Message TLV, see section 6.4.1); anyhow further NDEF Message TLV blocks MAY be present. Below the encoding of the 3 TLV fields of NDEF Message TLV is shown: T SHALL be equal to 03h (see Table 9). L SHALL be equal to the size in bytes of the stored NDEF Message. V SHALL store the NDEF Message (see [NDEF]). An empty NDEF Message TLV SHALL be defined as an NDEF Message TLV with L field equal to 00h, and no V field (i.e. no NDEF Message is present in the V field, see [NDEF]). A non-empty NDEF Message TLV MAY contain either empty or non-empty NDEF Messages. The definition of empty NDEF Message is given in chapter Proprietary TLV The Proprietary TLV contains proprietary information. A MIFARE Classic and MIFARE Plus tag SHALL contain zero, one or more Proprietary TLV. The Reader device might ignore the data contained in this TLV block. Below the encoding of the 3 TLV fields of Proprietary TLV are shown: T SHALL be equal to FDh (see Table 9). L SHALL be equal to the size in bytes of the proprietary data in the Vale field. V SHALL contain any proprietary data NULL TLV The NULL TLV MAY be used for padding of the data area. A MIFARE Classic and MIFARE Plus tag MAY contain zero, one or more NULL TLV. The Reader device SHALL ignore this TLV block. NULL TLV SHALL be composed of 1 byte tag field. Below the encoding of the tag field of the NULL TLV are shown: T SHALL be equal to 00h (see Table 9). L SHALL NOT be present. V SHALL NOT be present Terminator TLV The Terminator TLV MAY be present inside the MIFARE Classic and MIFARE Plus tag, and an Reader device SHALL be able to read/process it. The Terminator TLV is the last TLV block in the data memory area. Terminator TLV SHALL be composed of 1 byte tag field. Below the encoding of the tag field of the Terminator TLV are shown: 15 of 36
16 3. RF Interface T SHALL be equal to FEh (see Table 9). L SHALL NOT be present. V SHALL NOT be present. The MIFARE Classic and MIFARE Plus comply with the RF interface as defined in the [ISOIEC ]. The ISO/IEC terminology uses the term PCD for Proximity Coupling Device and PICC for Proximity Integrated Circuit(s) Card. In this application note the PCD is called reader device or NFC device, and the PICC is called MIFARE Classic or MIFARE Plus tag. 4. Framing/Transmission Handling The framing and transmission handling of the MIFARE Classic and MIFARE Plus tag SHALL follow [MF1K, MF4K, MFPLUS]. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 16 of 36
17 5. Command Set This chapter describes the command set as well as the overall state diagram of the MIFARE Classic and MIFARE Plus tag. It provides the basis to: detect and activate the MIFARE Classic and MIFARE Plus tag, detect the NDEF data, get read and write access to the NDEF data, and deactivate the MIFARE Classic and MIFARE Plus tag. 5.1 Tag Commands and Responses Set The MIFARE Classic and MIFARE Plus tag accepts the following command set, sent by the Reader device. Table 10 shows the command set (here called memory operations) of the MIFARE Classic and MIFARE Plus tag (see [MF1K, MF4K, MFPLUS]). Table 10. Command Set / Memory Operations Memory Operations Operation Identification and Selection Authentication Read Write Description It identifies the tag and it selects it Three pass authentication, this operation requires to read an write a memory sector It reads one memory block (16 bytes) It writes one memory block (16 bytes) Identification and Selection Operation The identification and selection (or selection and anticollision) operation is defined by [MF1K, MF4K, MFPLUS, ISOIEC ] Authentication Operation The authentication operation is based on three pass authentication using either the key A or the key B. The MIFARE Classic and MIFARE Plus allows memory access only if the authentication of the specific sector has been performed successfully. The authentication is sector specific. Even if different sectors contain the same key A or key B, the authentication SHALL be performed for each sector before having access to the blocks. If the sector authentication is successful, depending on the settings of the access bits reading and/or writing MAY be allowed or not Read operation The Read operation allows to read a block (16 bytes) of a sector Write operation The Write operation allows to write a block (16 bytes) of a sector. The Write operation is block-wise i.e. it writes always the 16 bytes of the whole block. To change parts of the block, the new byte values SHALL be written together with the ones that remain fixed. The block MAY be read first (i.e. Read operation), if the fixed byte values are not known in advance. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 17 of 36
18 6. NDEF Detection and Access This chapter describes how NDEF data (e.g. NDEF Message) SHALL be stored and accessed in the MIFARE Classic and MIFARE Plus tag. The NDEF Message that this application note manages inside a MIFARE Classic and MIFARE Plus, is stored inside a NDEF Message TLV that is called mandatory NDEF Message TLV or first NDEF Message TLV. The mandatory NDEF Message TLV is also the NDEF Message TLV found by the NDEF Detection Procedure (see section 6.4.1). 6.1 NDEF Management To detect and access NDEF data (e.g. NDEF Message) inside the MIFARE Classic and MIFARE Plus tag the MAD SHALL be used (see section 2.4) together with the GPB of the NFC s. An application identifier (AID) of the MAD, called NFC AID, has been reserved to identify sectors with NDEF data. A sector with NDEF data is called NFC. The two fields of the NFC AID are set as following: 1. the function cluster code is equal to E1h to identify the cluster of sectors with NDEF data, and 2. the application code is equal to 03h to identify the NFC that this application note is related to. One or more NFC s MAY be present inside a MIFARE Classic 1k/4k tag. If more than one NFC is present, the NFC s SHALL be contiguous. In case of MIFARE Classic 4k or MIFARE Plus with 4 Kbytes, it SHALL be considered contiguous a sequence of NFC s that includes the MAD sector 16. Example of contiguous NFC s are: NFC s from sector 2 to sector 3, and NFC s from sector 1 to sector 39. In this case the MAD sector 16 is contained but still as defined above the NFC s are considered contiguous. An example of non-contiguous NFC s is: sector 3 and sector 5 without sector 4 are NFC s. In this case sector 4 is not an NFC so the two remaining NFC s are not contiguous. The NDEF data SHALL be written starting from the NFC with the smallest sector number to the biggest one. The General Purpose Byte (GPB, see section 2.1 and section 2.3) of each NFC provides information about the version number of the mapping model used to store the NDEF data into the MIFARE Classic and MIFARE Plus (see section 6.1.1) and the write access of the NFC s. GPB SHALL be coded as describe in Table 11. Table 11. General Purpose Byte structure msb Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 lsb Bit 0 Mapping version number Access conditions Major version number Minor version number Read access condition Write access condition All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 18 of 36
19 The 4 least significant bits (lsb) of the GPB indicate the access conditions of the NFC : Bit 2-3 indicates the read access condition: The value 00b indicates read access granted without any security. The value 11b indicates no read access granted at all. Any other value indicates that vendor security operations are required to grant read access i.e. proprietary. Bit 0-1 indicates the write access condition: The value 00b indicates write access granted without any security. The value 11b indicates no write access granted at all. Any other value indicates that vendor security operations are required to grant write access i.e. proprietary. The 4 most significant bits (msb) indicate the mapping version number (see section 6.1.1): Bit 7-6 (the 2 msb of mapping version number field) indicate the major version number. Bit 5-4 (the 2 lsb of mapping version number field) indicate the minor version number. Inside a MIFARE Classic and MIFARE Plus tag the NFC (s) containing the mandatory NDEF Message TLV SHALL be set with read access condition equal to 00h and write access conditions equal to either 00b or 11b (see section 6.3). The Reader device implementing this application note SHALL manage MIFARE Classic and MIFARE Plus tags with major version number equal to 01b and the minor version number equal to 00b i.e. mapping version Version Treating The GPB of the NFC s contains the mapping version number of the applied mapping model of the MIFARE Classic 1k/4k or MIFARE Plus tag. The mapping version number is indicated with two numbers: major version number and minor version number. The handling of the different major and minor version numbers of the MIFARE Classic or MIFARE Plus tag (called MSVNo) and the one implemented in the Reader device (called NFCDevVNo) is explained in the 4 cases of Table 12. Table 12. Handling of the mapping document version numbers No Version Number Case Handling 1 Major NFCDevVNo is equal to major MSVNo, and minor NFCDevVNo is bigger than or equal to minor MSVNo 2 If major NFCDevVNo is equal to major MSVNo, and minor NFCDevVNo is lower than minor MSVNo The Reader device SHALL access the MIFARE Classic or MIFARE Plus tag and SHALL use all features of the applied mapping document to this MIFARE Classic or MIFARE Plus tag. Possibly not all features of the MIFARE Classic or MIFARE Plus tag can be accessed. The Reader device SHALL use all its features and SHALL access this MIFARE Classic or MIFARE Plus tag. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 19 of 36
20 No Version Number Case Handling 3 If major NFCDevVNo is smaller than major MSVNo 4 If major NFCDevVNo is bigger than major MSVNo Incompatible data format. The Reader device cannot understand the MIFARE Classic or MIFARE Plus tag data. The Reader device SHALL reject this MIFARE Classic or MIFARE Plus tag. The Reader device might implement the support for previous versions of this specification in addition to its main version. In case the Reader device has the support from previous version, it SHALL access the MIFARE Classic or MIFARE Plus tag. On the contrary, in case the Reader device has not the support from previous version, it SHALL reject the MIFARE Classic or MIFARE Plus tag. 6.2 NDEF Storage The data format of the NDEF Message is defined in [NDEF]. The NDEF Message SHALL be stored inside the value field of the NDEF Message TLV (see section 2.6.1) using one or more NFC s. NFC s are identified by the NFC AID in the MAD sector(s). 6.3 Life Cycle The NFC s of a MIFARE Classic or MIFARE Plus tag MAY be in the following states INITIALISED, READ/WRITE or READ-ONLY. The NFC s SHALL be in only one state in a specific moment in time. The state SHALL be reflected by the content of the NFC s. The state is not related to a single NFC but to all NFC s together. The states are described in the following sections. If the MIFARE Classic or MIFARE Plus tag contains only NFC s the state of the NFC s is called the state of the MIFARE Classic or MIFARE Plus tag. In the description below the state of the MIFARE Classic or MIFARE Plus tag is confused with (i.e. equal to) the state of the NFC s. Every state has its own valid operations called transitions or state changes. The state transitions are only relevant for reader devices, which are capable of writing MIFARE Classic or MIFARE Plus tags. The different states are identified comparing the GPB of the NFC where the mandatory NDEF Message TLV starts, and the fields of the mandatory NDEF Message TLV. Note that the access bits of the sector trailer described in section 2.5, are not used in this application note to identify the specific state. If the MIFARE Classic or MIFARE Plus tag is not in a valid state according to this application note, the NDEF data of the MIFARE Classic or MIFARE Plus tag in all NFC s SHALL be ignored. The reasons MAY be: Non-contiguous NFC s. No NFC s are present inside the tag i.e. no sectors are indicated by the MAD using the NFC AID. Mismatch between overall TLV blocks length and actual length of the data area. Invalid TLV block. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 20 of 36
21 6.3.1 INITIALISED State A MIFARE Classic or MIFARE Plus tag SHALL be detected in INITIALISED state when: the GPB is set as described in section 6.1, in particular with bit 0-1 equal to 00b and bit 2-3 equal to 00b (read and write access granted), the NFC (s) contains one NDEF Message TLV (the mandatory one), and the length field of the mandatory NDEF Message TLV is equal to 00h. In INITIALISED state the NFC device MAY modify the content of the mandatory NDEF Message TLV writing an NDEF Message in it. The Annex D in chapter 10, the Annex E in chapter 0 and Annex F in chapter 12 show two examples of respectively MIFARE Classic 1k, MIFARE Plus with 2 Kbytes, and MIFARE Classic 4k or MIFARE Plus with 4 Kbytes all in INITIALISED state READ/WRITE State A MIFARE Classic or MIFARE Plus tag SHALL be detected in READ/WRITE state when: the GPB is set as described in section 6.1, in particular with bit 0-1 equal to 00b and bit 2-3 equal to 00b (read and write access granted), the mandatory NDEF Message TLV is present in the NFC (s), and the length field of the mandatory NDEF Message TLV is different from zero. The READ/WRITE state SHALL be reached via the INITIALISED state. In this state the NFC device MAY modify the content of the mandatory NDEF Message TLV writing an NDEF Message in it READ-ONLY State A MIFARE Classic or MIFARE Plus tag SHALL be detected in READ-ONLY state when: the GPB is set as described in section 6.1, in particular with bit 0-1 equal to 11b and bit 2-3 equal to 00b (no write access is granted, only read access is granted), the mandatory NDEF Message TLV is present in the NFC (s), and the length field of the mandatory NDEF Message TLV SHALL be different from zero. In READ-ONLY state all NFC s have read-only access granted. The MIFARE Classic or MIFARE Plus tag remains in READ-ONLY state for the remaining life cycle. 6.4 Command Sequence Description In this section several procedures are described to manage NDEF data e.g. the mandatory NDEF Message TLV inside the NFC (s). The different state changes or transitions between the states of the MIFARE Classic or MIFARE Plus tag are shown in detail as well. Each involved sector in the procedures SHALL be authenticated using the Authentication operation (see section 5.1.2) before reading or writing it. The public key A SHALL be selected based on the sector type i.e. MAD sector or NFC (see section 2.5) NDEF Detection Procedure The NDEF Detection Procedure SHALL be used to detect the mandatory NDEF Message (see [NDEF]) inside a MIFARE Classic or MIFARE Plus tag. The NDEF Detection Procedure is based on the check of: the MAD sector(s), All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 21 of 36
22 the NFC (s), and the mandatory NDEF Message TLV that contains the NDEF Message. As already mentioned the NDEF Message TLV found by the NDEF Detection Procedure is called mandatory NDEF Message TLV or first NDEF Message TLV. When the MIFARE Classic or MIFARE Plus is in READ/WRITE or READ-ONLY state, this NDEF Message TLV contains an NDEF Message. In INITIALISED state the NDEF Message TLV is empty. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 22 of 36
23 START Is the MAD sector(s) present? NO YES Authenticate and Read MAD sector(s) NFC AID(s) found? NO YES Check 1 st NFC sector NO Authentication of the NFC sector using public Key A successful? YES NO trailer read successful? YES Right version number in bit 4-7 of GPB? NO YES NO NO Read access conditions equal to (bit 2-3 of the GPB) 00b? YES Write access conditions equal to (bit 2-3 of the GPB) 00b or 11b? YES Read sector data blocks NO NDEF Message TLV found? (1) Any other NFC sector available? NO YES YES Check next NFC sector NO The reader device may use the NDEF write procedure and the NDEF read procedure. Length field of NDEF Message TLV equal to zero? YES The reader device may use the NDEF write procedure. MIFARE Classic or MIFARE Plus tag is not in a valid state END (1) After an Authentication or a Read operation fails, the MIFARE Classic or MIFARE Plus does not respond anymore to any commands and it needs to be re-activated and selected in order to continue the NDEF Detection Procedure. Fig 6. NDEF Detection Procedure To execute the NDEF Detection Procedure the Reader device (or NFC device) SHALL perform the following operations (see also Fig 6) on the MIFARE Classic or MIFARE Plus: 1. Check the existence of the MAD sector(s) (see section 2.4, section and [MAD]). 2. Authenticate and Read the MAD sector(s): sector 0 for MAD1, or sector 0 and 16 for MAD2 using the Read operation specified in section All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 23 of 36
24 3. If inside the MAD one or more AID(s) equal to the NFC AID related to one or more contiguous sector(s) are found, then go to item 4. Otherwise no NFC AID is detected in the MIFARE Classic or MIFARE Plus tag and the MIFARE Classic or MIFARE Plus tag is not in a valid state. 4. For each NFC, perform the following operations starting from the smallest sector number to the highest one: a. Authenticate and read (using the Read operation specified in section 5.1.3) the sector trailer of the NFC using the public key A for NFC s (see Table 6). b. If the authentication and the read operations are successful, check the sector trailer of the NFC. Otherwise if the authentication or the read operation fails, a proprietary NFC (see description of the NFC below) is found then go to item f. c. If bits 4-7 of the GPB describe the right version number according to the rules defined in section then go to item d. Otherwise stop the procedure because the MIFARE Classic or MIFARE Plus tag is not in a valid state. d. If read access condition field (bit 2-3) value of the GPB is equal to 00b and the write access condition filed (bit 0-1) value of the GPB is equal to either 00b or 11b, read the data blocks of the relative NFC using the Read operation specified in section 5.1.3, look for NDEF Message TLVs, and go to item e. Otherwise if read access field value of the GPB is different from 00h or the write access condition filed (bit 0-1) value of the GPB is different from 00b and 11b, a proprietary NFC (see description of the NFC below) is found then go to item f. e. If an NDEF Message TLV is found, this is the (i.e. the first one) mandatory NDEF Message TLV then go to item 5. Otherwise if no NDEF Message TLV is found go to item f. f. If available check the next NFC and go to item a. Otherwise if no more NFC s are available, stop the procedure because no NDEF Message TLV is found. The MIFARE Classic or MIFARE Plus tag is not in a valid state. 5. If the length field of the mandatory NDEF Message TLV is different from zero, the NDEF Message (see [NDEF]) is detected in the MIFARE Classic or MIFARE Plus tag and the Reader device MAY use the NDEF Read Procedure or the NDEF Write Procedure (see sections and 6.4.3). If the length field is equal to zero, no NDEF Message is detected in the MIFARE Classic or MIFARE Plus tag and the Reader device MAY use the NDEF Write Procedure (see section 6.4.3, the tag might be in INITIALISED state). The NDEF Detection Procedure does not relate to a valid NDEF Message (see [NDEF]). It reads the NDEF Message length from the length field of the NDEF Message TLV but does not parse the NDEF Message. The Reader device SHALL ignore and jump over the proprietary NFC s. The proprietary NFC is defined as an NFC that is: either non-authenticable with the public key A for NFC s or the read access field value of the GPB is different from 00b or the write access condition filed (bit 0-1) value of the GPB is different from 00b and 11b. Each time an Authentication operation, a Read operation or a Write operation fails, the MIFARE Classic or MIFARE Plus remains silent and it does not respond anymore to any All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 24 of 36
25 commands. In this situation in order to continue the NDEF Detection Procedure the MIFARE Classic or MIFARE Plus needs to be re-activated and selected NDEF Read Procedure The NDEF Read Procedure is used by the Reader device to read the NDEF Message from the mandatory NDEF Message TLV. Before reading the NDEF Message the NDEF Detection Procedure SHALL be executed (see section 6.4.1), and the MIFARE Classic or MIFARE Plus tag SHALL be in a valid state. Using the NDEF Read Procedure the Reader device SHALL read the whole NDEF Message from the mandatory NDEF Message TLV using one or more Read operations (see section 5.1.3). The length of the NDEF Message to be read is provided from the length field of the mandatory NDEF Message TLV (see section 2.6.1). If the mandatory NDEF Message TLV is stored in one or more NFC s, the Reader device SHALL be able to authenticate all these sectors with the public Key A for NFC s (see Table 6). In case the authentication procedure fails the MIFARE Classic or MIFARE Plus tag is not in a valid state NDEF Write Procedure The NDEF Write Procedure SHALL be used by the Reader device to write the mandatory NDEF Message TLV containing an NDEF Message inside a MIFARE Classic or MIFARE Plus tag. The NDEF Write Procedure uses the Read and Write operations (see section and section 5.1.4). To write the NDEF Message the MIFARE Classic or MIFARE Plus tag SHALL be in INITIALISED or READ/WRITE state i.e. the mandatory NDEF Message TLV SHALL be already present inside the MIFARE Classic or MIFARE Plus tag. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 25 of 36
26 START Find the mandatory NDEF Message TLV using the NDEF detection procedure Mandatory NDEF message TLV found? NO YES Tag available memory size bigger than or equal to NDEF Message TLV size to be written? NO YES Write the Length Field of the NDEF Message TLV equal to 00h (1) Write NDEF message in the Value Field of the NDEF Message TLV (1) Set the Length Field of the NDEF Message TLV to the length of the NDEF message Write the Terminator TLV after the NDEF Message TLV, if available memory is not full END (1) Please see the NDEF Write Procedure description in section for more detailed information. Fig 7. NDEF Write Procedure To execute the NDEF Write Procedure, the Reader device SHALL do the following operations (see also Fig 8) on the MIFARE Classic or MIFARE Plus tag: 1. Use the NDEF Detection Procedure (see section 6.4.1) to find the mandatory NDEF Message TLV. If the mandatory NDEF Message TLV is found go to item 2. Otherwise if no NDEF Message TLV is found, end the procedure. 2. If the available memory size for the NDEF Message TLV is equal to or bigger than the NDEF Message size, the operations below SHALL be done in the following order using one or more Write operations (see section 5.1.4): a. the length field of the mandatory NDEF Message TLV SHALL be one byte long and its value SHALL be set to 00h, b. the new NDEF Message SHALL be written in the value field of the mandatory NDEF Message TLV, and All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 26 of 36
27 c. the length field of the mandatory NDEF Message TLV SHALL be updated with the length of the NDEF Message. Otherwise if not enough memory space is available in the MIFARE Classic or MIFARE Plus tag, the NDEF Message SHALL NOT be written in the MIFARE Classic or MIFARE Plus tag. 3. If the item 2 is done successfully, the Reader device SHALL write the Terminator TLV in the next byte after the NDEF Message TLV using the Write operation (see section 5.1.4). The Terminator TLV SHALL NOT be written when the mandatory NDEF Message TLV ends at the last byte of the last available NFC i.e. the NFC with the biggest sector number. Concerning the operation item 2.b, the writing of the value field of the found NDEF Message TLV SHALL leave 1 or 3 bytes for the length field (see section 2.6) that are needed by the next operation item 2.c to store the length of the NDEF Message. The NDEF Write Procedure does not change the starting position of the mandatory NDEF Message TLV. The NDEF Write Procedure MAY write the NDEF Message TLV across contiguous NFC s with the exception of MAD sector 16 in case MIFARE Classic 4k and MIFARE Plus with 4 Kbytes is used (see also the definition of contiguous NFC s in section 6.1). The available memory size for the mandatory NDEF Message TLV is calculated from the position of the mandatory NDEF Message TLV as the sum of: the free memory space of the NFC containing the mandatory NDEF Message TLV. The free memory space starts from the beginning of the mandatory NFC Message TLV and finishes at the end of the NFC, and the whole memory space of the NFC s following the sector containing the mandatory NDEF Message TLV. The following NFC s MAY have a size of 48 bytes (3 blocks) or 240 bytes (15 blocks). The information about the following available NFC s SHALL be retrieved from the MAD sectors. For the Write operation the reading of not completely updated blocks is needed first (see section 5.1.4) when e.g. the NDEF Message TLV starts in the middle of a block State Changes This section describes the possible state changes of the MIFARE Classic or MIFARE Plus tag. Fig 8 shows the states and the state change (also called transition) between them. In this application note the only specified transition is from INITIALISED to READ/WRITE. The Reader device MAY issue a MIFARE Classic or MIFARE Plus tag in INITIALISED state, READ/WRITE state or even in READ-ONLY state. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 27 of 36
28 INITIALIZED READ/WRITE READ-ONLY Entry in the Life Cycle Transition between states Fig 8. Life Cycle with State Change (transition) Transition from INITIALISED to READ/WRITE To perform the transition from INITIALISED to READ/WRITE the Reader device SHALL do the following operation: a non-empty NDEF Message TLV (length field different from zero) SHALL replace the previous empty NDEF Message TLV using the NDEF Write Procedure (see section 6.4.3). The NDEF Message TLV is the mandatory one detected by means of the NDEF Detection Procedure (see section 6.4.1). The empty NDEF Message (see chapter 3) MAY be used to replace a non-empty NDEF Message. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 28 of 36
29 7. ANNEX A: Empty NDEF Message An empty NDEF Message (see [NDEF]) is defined as an NDEF Message composed of one NDEF record. The NDEF record uses the NDEF short-record layout (SR=1b) with: Type Name Format (TNF) field value equal to 00h (empty, TYPE_LENGTH=00h, PAYLOAD_LENGTH=00h), no ID_LENGTH field (IL=0b), MB=1b, ME=1b, CF=0b. The empty NDEF record (i.e. the empty NDEF Message) is composed of 3 bytes and it is equal to D00000h. 8. ANNEX B: Example of sector trailer using MAD1 This example refers to a MIFARE Classic 1k tag with MAD1 in sector 0. The trailer of sector 0 is set as described in Table 13 (GPB is the General Purpose Byte see [MF1K], and [MAD]). Table 13. Example for sector trailer for sector 0, block 3 settings Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Byte 13 Byte 14 Byte 15 Key A Access Conditions GPB Key B A0h A1h A2h A3h A4h A5h 78h 77h 88h C1h Secret Key 9. ANNEX C: Access bits Coding into byte 6 to 8 of the sector trailer Table 14. Life Cycle State In section 2.5 is shown the coding of the access bits of the sector trailers for MAD1 and MAD2 s (i.e. sector 0 and sector 16) and NFC s. This table can be used to translate access bit values into the relative byte 6 to 8 values. Access bits coding of byte 6 to 8 of the sector trailer. Access Bits MAD1 and MAD2 s Access Bits Values C1 0 C2 0 C b i 000b NFC s MAD1 and MAD2 Trailer Bytes Values Access Bits Values NFC Trailer Bytes Values Byte 6 Byte 7 Byte 8 Byte 6 Byte 7 Byte 8 INITIALIZED and READ/WRITE READ-ONLY C1 1 C2 1 C b 000b C1 2 C2 2 C b 000b C1 3 C2 3 C b 011b C1 0 C2 0 C b i 010b C1 1 C2 1 C b 010b C1 2 C2 2 C b 010b C1 3 C2 3 C b 110b 78h 77h 88h 7Fh 07h 88h 07h 8Fh 0Fh 07h 8Fh 0Fh i. This value for the access bits C1 0 C2 0 C3 0 of sector 0 (related to the manufacturer block) is suggested and it may change. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 29 of 36
30 10. ANNEX D: Example of MIFARE Classic 1k in INITIALISED State In this ANNEX an example of MIFARE Classic 1k in INITIALISED state is given (see Fig 9). In this example the sectors from sector 1 to sector 15 are NFC s. The MAD sector contains 15 NFC AID equal to 03E1h. Being in INTIALISED state the MIFARE Classic 1k contains an empty NDEF message TLV. At the end of the empty NDEF Message TLV a Terminator TLV is present. The GPB of the NFC is equal to 40h indicating version number 1.0 and read/write access granted. MAD ( 0) NFC ( 1) NFC ( 2)... NFC ( 15) CRC Infobyte 03E1h 03E1h Key A = A0A1A2A3A4A5h Key A = D3F7D3F7D3F7h Key A = D3F7D3F7D3F7h 03E1h Empty Memory Area Manufacturer Block Access Bits = h Access Bits = 7F0788h Access Bits = 7F0788h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 0300h FEh Empty NDEF Message TLV Terminator TLV Key A = D3F7D3F7D3F7h... Access Bits = 7F0788h GPB = C1h GPB = 40h GPB = 40h GPB = 40h Key B = [SECRET] Key B = [SECRET] Key B = [SECRET] Key B = [SECRET] Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer... Block 0 Block 1 Block 2 Trailer Fig 9. Example of MIFARE Classic 1k in INITIALISED State All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 30 of 36
31 11. ANNEX E: Example of MIFARE Plus with 2 Kbytes in INITIALISED State In this ANNEX an example of MIFARE Plus with 2 Kbytes in INITIALISED state is given (see Fig 11). In this example the sectors from sector 1 to sector 15 and from sector 17 to sector 31 are NFC s. The MAD sectors contain overall 30 NFC AID equal to 03E1h in sector 0 and sector 16. Being in INTIALISED state the MIFARE Plus with 2 Kbytes contains an empty NDEF message TLV. At the end of the empty NDEF Message TLV a Terminator TLV is present. The GPB of the NFC is equal to 40h indicating version number 1.0 and read/write access granted. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 31 of 36
32 MAD ( 0) NFC ( 1)... NFC ( 15) MAD ( 16) NFC ( 17)... NFC ( 31) CRC Infobyte 03E1h 03E1h Key A = A0A1A2A3A4A5h Key A = D3F7D3F7D3F7h 03E1h Empty Memory Area Manufacturer Block Access Bits = h Access Bits = 7F0788h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 0300h FEh Empty NDEF Message TLV Terminator TLV Key A = D3F7D3F7D3F7h CRC RFU 03E1h Key A = A0A1A2A3A4A5h... GPB = C2h GPB = 40h Key B = [SECRET] Key B = [SECRET] 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 0005h 0005h 0005h 0005h 0005h 0005h 0005h 0005h Key A = D3F7D3F7D3F7h Access Bits = 7F0788h Access Bits = h Access Bits = 7F0788h GPB = C2h GPB = 40h Key B = [SECRET] 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h Key A = D3F7D3F7D3F7h... Access Bits = 7F0788h GPB = 40h GPB = 40h Key B = [SECRET] Key B = [SECRET] Key B = [SECRET] Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer... Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer... Block 0... Block 14 Trailer Fig 10. Example of MIFARE Plus with 2 Kbytes in INITIALISED State All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 32 of 36
33 12. ANNEX F: Example of MIFARE Classic 4k or MIFARE Plus with 4 Kbytes in INITIALISED State In this ANNEX an example of MIFARE Classic 4k in INITIALISED state is given (see Fig 11). In this example the sectors from sector 1 to sector 15 and from sector 17 to sector 39 are NFC s. The MAD sectors contain overall 38 NFC AID equal to 03E1h in sector 0 and sector 16. Being in INTIALISED state the MIFARE Classic 4k contains an empty NDEF message TLV. At the end of the empty NDEF Message TLV a Terminator TLV is present. The GPB of the NFC is equal to 40h indicating version number 1.0 and read/write access granted. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 33 of 36
34 MAD ( 0) NFC ( 1)... NFC ( 15) MAD ( 16) NFC ( 17)... NFC ( 39) CRC Infobyte 03E1h 03E1h Key A = A0A1A2A3A4A5h Key A = D3F7D3F7D3F7h 03E1h Empty Memory Area Manufacturer Block Access Bits = h Access Bits = 7F0788h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 0300h FEh Empty NDEF Message TLV Terminator TLV Key A = D3F7D3F7D3F7h CRC RFU 03E1h Key A = A0A1A2A3A4A5h... GPB = C2h GPB = 40h Key B = [SECRET] Key B = [SECRET] 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h Key A = D3F7D3F7D3F7h Access Bits = 7F0788h Access Bits = h Access Bits = 7F0788h GPB = C2h GPB = 40h Key B = [SECRET] 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h 03E1h Key A = D3F7D3F7D3F7h... Access Bits = 7F0788h GPB = 40h GPB = 40h Key B = [SECRET] Key B = [SECRET] Key B = [SECRET] Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer... Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer Block 0 Block 1 Block 2 Trailer... Block 0... Block 14 Trailer Fig 11. Example of MIFARE Classic 4k or MIFARE Plus with 4 Kbytes in INITIALISED State All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 34 of 36
35 13. Legal information 13.1 Definitions Draft The document is a draft version only. The content is still under internal review and subject to formal approval, which may result in modifications or additions. NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information Disclaimers Limited warranty and liability Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors. Right to make changes NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors accepts no liability for inclusion and/or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer s own risk. Applications Applications that are described herein for any of these products are for illustrative purposes only. NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned, as well as for the planned application and use of customer s third party customer(s). Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer s applications or products, or the application or use by customer s third party customer(s). Customer is responsible for doing all necessary testing for the customer s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer s third party customer(s). NXP does not accept any liability in this respect. Export control This document as well as the item(s) described herein may be subject to export control regulations. Export might require a prior authorization from competent authorities. Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only. NXP Semiconductors, its affiliates and their suppliers expressly disclaim all warranties, whether express, implied or statutory, including but not limited to the implied warranties of noninfringement, merchantability and fitness for a particular purpose. The entire risk as to the quality, or arising out of the use or performance, of this product remains with customer. In no event shall NXP Semiconductors, its affiliates or their suppliers be liable to customer for any special, indirect, consequential, punitive or incidental damages (including without limitation damages for loss of business, business interruption, loss of use, loss of data or information, and the like) arising out the use of or inability to use the product, whether or not based on tort (including negligence), strict liability, breach of contract, breach of warranty or any other theory, even if advised of the possibility of such damages. Notwithstanding any damages that customer might incur for any reason whatsoever (including without limitation, all damages referenced above and all direct or general damages), the entire liability of NXP Semiconductors, its affiliates and their suppliers and customer s exclusive remedy for all of the foregoing shall be limited to actual damages incurred by customer based on reasonable reliance up to the greater of the amount actually paid by customer for the product or five dollars (US$5.00). The foregoing limitations, exclusions and disclaimers shall apply to the maximum extent permitted by applicable law, even if any remedy fails of its essential purpose Licenses ICs with DPA Countermeasures functionality Purchase of NXP ICs with NFC technology NXP ICs containing functionality implementing countermeasures to Differential Power Analysis and Simple Power Analysis are produced and sold under applicable license from Cryptography Research, Inc. Purchase of an NXP Semiconductors IC that complies with one of the Near Field Communication (NFC) standards ISO/IEC and ISO/IEC does not convey an implied license under any patent right infringed by implementation of any of those standards Trademarks Notice: All referenced brands, product names, service names and trademarks are property of their respective owners. MIFARE is a trademark of NXP B.V. MIFARE Plus is a trademark of NXP B.V. All information provided in this document is subject to legal disclaimers. NXP B.V All rights reserved. 35 of 36
36 14. Contents 1. Introduction Applicable Documents... 3 Convention and notations Representation of numbers Special Word Usage... 4 Glossary Memory Structure and Management MIFARE Classic 1k Layout... 6 MIFARE Plus X/S with 2 Kbytes Layout MIFARE Classic 4k and MIFARE Plus X/S with 4 Kbytes Layout MIFARE Application Directory MIFARE Classic and MIFARE Plus Access Mechanism (Access Bits) MAD Access NFC Access TLV blocks NDEF Message TLV Proprietary TLV NULL TLV Terminator TLV RF Interface Framing/Transmission Handling Command Set Tag Commands and Responses Set Identification and Selection Operation Authentication Operation Read operation Write operation NDEF Detection and Access NDEF Management Version Treating NDEF Storage Life Cycle INITIALISED State READ/WRITE State READ-ONLY State Command Sequence Description NDEF Detection Procedure NDEF Read Procedure NDEF Write Procedure State Changes Transition from INITIALISED to READ/WRITE ANNEX A: Empty NDEF Message ANNEX B: Example of sector trailer using MAD ANNEX C: Access bits Coding into byte 6 to 8 of the sector trailer ANNEX D: Example of MIFARE Classic 1k in INITIALISED State ANNEX E: Example of MIFARE Plus with 2 Kbytes in INITIALISED State ANNEX F: Example of MIFARE Classic 4k or MIFARE Plus with 4 Kbytes in INITIALISED State Legal information Definitions Disclaimers Licenses Trademarks Contents Please be aware that important notices concerning this document and the product(s) described herein, have been included in the section 'Legal information'. NXP B.V All rights reserved. For more information, please visit: For sales office addresses, please send an to: [email protected] Date of release: 2 October 2012 Document identifier:
AN1305. MIFARE Classic as NFC Type MIFARE Classic Tag. Application note COMPANY PUBLIC. Rev. 1.3 2 October 2012 130513. Document information
MIFARE Classic as NFC Type MIFARE Classic Tag Document information Info Content Keywords NFC Forum, NFC data mapping, MIFARE Classic 1K/4K, MIFARE Classic 1K, MIFARE Classic 4K, MIFARE Plus X/S, NFC Type
AN11004. MIFARE DESFire as Type 4 Tag. Rev. 2.4 22 May 2013 130224. Application note COMPANY PUBLIC. Document information.
Document information Info Content Keywords NFC Forum, NFC Forum data mapping, NFC Forum Type 4 Tag Operation version 2.0, Type 4 Tag version 2.0, MIFARE DESFire EV1, NDEF Tag Application Abstract The NFC
Type 2 Tag Operation Specification. Technical Specification T2TOP 1.1 NFC Forum TM NFCForum-TS-Type-2-Tag_1.1 2011-05-31
Type 2 Tag Operation Specification Technical Specification T2TOP 1.1 NFC Forum TM NFCForum-TS-Type-2-Tag_1.1 2011-05-31 RESTRICTIONS ON USE This specification is copyright 2005-2011 by the NFC Forum, and
NFC Tag Type 5 Specification
Document Type: Software Technical Specification Reference: STS_NFC_0707-001 Version 1.8 (14516) Release Date: Nov. 18, 2011 File Name: STS_NFC_0707-001 NFC Tag Type 5 Specification.pdf Security Level:
Gemalto Mifare 1K Datasheet
Gemalto Mifare 1K Datasheet Contents 1. Overview...3 1.1 User convenience and speed...3 1.2 Security...3 1.3 Anticollision...3 2. Gemalto Mifare Features...4 2.1 Compatibility with norms...4 2.2 Electrical...4
MF1 IC S50. 1. General description. Functional specification. 1.1 Contactless Energy and Data Transfer. 1.2 Anticollision. Energy
Rev. 5.2 15 January 2007 Product data sheet 001052 PUBLIC 1. General description NXP has developed the Mifare to be used in contactess smart cards according to ISO/IEC 14443A. The communication layer (
MIFARE ISO/IEC 14443 PICC
Rev. 3.0 26 June 2009 130830 Application note PUBLIC Document information Info Keywords Abstract Content Activate Card, MIFARE, Select Card This Application te shows the elementary communication for selecting
SL2 ICS53/SL2 ICS54. 1. General description I CODE SLI-S/I CODE SLI-S HC. 1.1 Anticollision. 1.2 Contactless energy and data transfer
Rev. 3.0 14 March 2007 Product data sheet 113730 1. General description The IC is a dedicated chip for smart label applications with the need for a higher security level, larger memory and/or a product
INTEGRATED CIRCUITS I CODE SLI. Smart Label IC SL2 ICS20. Functional Specification. Product Specification Revision 3.1 Public. Philips Semiconductors
INTEGRATED CIRCUITS I CODE SLI Smart Label IC SL2 ICS20 Product Specification Revision 3.1 February July 2005 2001 Public Philips Semiconductors CONTENTS 1 FEATURES...4 1.1 I CODE SLI RF Interface (ISO/IEC
Using RFID Techniques for a Universal Identification Device
Using RFID Techniques for a Universal Identification Device Roman Zharinov, Ulia Trifonova, Alexey Gorin Saint-Petersburg State University of Aerospace Instrumentation Saint-Petersburg, Russia {roman,
Mifare DESFire Specification
Mifare DESFire Specification Version 1.0 29 th September 2009 Revision History Version Date Author Description of Changes 1.0 29/09/09 O McLaughlin Ratified by LASSeO 0.2 28/07/09 O McLaughlin Minor changes
MIFARE CONTACTLESS CARD TECHNOLOLGY AN HID WHITE PAPER
MIFARE CONTACTLESS CARD TECHNOLOLGY AN HID WHITE PAPER GENERAL The MIFARE contactless smart card and MIFARE card reader/writer were developed to handle payment transactions for public transportation systems.
NTAG213/215/216. The mechanical and electrical specifications of NTAG21x are tailored to meet the requirements of inlay and tag manufacturers.
NFC Forum Type 2 Tag compliant IC with 144/504/888 bytes user memory 265332 1. General description NTAG213, NTAG215 and NTAG216 have been developed by NXP Semiconductors as standard NFC tag ICs to be used
Chip Card & Security ICs Mifare NRG SLE 66R35
Chip Card & Security ICs Mifare NRG Intelligent 1 Kbyte Memory Chip with Interface for Contactless Transmission according to the Mifare -System Short Product Information April 2007 Short Product Information
ACR122U USB NFC Reader
ACR122U USB NFC Reader Application Programming Interface V2.02 Subject to change without prior notice Table of Contents 1.0. Introduction... 4 1.1. Features... 4 1.2. USB Interface... 5 2.0. Implementation...
RESEARCH SURVEY ON MIFARE WITH RFID TECHNOLOGY
RESEARCH SURVEY ON MIFARE WITH RFID TECHNOLOGY S.SRINIVASAN Assistant Professor, School of Computing, SASTRA University, Kumbakonam-612001 Tamil Nadu, India [email protected] Dr. C. CHANDRASEKAR
MF0ICU2. 1. General description. MIFARE Ultralight C. 1.1 Contactless energy and data transfer. 1.2 Anticollision. Rev. 3.2 19 May 2009 171432
Rev. 3.2 19 May 2009 171432 1. General description NXP Semiconductors has developed MIFARE - - to be used with Proximity Coupling Devices (PCD) according to ISO/IEC 14443A (see Ref. 1 ISO/IEC ). The communication
ACR122 NFC Contactless Smart Card Reader
Datenblatt / Specifications ACR122 NFC Contactless Smart Card Reader Table of Contents 1. Introduction... 3 1.1. USB Interface... 3 2. Implementation... 4 2.1. Smart Card Reader Interface Overview... 5
Secure Automatic Ticketing System
Secure Automatic Ticketing System MARIUS POPA, CRISTIAN TOMA Department of Computer Science in Economics Academy of Economic Studies Bucharest Romana Square, No. 6, Bucharest ROMANIA [email protected]
ECMA-340. Near Field Communication - Interface and Protocol (NFCIP-1) 3 rd Edition / June 2013. Reference number ECMA-123:2009
ECMA-340 3 rd Edition / June 2013 Near Field Communication - Interface and Protocol (NFCIP-1) Reference number ECMA-123:2009 Ecma International 2009 COPYRIGHT PROTECTED DOCUMENT Ecma International 2013
USING MIFARE CLASSIC TAGS VERSION 100212
USING MIFARE CLASSIC TAGS VERSION 100212 U s i n g M I F A R E C l a s s i c T a g s P a g e 2 TABLE OF CONTENTS 1 Overview... 4 1.1 Required Reading... 4 1.2 Document Scope... 4 1.3 MIFARE Features...
Training. MIFARE4Mobile. Public. MobileKnowledge April 2015
MIFARE4Mobile Public MobileKnowledge April 2015 Agenda Why MIFARE4Mobile? MIFARE in Mobile related technologies MIFARE technology NFC technology MIFARE4Mobile technology High level system architecture
MF3ICD81, MF3ICD41, MF3ICD21
MF3ICD81, MF3ICD41, MF3ICD21 Rev. 3 17 February 2009 Product short data sheet 1. General description MIFARE DESFire EV1 is ideal for service providers wanting to use multi-application smart cards in transport
Security & Chip Card ICs SLE 44R35S / Mifare
Security & Chip Card ICs SLE 44R35S / Mifare Intelligent 1 Kbyte EEPROM with Interface for Contactless Transmission, Security Logic and Anticollision according to the MIFARE -System Short Product Info
NFC. Technical Overview. Release r05
Release r05 Trademarks The Bluetooth word mark and logos are owned by the Bluetooth SIG, Inc. and any use of such marks by Stollmann E+V GmbH is under license. Other trademarks and trade names are those
NTAG213/215/216. The mechanical and electrical specifications of NTAG21x are tailored to meet the requirements of inlay and tag manufacturers.
NFC Forum Type 2 Tag compliant IC with 144/504/888 bytes user memory 265331 1. General description NTAG213, NTAG215 and NTAG216 have been developed by NXP Semiconductors as standard NFC tag ICs to be used
NFC Tags. A technical introduction, applications and products
Rev. 1.3 1 December 2011 White paper Info Author(s) Abstract Content Francesco Gallo An introduction for a business, marketing or technical audience to NFC Forum tags and NFC-enabled tags, describing applicable
AN 073120. mifare Ultralight Features and Hints. Document information. Multiple ticketing, secured data storage, implementation hints
AN 073120 Rev. 2.0 18 December 2006 Application note Document information Info Keywords Abstract Content Multiple ticketing, secured data storage, implementation hints This document presents features and
NFC TagWriter by NXP
Rev. 1.6 27 April 2016 User manual Document information Info Content Keywords User manual Abstract This document describes the features of the TagWriter and steps to setup TagWriter application in smart
Using the RS232 serial evaluation boards on a USB port
Document information Info Content Keywords Serial evaluation Board, PN512,PN532, MFRC663, MFRC522, MFRC523, MFRC52x, MFRD522, MFRD523, MFRD52x MIFARE Contactless Smart Card Reader Reference Design, MIFARE
NXP Secure Smart Card Controllers P5CD016V1D / P5CD021V1D / P5CD041V1D / P5Cx081V1D with DESFire EV1
NXP Secure Smart Card Controllers P5CD016V1D / P5CD021V1D / P5CD041V1D / P5Cx081V1D with DESFire EV1 Rev. 1.1 24 October 2011 BSI-DSZ-CC-0707 Evaluation documentation Document information Info Keywords
Smart Card Application Standard Draft
Smart Card Application Standard Draft Contents 1 SCOPE... 6 1.1 DEFINITIONS / DOCUMENT CONVENTIONS... 6 2 KEY DATA ELEMENTS AND CONCEPTS... 7 2.1 STATIC CARD INFORMATION... 7 2.1.1 Card ID (CdID)... 7
Training MIFARE SDK. Public. MobileKnowledge June 2015
MIFARE SDK Public MobileKnowledge June 2015 Agenda Overview of MIFARE SDK related technologies NFC Technology (Read/Write mode) MIFARE, NTAG and ICODE products NFC in Android MIFARE SDK Introduction to
NTAG213F/216F. 1. General description. NFC Forum Type 2 Tag compliant IC with 144/888 bytes user memory and field detection
NFC Forum Type 2 Tag compliant IC with 144/888 bytes user memory and field detection 262236 1. General description The NTAG213F and NTAG216F are the new NFC forum compliant Type 2 Tag products developed
Exercise 1: Set up the Environment
RFID Lab Gildas Avoine, 2014 Contact: [email protected] Objective: Learn how much it is easy to read contactless tags, possibly simulate/clone. Requirement: Hardware: Reader SCL3711 or ACR122, Reader
SL2S2602. 1. General description ICODE SLIX2. 1.1 Contactless energy and data transfer. 1.2 Anticollision. 1.3 Security and privacy aspects
276340 1. General description The IC is the newest member of NXP s SLIX product family. The chip is fully backwards compatible to SLIX and offers an increased user memory size, along with new outstanding
Application Programming Interface
Application Programming Interface Advanced Card Systems Ltd. Website: www.acs.com.hk Email: [email protected] CONTENTS Introduction 4 Features 4 USB interface 4 Contact and Contactless interface handling
Self-Check-In Hotels Using RFID. Technology
Self-Check-In Hotels Using RFID Technology David H. Miller December 5, 2007 MAE 295C, Professor R. Gadh Contents I. The Need. 2 II. The Solution 2 III. The RFID Tag. 3 IV. The RFID Reader.... 5 V. Middleware.
MIFARE Trademark Usage Guidelines
Rev. 4.5 05.04.2016 Document information Info Keywords Abstract Security Status Content Trademark, Guideline, Rule, MIFARE, MIFARE DESFire, MIFARE Plus, MIFARE Ultralight, MIFARE Classic, MIFARE FleX This
Measurement and Analysis Introduction of ISO7816 (Smart Card)
Measurement and Analysis Introduction of ISO7816 (Smart Card) ISO 7816 is an international standard related to electronic identification cards with contacts, especially smart cards, managed jointly by
SCM Microsystems. Reference Manual version 1.3. SCL010 Multiprotocol contactless stationary reader
SCM Microsystems Reference Manual version 1.3 SCL010 Multiprotocol contactless stationary reader Reference manual SCL010 Multiprotocol Contactless Stationary Reader SCM Microsystems Oskar-Messter-Strasse,
The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual. 14.10.2010 HAW - Arduino 1
The I2C Bus Introduction The I2C-bus is a de facto world standard that is now implemented in over 1000 different ICs manufactured by more than 50 companies. Additionally, the versatile I2C-bus is used
The mechanical and electrical specifications of NTAG21x are tailored to meet the requirements of inlay and tag manufacturers.
NFC Forum Type 2 Tag compliant IC with 48/128 bytes user memory 242330 1. General description NTAG210 and NTAG212 have been developed by NXP Semiconductors as standard NFC tag ICs to be used in mass market
Functional Specification of the OpenPGP application on ISO Smart Card Operating Systems
Functional Specification of the OpenPGP application on ISO Smart Card Operating Systems Version 2.0.1 Author: Achim Pietig 2009 April 22 Author: Achim Pietig Lippstädter Weg 14 32756 Detmold Germany Email:
AN11269. Software Design Guide for POS Development Kit OM5597/RD2663. Rev. 1.0 5 August 2014 242510. Application note COMPANY PUBLIC
Software Design Guide for POS Development Kit OM5597/RD2663 Document information Info Content Keywords RC663, TDA8026, LPC1768, Point of Sale Development Kit design, POS, guide, firmware documentation,
MF3ICDx21_41_81. 1. General description. MIFARE DESFire EV1 contactless multi-application IC. Product short data sheet COMPANY PUBLIC
145632 1. General description MIFARE DESFire EV1 (MF3ICD(H) 21/41/81), a Common Criteria (EAL4+) certified product, is ideal for service providers wanting to use secure multi-application smart cards in
Secure My-d TM and Mifare TM RFID reader system by using a security access module Erich Englbrecht ([email protected]) V0.1draft
Application Report Secure My-d TM and Mifare TM RFID reader system by using a security access module Erich Englbrecht ([email protected]) V0.1draft Embedded RF ABSTRACT This application report describes
SD Specifications Part 1 NFC (Near Field Communication) Interface Simplified Addendum
SD Specifications Part 1 NFC (Near Field Communication) Interface Simplified Addendum Version 1.00 November 8, 2013 Addendum to: SD Specifications Part 1 Physical Layer Simplified Specification Version
1 Overview. T10/03-176 revision 9
Date: October 22, 2003 To: T10 Committee (SCSI) From: George Penokie (IBM/Tivoli) Subject: End-to-End Data Protection 1 Overview Any inconsistencies between this section and the remaining sections in the
NT3H1101/NT3H1201. 1. General description. NTAG I 2 C - Energy harvesting NFC Forum Type 2 Tag with field detection pin and I 2 C interface
NTAG I 2 C - Energy harvesting NFC Forum Type 2 Tag with field detection pin and I 2 C interface 265433 1. General description NTAG I 2 C - The entry to the NFC world: simple and lowest cost. The NTAG
MBP_MSTR: Modbus Plus Master 12
Unity Pro MBP_MSTR 33002527 07/2011 MBP_MSTR: Modbus Plus Master 12 Introduction This chapter describes the MBP_MSTR block. What s in this Chapter? This chapter contains the following topics: Topic Page
SCM Microsystems. Reference Manual version 2.0 SCL01X. Multiprotocol contactless stationary reader
SCM Microsystems Reference Manual version 2.0 SCL01X Multiprotocol contactless stationary reader Reference manual SCL01X Multiprotocol Contactless Stationary Reader SCM Microsystems Oskar-Messter-Strasse,
AN11008 Flash based non-volatile storage
Rev. 1 5 January 2011 Application note Document information Info Content Keywords Flash, EEPROM, Non-Volatile Storage Abstract This application note describes the implementation and use of a library that
AN10927. MIFARE and handling of UIDs. Application note COMPANY PUBLIC. Rev. 3.1 02 October 2013 190731. Document information
Document information Info Content Keywords Single Size UID, Double Size UID, 4 Byte UID, 7 Byte UID, SNR, NUID, FNUID, ONUID Abstract This document shows the use of UIDs in contactless smartcard systems.
Contactless Smart Cards vs. EPC Gen 2 RFID Tags: Frequently Asked Questions. July, 2006. Developed by: Smart Card Alliance Identity Council
Contactless Smart Cards vs. EPC Gen 2 RFID Tags: Frequently Asked Questions July, 2006 Developed by: Smart Card Alliance Identity Council Contactless Smart Cards vs. EPC Gen 2 RFID Tags: Frequently Asked
SD Specifications Part A2 SD Host Controller Simplified Specification
SD Specifications Part A2 SD Host Controller Simplified Specification Version 2.00 February 8, 2007 Technical Committee SD Association Revision History Date Version Changes compared to previous issue April
Appendix B RCS11 Remote Communications
Appendix B RCS11 Remote Communications B.1 Host Computer Remote Communications Control and status messages are conveyed between the RCS11 and the host computer using packetized message blocks in accordance
UM0853 User manual. 1 Introduction. M24LRxx application software user guide
User manual M24LRxx application software user guide 1 Introduction The purpose of this user manual is to teach how to use the M24LRxx tool kit with the M24LRxx_Application_Software. It describes the M24LRxx_Application_Software
3GPP TS 31.103 V5.13.1 (2007-06)
TS 31.103 V5.13.1 (2007-06) Technical Specification 3rd Generation Partnership Project; Technical Specification Group Core Network and Terminals; Characteristics of the IP Multimedia Services Identity
Technical Support Bulletin Nr.18 Modbus Tips
Technical Support Bulletin Nr.18 Modbus Tips Contents! Definitions! Implemented commands! Examples of commands or frames! Calculating the logical area! Reading a signed variable! Example of commands supported
advant advanced contactless smart card system
LA-11-001l-en [08.2012] advant advanced contactless smart card system power Fully scalable fully flexible Key applications & standards 2 1 5 The LEGIC advant product line ideally supports the design and
Programmer s Reference
Programmer s Reference 1 Introduction This manual describes Launchpad s MIDI communication format. This is all the proprietary information you need to be able to write patches and applications that are
Using ISO 15693 Compliant RFID Tags in an Inventory Control System
Using ISO 15693 Compliant RFID Tags in an Inventory Control System University: Louisiana State University, Baton Rouge, Louisiana Course: Undergraduate Capstone Project Student Team Members: Joseph Gates,
Mobile MasterCard PayPass Testing and Approval Guide. December 2009 - Version 2.0
Mobile MasterCard PayPass Testing and Approval Guide December 2009 - Version 2.0 Proprietary Rights Trademarks The information contained in this document is proprietary and confidential to MasterCard International
Technical Article. NFiC: a new, economical way to make a device NFC-compliant. Prashant Dekate
Technical NFiC: a new, economical way to make a device NFC-compliant Prashant Dekate NFiC: a new, economical way to make a device NFC-compliant Prashant Dekate The installed base of devices with Near Field
NAND Flash Memories. Using Linux MTD compatible mode. on ELNEC Universal Device Programmers. (Quick Guide)
NAND Flash Memories Using Linux MTD compatible mode on ELNEC Universal Device Programmers (Quick Guide) Application Note April 2012 an_elnec_linux_mtd, version 1.04 Version 1.04/04.2012 Page 1 of 16 As
Frequently Asked Questions
Frequently Asked Questions NFC for Consumers What is NFC? Near Field Communication (NFC) is a short-range wireless connectivity technology standard designed for intuitive, simple, and safe communication
Obsolete Product(s) - Obsolete Product(s)
Memory tag IC at 13.56 MHz, with 64-bit unique ID and WORM user area, ISO 15693 and ISO 18000-3 Mode 1 compliant Features ISO 15693 compliant ISO 18000-3 Mode 1 compliant 13.56 MHz ±7 khz carrier frequency
NFC Test Challenges for Mobile Device Developers Presented by: Miguel Angel Guijarro [email protected]
NFC Test Challenges for Mobile Device Developers Presented by: Miguel Angel Guijarro [email protected] 1 Outlook About NFC Developing a NFC Device Test Challenges Test Solutions Q&A 2 What
NEAR FIELD COMMUNICATION
64 CHAPTER 4 NEAR FIELD COMMUNICATION 4.1. Introduction Near Field Communication (NFC) is a short-range wireless connectivity technology that enables exchange of data between devices and tags over a distance
Card Issuing Machine for Magnetic, Contact & IC Card
9100-0020 SPECIFICATION M 1 OF 68 2007. 07. 28. Card Issuing Machine for Magnetic, Contact & IC Card KYTronics Corp.,Ltd 3 rd Floor, A-Dong, Twin Town-Bldg, 703-2. Gojan-Dong, AnSan-City, Kyung Ki-Do,
CHAPTER 5 SMART CARD TECHNOLOGY
56 CHAPTER 5 SMART CARD TECHNOLOGY 5.1 INTRODUCTION Today's society is often illustrated as an information society. Technological developments, particularly in the areas of computers and telecommunications
ETSI TS 102 176-2 V1.2.1 (2005-07)
TS 102 176-2 V1.2.1 (2005-07) Technical Specification Electronic Signatures and Infrastructures (ESI); Algorithms and Parameters for Secure Electronic Signatures; Part 2: Secure channel protocols and algorithms
Streaming Lossless Data Compression Algorithm (SLDC)
Standard ECMA-321 June 2001 Standardizing Information and Communication Systems Streaming Lossless Data Compression Algorithm (SLDC) Phone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http://www.ecma.ch
SALTO Systems I SALTO Carriers. innovation in ID technology. MIFARE DESFire
MIFAR SALTO Systems I SALTO Carriers innov innovation in ID technology MIFARE DESFire SALTO Carriers SALTO offers wide range of carriers(fobs, bracalets, contact less bracelets, contacless fobs, contact
Technical Note. SFDP for MT25Q Family. Introduction. TN-25-06: Serial Flash Discovery Parameters for MT25Q Family. Introduction
Technical Note SFDP for MT25Q Family TN-25-06: Serial Flash Discovery Parameters for MT25Q Family Introduction Introduction The serial Flash discoverable parameter (SFDP) standard enables a consistent
M25P05-A. 512-Kbit, serial flash memory, 50 MHz SPI bus interface. Features
512-Kbit, serial flash memory, 50 MHz SPI bus interface Features 512 Kbits of flash memory Page program (up to 256 bytes) in 1.4 ms (typical) Sector erase (256 Kbits) in 0.65 s (typical) Bulk erase (512
The mobile phone as a contactless ticket
The mobile phone as a contactless ticket Magnus Egeberg Master of Science in Communication Technology Submission date: June 2006 Supervisor: Van Thanh Do, ITEM Co-supervisor: Juan Carlos Lopez Calvet,
ENTTEC Pixie Driver API Specification
ENTTEC Pixie Driver API Specification Purpose This document specifies the interface requirements for PC based application programs to use the ENTTEC Pixie Driver board to drive RGB or RGBW type LED strips.
Moven Studio realtime. streaming
Moven Studio realtime network streaming UDP protocol specification Document MV0305P Revision B, 19 December 2007 Xsens Technologies B.V. phone +31 88 XSENS 00 Pantheon 6a +31 88 97367 00 P.O. Box 559 fax
AN10850. LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode
LPC1700 timer triggered memory to GPIO data transfer Rev. 01 16 July 2009 Application note Document information Info Keywords Abstract Content LPC1700, GPIO, DMA, Timer0, Sleep Mode This application note
MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information
Rev. 2.1 17. April 2007 Preliminary Data Sheet Document information Info Keywords Content MFRC522, MFRC523, MFRC52x, MFRD522, MFRD523, Mifare Contactless Smart Card Reader Reference Design, Mifare Reader
Reference Manual for the CLOUD 370x F Contactless Desktop Readers
Reference Manual for the CLOUD 370x F Contactless Desktop Readers For Part #: 905502 CLOUD 3700 F (global version) and 905503 CLOUD 3701 F (Japan-only version) Document Version: 1.0, Last Revised On: 2014-07-22
Specification of the Broadcast Wave Format (BWF)
EBU TECH 3285 Specification of the Broadcast Wave Format (BWF) A format for audio data files in broadcasting Version 2.0 Geneva May 2011 1 * Page intentionally left blank. This document is paginated for
W25Q80, W25Q16, W25Q32 8M-BIT, 16M-BIT AND 32M-BIT SERIAL FLASH MEMORY WITH DUAL AND QUAD SPI
8M-BIT, 16M-BIT AND 32M-BIT SERIAL FLASH MEMORY WITH DUAL AND QUAD SPI - 1 - Preliminary - Revision B Table of Contents 1. GENERAL DESCRIPTION... 5 2. FEATURES... 5 3. PIN CONFIGURATION SOIC 208-MIL...
JCB Terminal Requirements
Version 1.0 April, 2008 2008 JCB International Co., Ltd. All rights reserved. All rights regarding this documentation are reserved by JCB Co., Ltd. ( JCB ). This documentation contains confidential and
Training. NFC in Android. Public. MobileKnowledge October 2015
NFC in Android Public MobileKnowledge October 2015 Index Android mobile Operating System Market share Brief history Programing in Android NFC in Android Communicating my Android phone with NFC Readers
MIFARE DESFire EV1 MF3ICD81
MIFARE DESFire EV1 MF3ICD81 Rev.1.5 10 May 2011 BSI-DSZ-CC-0712 Evaluation Documentation Document information Info Keywords Abstract Content, MF3ICD81 Evaluation of the NXP Secure Smart Card Controller
Hacking Mifare Classic Cards. Márcio Almeida ([email protected])
Hacking Mifare Classic Cards Márcio Almeida ([email protected]) !! DISCLAIMERS!! Disclaimer 1: The content of this presentation results from independent research conducted by me on my own time and of
What standards ISO/CEI 14443 ISO/CEI 15693 EPC class 1 gen 2. RFID standards. ISO14443,ISO15693 and EPCGlobal. Mate SoosINRIA.
ISO14443,ISO15693 and EPCGlobal Mate Soos INRIA May 19, 2008 What standards Overview Background ISO/CEI 14443 Radio interface ISO/CEI 15693 Radio interface EPC class 1 gen 2 Radio Interface Table of Contents
A Secure and Open Solution for Seamless Transit Systems
A Secure and Open Solution for Seamless Transit Systems Today s Proprietary Fare Collection Systems Transit operators must combat growing security threats while identifying new revenue sources and enhancing
Connecting AMD Flash Memory to a System Address Bus
Connecting AMD Memory to a System Address Bus Application Note This document is intended to clarify how memories may be connected to a system address bus and how software should issue device commands to
NXP Secure Smart Card Controllers P5CC008, P5CC012 V1A/ V1A(s)
NXP Secure Smart Card Controllers Document information Info Content Keywords CC, Security Evaluation,, Functional Requirements, Security Functionality, Assurance Level, P5CC008, P5CC012 V1A/ V1A(s) Abstract
Loyalty Systems over Near Field Communication (NFC)
Loyalty Systems over Near Field Communication (NFC) Diogo Simões IST - Technical University of Lisbon Av. Prof. Cavaco Silva Tagus Park 2780-990 Porto Salvo, Portugal [email protected] Abstract.
Hacking the NFC credit cards for fun and debit ;) Renaud Lifchitz BT [email protected] Hackito Ergo Sum 2012 April 12,13,14 Paris, France
Hacking the NFC credit cards for fun and debit ;) Renaud Lifchitz BT [email protected] Hackito Ergo Sum 2012 April 12,13,14 Paris, France Speaker's bio French computer security engineer working at
The information in this document will be common for all X12N implementation guides.
ASC X12N Implementation Guide Common Content The information in this document will be common for all X12N implementation guides. Underlined information will be replaced with publisher-inserted implementation
NFCulT. An easy a nice tool that will make you have fun, or... make profit!
NFCulT An easy a nice tool that will make you have fun, or... make profit Matteo Beccaro ( aka bughardy ) Student at Politecnico di Torino Computer Engineering Security Engineer and researcher at Secure
EMV 96 Integrated Circuit Card Terminal Specification for Payment Systems
EMV 96 Integrated Circuit Card Terminal Specification for Payment Systems Version 3.0 June 30, 1996 1996 Europay International S.A., MasterCard International Incorporated, and Visa International Service
RFID MODULE Mifare Reader / Writer SL025B User Manual Version 1.4 Nov 2012 StrongLink
RFID MODULE Mifare Reader / Writer User Manual Version 1.4 Nov 2012 StrongLink CONTENT 1. MAIN FEATURES... 3 2. PINNING INFORMATION... 4 3. BAUD RATE SETTING... 5 4. COMMUNICATION PROTOCOL... 5 4-1. COMMUNICATION
