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 rest amount of memory in javacard

Communication

Moderator: UNKNwYSHSA

User avatar
vermont
Posts: 13
Joined: Tue May 26, 2015 10:18 pm
Points :6
Contact:

How to know the rest amount of memory in javacard

Post by vermont » Wed Aug 19, 2015 8:00 am

As the subject mentioned, how do I know the rest amount of memory that is available to my applet?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: How to know the rest amount of memory in javacard

Post by UNKNwYSHSA » Wed Aug 19, 2015 10:25 am

1 Ask the card provider;
2 Write an applet, use the api: JCSystem.getAvailableMemory(), this function can used to get size of RAM(COR or COD) and NVM; You can use the function as said in Javacard API specification; Notice: You can get an accurate value if there is only your applet in the card, and you call JCSystem.requestObjectDeletion() in a APDU before this APDU;
sense and simplicity

User avatar
vermont
Posts: 13
Joined: Tue May 26, 2015 10:18 pm
Points :6
Contact:

Re: How to know the rest amount of memory in javacard

Post by vermont » Wed Aug 19, 2015 9:17 pm

UNKNwYSHSA wrote:1 Ask the card provider;
2 Write an applet, use the api: JCSystem.getAvailableMemory(), this function can used to get size of RAM(COR or COD) and NVM; You can use the function as said in Javacard API specification; Notice: You can get an accurate value if there is only your applet in the card, and you call JCSystem.requestObjectDeletion() in a APDU before this APDU;


Hi,UNKNwYSHSA
Thank you for answer.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 16 guests

JavaCard OS : Disclaimer