PICC Interface Description. Advanced Card Systems V5MACR1222U, ACR1222 U
Advanced Card Systems V5MACR1222U is a versatile and feature-rich device that seamlessly integrates contact and contactless smart card technologies. With its dual-interface capabilities, it supports a wide range of applications, including secure authentication, financial transactions, loyalty programs, and access control systems.
Iklan
Iklan
PICC INTERFACE DESCRIPTION
1.
ATR Generation
If the reader detects a PICC, an ATR will be sent to the PCSC driver for identifying the PICC.
1.1 ATR format for ISO 14443 Part 3 PICCs.
Designation Description Byte
0
Value
(Hex)
3B Initial Header
1
2
3
4
To
3+N
8N
80
01
80
4F
0C
RID
T0
TD1
TD2
T1
Tk
Higher nibble 8 means: no TA1, TB1, TC1 only TD1 is following.
Lower nibble N is the number of historical bytes (HistByte 0 to HistByte N-1)
Higher nibble 8 means: no TA2, TB2, TC2 only TD2 is following.
Lower nibble 0 means T = 0
Higher nibble 0 means no TA3, TB3, TC3,
TD3 following.
Lower nibble 1 means T = 1
Category indicator byte, 80 means A status indicator may be present in an optional
COMPACT-TLV data object
Application identifier Presence Indicator
Length
Registered Application Provider Identifier
(RID) # A0 00 00 03 06
4+N
SS
C0 .. C1
00 00 00 00
UU
RFU
TCK
Byte for standard
Bytes for card name
RFU # 00 00 00 00
Exclusive-oring of all the bytes T0 to Tk e.g. ATR for MIFare 1K = {3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 01 00 00 00 00 6A}
Length (YY) = 0x0C
RID = {A0 00 00 03 06} (PC/SC Workgroup)
Standard (SS) = 03 (ISO14443A, Part 3)
Card Name (C0 .. C1) = {00 01} (MIFare 1K)
Card Name (C0 .. C1)
00 01: Mifare 1K
00 02: Mifare 4K
00 03: Mifare Ultralight
00 26: Mifare Mini
F0 04: Topaz and Jewel
F0 11: FeliCa 212K
F0 12: FeliCa 424K
FF 28: JCOP 30
FF [SAK]: undefined tags
Advanced Card Systems Ltd. Page 25 of 46
1.2 ATR format for ISO 14443 Part 4 PICCs.
Designation Byte
0
Value
(Hex)
3B Initial Header
Description
1
2
3
8N
80
01
T0
TD1
TD2
Higher nibble 8 means: no TA1, TB1, TC1 only TD1 is following.
Lower nibble N is the number of historical bytes (HistByte 0 to HistByte N-1)
Higher nibble 8 means: no TA2, TB2, TC2 only TD2 is following.
Lower nibble 0 means T = 0
Higher nibble 0 means no TA3, TB3, TC3,
TD3 following.
Lower nibble 1 means T = 1
4 to
3 + N
4+N
XX
XX
XX
XX
UU
T1
Tk
TCK
Historical Bytes:
ISO14443A:
The historical bytes from ATS response. Refer to the ISO14443-4 specification.
ISO14443B:
The higher layer response from the ATTRIB response (ATQB). Refer to the ISO14443-3 specification.
Exclusive-oring of all the bytes T0 to Tk
E.g 1. ATR for DESFire = { 3B 81 80 01 80 80 } // 6 bytes of ATR
Hint: Use the APDU “FF CA 01 00 00” to distinguish the ISO14443A-4 and ISO14443B-4 PICCs, and retrieve the full ATS if available. ISO14443A-3 or ISO14443B-3/4 PICCs do have ATS returned.
APDU Command = FF CA 01 00 00
APDU Response = 06 75 77 81 02 80 90 00
ATS = { 06 75 77 81 02 80 }
E.g 2. ATR for ST19XRC8E = { 3B 8C 80 01 50 12 23 45 56 12 53 54 4E 33 81 C3 55}
// 12 bytes of ATQB, No CRC-B
ATQB = { 50 12 23 45 56 12 53 54 4E 33 81 C3 }
Advanced Card Systems Ltd. `Page 26 of 46
Unduh
Iklan