Search code examples
androidnfcacr122

How to get RFID tag from ACS122U NFC


I am working on ACS122U NFC which reads tag's RFID. From ACS http://www.acs.com.hk/en/products/3/acr122u-usb-nfc-reader/ I got the development kit which will only connect to the reader and gives the state when a tag is placed on the NFC reader. But I need to get the ID (UID, serial number) of a tag for further implementation. How can I get the ID of a tag?


Solution

  • In order to get UID you have to send an APDu command.

    Please download the datasheet given at link : acr-122u datasheet

    In that, check

    4.1 Get Data

    below this, Get UID APDU format,

    FF CA 00 00 00

    UPDATE :

    Follow the steps:

    1. APDU command : 0xFF, 0xCA, 0x00, 0x00, 0x00
    2. Send APDU using send/transmit command(according to given SDK of the reader)
    3. Get response
    4. convert response(which is in byte or unsigned char) to char
    5. Print reponse