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.

convert my CAP file into sequence of APDU

JavaCard Applet Development Related Questions and Answers.
Jpita
Posts: 6
Joined: Thu Apr 21, 2016 3:37 am
Points :58
Contact:

convert my CAP file into sequence of APDU

Post by Jpita » Tue May 03, 2016 2:48 am

Hi all,

I want to know how to convert my CAP file into sequence of APDU. Then I can use these APDU to download my applet into my smart card.
Is there anyone that know this? Many thanks..

Cheers,
Jpita

Crawford
Posts: 39
Joined: Thu Sep 17, 2015 11:50 pm
Points :246
Contact:

Re: convert my CAP file into sequence of APDU

Post by Crawford » Tue May 03, 2016 5:58 am

You can refer to JCVM and GP specification. The JCVM spec defines the order in which the components of the CAP file should be put together and then it is multiple LOAD APDU's to send the data to the card.

User avatar
lostsiwonlw
Posts: 55
Joined: Fri Jul 31, 2015 9:09 pm
Points :358
Contact:

Re: convert my CAP file into sequence of APDU

Post by lostsiwonlw » Tue May 03, 2016 8:23 am

Check GP pecification "9. APDU Command Reference"
Searching for meaning...

Jpita
Posts: 6
Joined: Thu Apr 21, 2016 3:37 am
Points :58
Contact:

Re: convert my CAP file into sequence of APDU

Post by Jpita » Tue May 03, 2016 8:30 am

Thanks for your help!

The section you mentioned only defines the structure of the Load File, but not the way of converting .cap file into a sequence of APDUs data block.

Crawford
Posts: 39
Joined: Thu Sep 17, 2015 11:50 pm
Points :246
Contact:

Re: convert my CAP file into sequence of APDU

Post by Crawford » Tue May 03, 2016 8:37 am

Jpita wrote:Thanks for your help!

The section you mentioned only defines the structure of the Load File, but not the way of converting .cap file into a sequence of APDUs data block.


Use the order for creating a binary blob of data from the cap file and then use the GP LOAD command.

A CAP file is a JAR file with the actual CAP file components. You extract them from the JAR and concatenate the raw data into one large blob. The components are joined in that order.

Jpita
Posts: 6
Joined: Thu Apr 21, 2016 3:37 am
Points :58
Contact:

Re: convert my CAP file into sequence of APDU

Post by Jpita » Tue May 03, 2016 8:51 am

Thanks for all your help! I will have a try!

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 8 guests

JavaCard OS : Disclaimer