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.

Request data without sending data

Communication

Moderator: UNKNwYSHSA

YoHidden
Posts: 1
Joined: Wed Apr 15, 2020 10:56 am
Points :54
Contact:

Request data without sending data

Post by YoHidden » Sat May 09, 2020 3:33 pm

Hi there,

I'm trying a simple APDU command to retrieve some data information from my Applet in a smart card based on the SLE78. Since it is simply a request with no data field needed, the LC field should not be present (as ISO7816-4). But since data is expected in the response, the LE should be set to the max length expected. So, I'm sending the APDU sequence...

CLA=80 INS=B0 P1=00 P2=00 LC=00 LE=FF

I know this is incorrect since the LC should be absent (but the presence of LE made me add LC to avoid LE being taken as LC). In fact, I'm getting the response for wrong length: 67 00.

The only way for the command to succeed is to add a dummy 1 byte data field and, therefore, LC becomes 1.

Is this dummy 1 byte data the right way to proceed in this case or is there any other proper way to send this APDU ?

Thanks.

Who is online

Users browsing this forum: No registered users and 9 guests

JavaCard OS : Disclaimer