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.

Directory Tree of Java Card Filesystem

JavaCard Applet Development Related Questions and Answers.
marclo
Posts: 20
Joined: Thu Nov 19, 2015 5:41 am
Points :127
Contact:

Directory Tree of Java Card Filesystem

Post by marclo » Sun Jul 09, 2017 11:01 pm

I need to build Directory Tree of Java Card Filesystem using APDU commands.
I found info how to select DF or EF, read or write info, but I can not find how to obtain list of DFs and EFs in DF.
Could anybody tell me how to list directories and files in a directory on java card over APDU commands.
Much appreciated.

wousim
Posts: 14
Joined: Tue Feb 16, 2016 10:12 pm
Points :109
Contact:

Re: Directory Tree of Java Card Filesystem

Post by wousim » Mon Jul 10, 2017 2:37 am

There is no standard command for listing all EFs and DFs on the java cards.
Most tools have a pre saved list of the file structure and select them one by one on the card. If the result is OK (9Fxx) then the specified file exists on the card.

ordane
Posts: 11
Joined: Thu Dec 17, 2015 11:02 pm
Points :57
Contact:

Re: Directory Tree of Java Card Filesystem

Post by ordane » Mon Jul 10, 2017 4:33 am

I guess it includes calls to SELECT FILE using the proper P1 and P2 to implement "select next file", but now I don't have a concrete solution.

popmun09
Posts: 36
Joined: Tue Feb 16, 2016 9:49 pm
Points :230
Contact:

Re: Directory Tree of Java Card Filesystem

Post by popmun09 » Mon Jul 10, 2017 5:48 am

You may need to know these functions (i.e. DIRECTORY, LIST_OBJECTS), which are OS-depended. ISO 7816 does not describe them.
It means that you should read Card OS specification to make done this task.

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2324
Contact:

Re: Directory Tree of Java Card Filesystem

Post by tay00000 » Mon Jul 10, 2017 10:41 am

Here are some quotes from the JavaCard Applet Developer Guide written by Sun:

Support for ISO 7816-4 files is provided by the javacardx.framework package. This is an extension package to the core javacard.* classes which may not be implemented on all Java Card platforms.


In essence, you have to implement it in the JCOS or applet level.

You can read the guide from the link below. Scroll to page 43 in the PDF.

Link: http://ftp.icm.edu.pl/packages/javasoft ... sGuide.pdf

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 47 guests

JavaCard OS : Disclaimer