Additional Terminal Capabilities
What it is
Where it appears
How tag 9F40 is encoded
EMV data objects are BER-TLV: tag, then length, then value. 9F40 is a 2-byte, context-specific class, primitive tag (tag number 64), so its value is plain data rather than nested TLV objects.
9F10011111Bits 8–7 = 10: context-specific class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.4001000000Bit 8 = 0: last tag byte. Bits 7–1 = 64.Length
The value is always 5 bytes, so the length field is 05. A complete 9F40 object starts 9F 40 05 and is 8 bytes long in all.
Value format b
Format b is binary: the bits mean what this tag defines, with no padding or character conversion.
Who supplies it
The terminal supplies this value. A card that needs it lists the tag in a data object list (PDOL, CDOL1, CDOL2 or DDOL), and the terminal places the value, at the length the card asked for, in the matching command. In a DOL, 9F40 appears as 9F 40 05: the tag followed by the length the card wants.
Specification reference
Defined in: EMV 4.x Book 4 (Cardholder, Attendant & Acquirer Interface), Annex A
Bit-level definitions below follow: EMV 4.4 Book 4, Annex A3, Tables 28–32 — Additional Terminal Capabilities (5 bytes)
Bit & value breakdown
b8 = 0x80b7 = 0x40b6 = 0x20b5 = 0x10b4 = 0x08b3 = 0x04b2 = 0x02b1 = 0x01b8 = 0x80b7–b1b8 = 0x80b7 = 0x40b6 = 0x20b5 = 0x10b4–b1b8 = 0x80b7 = 0x40b6 = 0x20b5 = 0x10b4–b3b2 = 0x02b1 = 0x01b8 = 0x80b7 = 0x40b6 = 0x20b5 = 0x10b4 = 0x08b3 = 0x04b2 = 0x02b1 = 0x01Example values
F000F0A001Cash, goods, services and cashback; numeric, alphabetic, command and function keys; attendant print and display; code table 1