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 DEAL WITH THE COMMAND DATA ??

Applets Development Guide

Moderator: product

OSSAMA
Posts: 6
Joined: Sun Mar 19, 2017 8:54 am
Points :242
Contact:

HOW TO DEAL WITH THE COMMAND DATA ??

Post by OSSAMA » Wed Aug 15, 2018 7:33 am

Dear All,
Thank you in advance as I am new to the Java card technology.
I am trying to check the first byte in the command data as shown in the example code.
I have declared the apduBuffer as
byte[] apduBuffer = apdu.getBuffer();
my problem is the code always process the else and never ever do the if. regardless of whatever value in the command data.
How can I deal with the command data ?
if (apduBuffer [0] > 30)
{
xx (apdu,LEN);
break;
}
else
ISOException.throwIt (SW_APPLET_SELECT_FAILED);
Best Regards

kuafu
Posts: 317
Joined: Thu Jun 25, 2015 2:09 am
Points :4551
Contact:

Re: HOW TO DEAL WITH THE COMMAND DATA ??

Post by kuafu » Thu Aug 16, 2018 3:14 am

Do your select the applet first.
Look , mine is fine .
You do not have the required permissions to view the files attached to this post. Please login first.
well

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 18 guests

JavaCard OS : Disclaimer