0

I am using byte[] command = {(byte)0xE0, 0x00, 0x00, 0x40, 0x03, 0x03, 0x00 , 0x00} command to make ACR1252U emulate a Felica NFC Tag, according to the documentation page 71 some default data is written to the emulated tag.

I try to read this default data using byte[] aid1 = {(byte)0xE0, 0x00, 0x00, 0x60, 0x04, 0x00, 0x03 , 0x00 , 0x12}; command and I get a respose [B@27bc2616 which I print using DatatypeConverter.printHexBinary(response) to give E1000000121001010009000000000001000000001C0000 which matches the expected output as per the documentation.

I only have one issue, how do I get the data from this response E1000000121001010009000000000001000000001C0000 and print it in a user friendly manner in java?

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
Sam Ngugi
  • 1,103
  • 9
  • 13
  • Define "user friendly". – JB Nizet Apr 30 '17 at 16:11
  • @JBNizet Lets assume that the default message written to the emulated tag is "Hello World". I want to get this (default message) back("Hello World") by processing the E1000000121001010009000000000001000000001C0000 response. I hope this is clearer – Sam Ngugi Apr 30 '17 at 16:52
  • OK. What bytes does your device sends when it sends "Hello World". Is it the string in ASCII? In UTF8? Something else? You need to know what these bytes represent in order to be able to transform them to a meaningful string. – JB Nizet Apr 30 '17 at 17:13
  • I do not really know, the documentation just states that by making ACR125U emulate a felica tag, there is some default data written to it which the doc represents as A={10h 01h 01h 00h, 09h , 00h ,00h, 00h, 00h,00h,01h,00h,00h,00h,00h,1ch}. Looking keenly at this response E1000000121001010009000000000001000000001C0000 you will notice that A is its subset. – Sam Ngugi Apr 30 '17 at 18:34

0 Answers0