B4J Question B4J and ACR122U

udg

Expert
Licensed User
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:
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);
Can you share any past experience or old code that could help? TIA.
 

udg

Expert
Licensed User
Thank you, Alain.
I read it is for Mifare 1K tags only and the tags they gave me are DESFire EV1 type 4. Eventually it could be of some inspiration; afterall, if I find a way to communicate on an USB port it will be a matter of sending the right codes to elicit the needed info.

Another point is that eventually they will buy an Android tablet with NFC functionality so everything will move to that camp (where libs are already available).
 

udg

Expert
Licensed User
Thank you Manfred, I'll have a look at it.
Yesterday they were talking about a Nexus 5X with Android 7 to upgrade to Oreo as an interim solution.
Let's see how it all evolves at next week start..eheh

Have a nice weekend
 
Top