Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

How to decode the response data

JavaCard Applet Development Related Questions and Answers.
mukundis
Posts: 15
Joined: Wed Sep 14, 2016 4:08 am
Points :196
Contact:

How to decode the response data

Post by mukundis » Wed May 24, 2017 10:55 pm

I tried to get data from my java card and got the response data below:

61 39 4f 0b a0 00 00 03 08 00 00 10 00 01 00 79 07 4f 05 a0 00 00 03 08 50 0e 49 44 2d 4f 6e 65 20 50 49 56 20 42 49 4f 5f 50 10 77 77 77 2e 6f 62 65 72 74 68 75 72 2e 63 6f 6d 7f 66 08 02 02 80 00 02 02 80 00 90 00

I know the last two bytes are status word. But the other data is so hard for me to understand. Could anybody help me to decode this to the readable data? Thanks for any help.

chico0609
Posts: 59
Joined: Mon Sep 14, 2015 5:05 am
Points :416
Contact:

Re: How to decode the response data

Post by chico0609 » Thu May 25, 2017 5:57 am

It seems that it is wrong TLV-coded data.

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: How to decode the response data

Post by Tarantino » Thu May 25, 2017 6:10 am

This is actually two different concatenated TLV objects.

The first one is:

61 39 - tag 61 - application template
4f 0b - tag 4f application identifier
a0 00 00 03 08 00 00 10 00 01 00 -- aid of the application
79 07 -- tag 79 - tag identification scheme.
4f 05
a0 00 00 03 08
50 0e -- application label
49 44 2d 4f 6e 65 20 50 49 56 20 42 49 4f 5f
50 10 -- another application label
77:77:77:2e:6f:62:65:72:74:68:75:72:2e:63:6f:6d

The second one is less clear

7f 66 08 -- tag 7f66, length 8. constructed, (I don't know what tag 7f66 is).
02 02 - integer, length 2
80 00 - 32768 (may be negative, depends on who is interpreting this)
02 02 - integer, length 2
80 00 - 32768 (ditto)
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 54 guests

JavaCard OS : Disclaimer