Page 12 of 27ACR122U Application Programming iInterfaceVersion 1. 0 January 2008\ACR122 NFC Contactless Smart Card ReaderCard AccessHow to access MIFARE Classic Tags?Typical sequence may be:- Scanning the tags in the field (Polling)- Authentication- Read / Write the memory of the tag- Halt the tag (optional)Step 1) Polling for the MIFARE 1K/4K Tags, 106 kbps<< FF 00 00 00 04 D4 4A 01 00>> 61 0E (a tag is found)<< FF C0 00 00 0E>> D5 4B 01 01 00 02 18 04 F6 8E 2A 99 90 00In which, Number of Tag found = [01]; Target number = 01SENS_RES = 00 02; SEL_RES = 18,Length of the UID = 4; UID = F6 8E 2A 99Operation Finished = 90 00Tip: If no tag is found, the following response will be returned.>> 61 05 (no tag found)<< FF C0 00 00 05>> D5 4B 00 90 00Tip: The tag type can be determined by recognizing the SEL_RES.SEL_RES of some common tag types.00 = MIFARE Ultralight08 = MIFARE 1K09 = MIFARE MINI18 = MIFARE 4K20 = MIFARE DESFIRE28 = JCOP3098 = Gemplus MPCOSStep 2) KEY A Authentication, Block 04, KEY = FF FF FF FF FF FF, UID = F6 8E 2A99<< FF 00 00 00 0F D4 40 01 60 04 FF FF FF FF FF FF F6 8E 2A 99>> 61 05<< FF C0 00 00 05>> D5 41 [00] 90 00Tip: If the authentication failed, the error code [XX] will be returned.[00] = Valid, other = Error. Please refer to Error Codes Table for moredetails.Tip: For KEY B Authentication<< FF 00 00 00 0F D4 40 01 61 04 FF FF FF FF FF FF F6 8E 2A 99Step 3) Read the content of Block 04<< FF 00 00 00 05 D4 40 01 30 04>> 61 15<< FF C0 00 00 15>> D5 41 [00] 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 90 00