eclipse - APDUtool create "Applet" fails -
i writing java card software jcop, nowadays trying out other development structures little more insight. using simple helloworld.java have started 1 on jcop - http://umer555.wordpress.com/2012/05/17/java-card-hello-world-applet/
now tried run on netbeans java card 3.0 (classic, guess should work 2.2.2) , works charm out of box.
next step me trying eclipse , jcde. now, creating cap file first 3 lines (which respond 9000 in apdutool):
powerup; // select installer applet 0x00 0xa4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x08 0x01 0x7f; 0x80 0xb0 0x00 0x00 0x00 0x7f;
as next step try create "helloworld" applet aid 010203040501
// create helloworld applet 0x80 0xb8 0x00 0x00 0x8 0x6 0x01 0x02 0x03 0x04 0x05 0x01 0x00 0x7f;
this returns
0x80 0xb8 0x00 0x00 0x08 0x06 0x01 0x02 0x03 0x04 0x05 0x01 0x00 0x7f; cla: 80, ins: b8, p1: 00, p2: 00, lc: 08, 06, 01, 02, 03, 04, 05, 01, 00, le: 00 , sw1: 64, sw2: 44
and jcwde reports "exception invoked install() method: ..."
so response figure somehow applet not loaded simulator, don't know why case!
there no "installer applet" in card. there card manager applet, cad system operations.
card manager aid known me are:
const visa_cardmanager_aid = 'a0000000030000'; mastercard_cardmanager_aid = 'a0000000040000'; gemplus_cardmanager_aid = 'a000000018434d00';
is card jcop one?
to start installing applet need issue install/load command first (cla=80/84, ins = e6). in case start 80/84 , b8 on reason.
after install/load need issue load commands upload cap file card.
please refer globalplatform documentation know more apdu commands (search google document named "gpcardspec_v2.2.pdf" or download here: http://www.globalplatform.org/specificationscard.asp
Comments
Post a Comment