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 know the real length of data

JavaCard Applet Development Related Questions and Answers.
NeinET
Posts: 8
Joined: Wed Dec 21, 2016 11:48 pm
Points :102
Contact:

How to know the real length of data

Post by NeinET » Thu Jun 15, 2017 11:48 pm

I am a little confused about Lc and Le. If I send a case 3 APDU command and set Lc to 8bytes, but include no data after Lc, the card will update the file with 00000000. How can I check if there is any data after Lc in the received APDU? I just want to know the real length of data. Much appreciated for any help.

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

Re: How to know the real length of data

Post by Thelogan » Fri Jun 16, 2017 3:20 am

If you want to check the real values, you could combine the Lc value with the value returned from apdu.setIncomingAndReceive(). This will indicate how many bytes will be read into the APDU buffer.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 55 guests

JavaCard OS : Disclaimer