Excited to tell you that our welfare activity has been upgraded - Paying only $5.00 + Freight to get JCOP J3H145 card and A40CR card.
Please check this post for more details.

How to send a script file in JCIDE

JCIDE is an Integrated Development Environment designed specifically for the Java Card programming language.

Moderators: product, kuafu

User avatar
product
Posts: 94
Joined: Wed May 20, 2015 2:04 am
Points :418
Contact:

How to send a script file in JCIDE

Post by product » Wed Sep 09, 2015 3:35 am

When you debug your applet in JCIDE, you can send multi-APDUs together to your applet by a script file.

1. Write your own script file
Every APDU command is ended up with semicolon. The format of script command is as follows.

Code: Select all

00A404000611223344556600;
0001223300;
0001050602112200;
00025566010100;


2. Send the script file to your applet
Click "Debug" button, then send your script file by "/script" command in Debug Shell, as shown in the below GIF images.
For example,

Code: Select all

/script c:/workspace/test.scr



Note: You can get the the applet demo and the script file from the attachment.
You do not have the required permissions to view the files attached to this post. Please login first.

whitexiao
Posts: 16
Joined: Wed Sep 09, 2015 8:45 am
Points :80
Contact:

Re: How to send a script file in JCIDE

Post by whitexiao » Tue Dec 01, 2015 1:36 am

The JCIDE supported script format is APDU+ ";"?

User avatar
rainly
Posts: 11
Joined: Tue Jun 09, 2015 4:38 am
Points :18
Contact:

Re: How to send a script file in JCIDE

Post by rainly » Sat Dec 05, 2015 4:09 am

whitexiao wrote:The JCIDE supported script format is APDU+ ";"?



I have already tried, the script format is APDU+ ";" , and the JCIDE and ApduTool supported script format is the same.

jcoslo
Posts: 1
Joined: Mon Jan 11, 2016 11:49 pm
Points :14
Contact:

Re: How to send a script file in JCIDE

Post by jcoslo » Tue Jan 12, 2016 5:03 am

Some Error, I'm try....

Connect CL port failed .Please disconnect JAVACOS Virtual Contact Reader 0 first

Connect CL port failed .Please disconnect JAVACOS Virtual Contact Reader 0 first

.... ... ...

<< 00 00 Jcvm is not connected

Disconnect CB port
You can send apdu with PC/SC interface now

User avatar
product
Posts: 94
Joined: Wed May 20, 2015 2:04 am
Points :418
Contact:

Re: How to send a script file in JCIDE

Post by product » Tue Jan 12, 2016 5:23 am

jcoslo wrote:Some Error, I'm try....

Connect CL port failed .Please disconnect JAVACOS Virtual Contact Reader 0 first

Connect CL port failed .Please disconnect JAVACOS Virtual Contact Reader 0 first

.... ... ...

<< 00 00 Jcvm is not connected

Disconnect CB port
You can send apdu with PC/SC interface now


Hi,

That is just because JCIDE doesn't support T=1 protocol at present. We will add this function in the next version. Stay tuned!

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 0 guests

JavaCard OS : Disclaimer