ACR122L – Communication Protocol
Version 1.03
www.acs.com.hk
Page 50 of 57
Step 2. 3DES Authentication.
HOST -> 02 6F 09 00 00 00 00 01 00 00 00
HOST -> FF 00 00 00 04 D4 42 1A 00 10
03
RDR -> 02 00 00 03 (Waiting the Tag)
RDR -> 02 80 0E 00 00 00 00 01 01 00 00
RDR -> D5 43 [00]
04 77 64 89 99 74 24 67
90 00
[Checksum] 03
In which,
3DES challenge from the card = [04 77 64 89 99 74 24 67];
Operation Finished = 90 00
HOST -> 02 6F 18 00 00 00 00 01 00 00 00
HOST -> FF 00 00 00 13 D4 42 AF
88 68 45 07 65 86 99 67 00 53 77 56 98 65 49 67
[Checksum]
03
In which,
3DES reply to the card = [88 68 45 07 65 86 99 67 00 53 77 56 98 65 49 67];
RDR -> 02 00 00 03 (Waiting the Tag)
RDR -> 02 80 0E 00 00 00 00 01 01 00 00
RDR -> D5 43 [00] 00
06 78 53 80 68 89 61 24
90 00
[Checksum] 03
In which,
3DES reply from the card = [06 78 53 80 68 89 61 24];
Operation Finished = 90 00
Note:
The 3DES reply from the card should be checked to make sure the card is legitimate.
Step 3. Read the content of Page
04
.
HOST -> 02 6F 09 00 00 00 00 01 00 00 00
HOST -> FF 00 00 00 05 D4 40
01
30
04
[Checksum] 03
RDR -> 02 00 00 03 (Waiting the Tag)
RDR -> 02 80 15 00 00 00 00 01 01 00 00
RDR -> 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
Note:
4 consecutive Pages will be retrieved. Pages 4, 5, 6 and 7 will be retrieved. Each data page
consists of 4 bytes.
Step 4. Update the content of Page
04
with
the data “AA BB CC DD”
.
HOST -> 02 6F 0E 00 00 00 00 01 00 00 00
HOST -> FF 00 00 00 09 D4 40
01
A2
04
AA BB CC DD
[Checksum] 03
RDR -> 02 00 00 03 (Waiting the Tag)
RDR -> 02 80 05 00 00 00 00 01 01 00 00
RDR -> D5 41 [00] 90 00 [Checksum] 03
OR