How Type 2, Type 4 and Type 5 Capability Containers differ
Before iOS Core NFC or Android’s tag-dispatch stack parses an NDEF record (built in our Free NDEF Generator), the OS checks a mandatory header called the Capability Container (CC). Each NFC Forum tag architecture places and formats that header differently:
- NFC Forum Type 2 (
NTAG213 / 215 / 216, ISO/IEC 14443A): 4-byte OTP header in Page03h(E1 10 [TMS] [Access]), whereTMS × 8declares the NDEF data area in bytes. On factory NTAG213, Page04hstarts with a 5-byte Lock Control TLV (01 03 A0 0C 34), so the NDEF TLV (03h) begins at Page05hByte1. - NFC Forum Type 4 (
NTAG 424 DNA& formattedMIFARE DESFire EV2/EV3, ISO/IEC 14443-4): ISO/IEC 7816-4 application (DF Name D2 76 00 00 85 01 01) containing dedicated CC FileE103h. Instead of an 8-byte multiplier,E103hspecifies APDU chunk limits (MLe/MLc) and a 6-byte NDEF File Control TLV (04 06 E1 04 [Size_MSB] [Size_LSB] [Read] [Write]) pointing to NDEF FileE104h(where a 2-byte big-endianNLENprecedes the message, with no03hTLV wrapper). - NFC Forum Type 5 (
ICODE SLIX2/SLIX, ISO/IEC 15693): 4-byte header in Block00h(E1 [Ver/Acc] [MLEN] [Features]) for memories up to 2,040 bytes, or an 8-byte header across Blocks00h–01h(Byte 2 = 00h, 16-bitMLENin Bytes6–7) above 2,040 bytes, followed by a03hNDEF Message TLV starting right after the CC.
Reference Capability Containers across NXP tag families
| Preset | Type | CC hex | Max NDEF | Notes |
|---|---|---|---|---|
| NTAG213 Factory (E1 10 12 00) | T2T | E1 10 12 00 | 137 B | NXP NTAG213 Page 03h CC (12h × 8 = 144 B) + factory 5-byte Lock Control TLV (01 03 A0 0C 34) → 137 B max NDEF message. |
| NTAG215 Read-Only (E1 10 3E 0F) | T2T | E1 10 3E 0F | 492 B | NTAG215 Page 03h CC with write-access nibble 0Fh (read-only NDEF): 3Eh × 8 = 496 B NDEF area → 492 B max NDEF message. |
| NTAG 424 DNA 32B CC (00 17 20…) | T4T | 00 17 20 01 00 00 FF 04… | 254 B | NT4H2421Gx factory File 01 (E103h): CCLEN 0017h, MLe 0100h, MLc 00FFh, E104h 256 B NDEF TLV + E105h 128 B Proprietary TLV → 254 B max NDEF. |
| DESFire EV3 2 KB Type 4 (AN11004) | T4T | 00 0F 20 01 00 00 FF 04… | 2,046 B | 15-byte ISO E103h CC file inside AID D2760000850101h pointing to a 2,048 B E104h NDEF file (read-only FFh) → 2,046 B max NDEF. |
| ICODE SLIX2 Type 5 (E1 40 27 01) | T5T | E1 40 27 01 | 308 B | Block 00h 4-byte Type 5 CC for active ICODE SLIX2: MLEN = 27h (39 × 8 = 312 B T5T_Area) + MBREAD = 01h → 308 B max NDEF. |
Four Capability Container bugs that cause silent smartphone taps
- Unformatted delivery stock (
00 00 00 00or missingD2760000850101h): Blank MIFARE DESFire cards and uninitialised ISO 15693 tags ship without a CC or NDEF TLV. Specify "NDEF-formatted" or "pre-encoded" on your purchase order if end users will tap with phones immediately. - Bitwise-OR corruption in Type 2 Page
03h: Because Page03his OTP, writing a largerTMSbyte onto a smaller NTAG chip sets extra1bits permanently, making phones read non-existent pages and fail. - Restricted
ReadAccesson Type 4 (80h–FEh): On NTAG 424 DNA (size SUN offsets in our NTAG 424 DNA SDM Calculator) or DESFire Type 4, ifReadAccessinE103his non-zero, iOS and Android background readers refuse to open the URL; keep File02(E104h) free-read (00h) and gate writes or proprietary files with AES keys. - Ordering MIFARE Ultralight or Classic for consumer smartphone taps: MIFARE Classic is not supported by Apple Core NFC NDEF background reading, and MIFARE Ultralight is supplied for dedicated reader and ticketing systems rather than app-free phone taps. Specify NTAG213 / 215 / 216 or NTAG 424 DNA whenever guests tap with their own phones.