"How can I find how much memory of JCOP card is free ?"

Hi every one,I use JCOP smart card and I would like to know how much memory is free ,is there any command to display free or used memory?if any one knows the answer of my question please inform me.yours sincerely,Orchid.
[248 byte] By [NewOrchida] at [2007-11-27 0:26:00]
# 1
One way to find out how much memory is available is through the simulator, debug components enabled --> CAP info view. The simulation is pretty close to the real NXP cards. On real cards you could load an applet which allocates memory. If you receive an error code, half the size
lexdabeara at 2007-7-11 22:24:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
You mean free memory (EEPROM) on the card? I know there is an applet on the cards by default called "eefree" unfortunately I have never seen any specifications on using it. Presumably it provides some facilities for querying available memory. Anybody know more about "eefree" ?
waterpca at 2007-7-11 22:24:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

When using SmartCafe Java cards, the information about the free memory is available through the card manager. Once authenticated, the user should send GET DATA apdu with the appropriate combination of P1 and P2 parameters and card responds with the amount of memory left.

Best regards,

Aleksandar

fara0na at 2007-7-11 22:24:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4

In JC 2.2.1 you should use the JCSystem.getAvailableMemory(byte memoryType) method. The response is a short --> info about a max. of 32k free memory.

eefree applet is a relict from the JC 2.1 specification. There was no API defined. If you still want to use it, just select this applet or send any APDU to the applet, and it will return a short (bytes of free memory). Be aware that the applet will allocate of up to 32k bytes. Only way to free the memory is to delete the eefree instance.

lexdabeara at 2007-7-11 22:24:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5
Hi every one,Thanks a lot for all answers,There were very useful for me,your sincerely ,Orchid
NewOrchida at 2007-7-11 22:24:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...