ACR122L – Communication Protocol
Version 1.03
www.acs.com.hk
Page 44 of 57
98 = Gemplus MPCOS
Step 2. KEY A Authentication,
Block
04
,
KEY =
FF
FF FF FF FF FF,
UID = F6 8E 2A 99
.
<< 02 6F 14 00 00 00 00 00 01 00 00 00
FF 00 00 00 0F D4 40
01
60
04
FF
FF FF FF FF FF
F6 8E 2A 99
[Checksum] 03
>> 02 00 00 03
>> 02 80 05 00 00 00 00 01 01 00 00
D5 41 [00] 90 00 [Checksum] 03
Note:
If the authentication failed, the error code [XX] will be returned.
[00] = Valid, other = Error. Please refer to Error Codes Table for more details.
For KEY B Authentication:
<< 02 6F 14 00 00 00 00 00 01 00 00 00
FF 00 00 00 0F D4 40
01
61
04
FF
FF FF FF FF FF
F6 8E 2A 99
[Checksum] 03
Step 3. Read the content of Block
04
.
<< 02 6F 0A 00 00 00 00 01 00 00 00
FF 00 00 00 05 D4 40
01
30
04
[Checksum] 03
>> 02 00 00 03
>> 02 80 05 00 00 00 00 01 01 00 00
D5 41 [00]
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
90 00
[Checksum] 03
In which, Block Data =
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
Step 4. Update the content of Block
04
.
<< 02 6F 1A 00 00 00 00 01 00 00 00
FF 00 00 00 15 D4 40
01
A0
04
01 02 03 04 05 06 07 08 09 0A 0B 0C 0D
0E 0F 10
[Checksum] 03
>> 02 00 00 03
>> 02 80 05 00 00 00 00 01 00 00 00
D5 41 [00] 90 00 [Checksum] 03
Step 5. Halt the tag (optional).
<< 02 6F 08 00 00 00 00 01 00 00 00
FF 00 00 00 03 D4 44
01
[Checksum] 03
>> 02 00 00 03
>> 02 80 05 00 00 00 00 01 01 00 00
D5 45 [00] 90 00 [Checksum] 03