Hi all,
it's my understanding the todate there's no library or code available to interact with an ACR122U NFC reader using B4J (correct me if I'm wrong).
What I need is just the reading of a very basic ID. Partner's IT staff gave me the following code snippet:
Can you share any past experience or old code that could help? TIA.
it's my understanding the todate there's no library or code available to interact with an ACR122U NFC reader using B4J (correct me if I'm wrong).
What I need is just the reading of a very basic ID. Partner's IT staff gave me the following code snippet:
B4X:
byte[] GET_APPLICATION_ID = new byte[] { 0x90, 0x5A, 0x00, 0x00, 0x03, 0xC0, 0x8E, 0xF4, 0x00 };
byte[] GET_SID = new byte[] { 0x90, 0xBD, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00 };
var appid = TransmitRawAPDU(reader, GET_APPLICATION_ID);
var sid = TransmitRawAPDU(reader, GET_SID);
return Encoding.ASCII.GetString(sid.Data).Substring(7, 6);