Where can I find the JCOP tutorial?

The " Load" APDU command of my card is a little different from that of the JCOP.

So if I use JCOP to load applets to my card, there will be error.

So I wonder if I can modify the default parameters of APDU command in JCOP.

Or is there a JCOP tutorial ?

I can't find help in Eclipse help content. It always tells me :

The topic that you have requested is not available. The link may be wrong, or you may not have the corresponding product feature installed. This online help only includes documentation for features that are installed.

[595 byte] By [Bobby_SHa] at [2007-11-27 6:05:39]
# 1
Thanks!
Bobby_SHa at 2007-7-12 16:52:03 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

- Eclipse: Help --> Help Contents --> JCOP Tools User Guide

- <Eclipse directory>/plugins/com.ibm.bluez.jcop.eclipse_<x.x.x>/doc.zip

What do you mean by

The " Load" APDU command of my card is a little different from that of the JCOP. ? Is your card GP compliant?

lexdabeara at 2007-7-12 16:52:03 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

Thanks for your reply!Let me explain the difference.

The default Load command in JCOP shell is : 80 E0 P1 P2 Lc Data 00,

Here Lc is set to FF by default,so the length of whole Load command must exceeds FF.

While in my card reference , Load command is : 80 E1 P1 P2 Lc Data 01. And it is said that the length of APDU command should not exceed FF.

So if I load applets onto my card by JCOP, there will be 2 errors:

1.invalid length ;

2.last byte of the command should be 01 but not 00.

Bobby_SHa at 2007-7-12 16:52:03 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
I mean if I could change the parameter Lc and the last byte of the APDU command, so that the JCOP will be compliant with my card(GemCombi Xprresso R4).
Bobby_SHa at 2007-7-12 16:52:03 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5

The LOAD command instruction is 0xE8 and not 0xE0/0xE1.

Lc is one byte, so how can you exceed FF?

Optionally the LOAD response can include a receipt (delegated management). If your card mandates a response length of 1 byte (Le=01) it means that no receipt is expected --> receipt length 00. JCOPs LOAD command has Le=0x00 set by default --> response length undefined. This is in accordance with Java Card API, which follows the ISO 7816-4 APDU structure.

Let's look at the help of the JCOP tools upload command:usage: upload [-p|--progress][-c|--components][-r|--random][-l|--package package-name][-s|--sd SD-AID][-m|--params parameters][-b|--block_length length][-a|--auto][-d|--load-debug] CAP-file

...

-c|--components

Load CAP-file component wise.

-r|--random

Load with random APDU length.

...

-b|--block_length length

Max. block (APDU) length sent to the card during package upload.

length Max. block (APDU) length.

So you can set the block length --> Lc as you wish.

Message was edited by:

lexdabear

lexdabeara at 2007-7-12 16:52:04 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 6
Hi,lexdabear, you are so enthusiastic, thanks very much!I got it .
Bobby_SHa at 2007-7-12 16:52:04 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 7
Hi, we have a different issue. I have emailed scard@de.ibm.com 2 weeks ago for information on how to get the JCOP development package. We did it after looking for it on the IBM web site like crazy. So far we have no answer. How do we get in touch to obtain JCOP? thanks
DanielEmbeddedbra at 2007-7-12 16:52:04 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 8
http://download.boulder.ibm.com/ibmdl/pub/software/dw/jcop/tools.zipTry this link, and after you get JCOP you need to ask for activation code from IBM.Good luck!
Bobby_SHa at 2007-7-12 16:52:04 > top of Java-index,Java Mobility Forums,Consumer and Commerce...