Gambin Dejan wrote: > OK, I was successful when using instParam parameter in GPShell script. > > I have put "install_for_install -AID A00000000101 -pkgAID A000000001 > -instAID A00000000101 -instParam 0x00". The APDU sent was: > > 80E60C001C05A00000000106A0000000010106A00000000101010004C90200000000 > > So this worked but I still want to know why the install parameters were > "C9020000" and not "C900" as in Eclipse?
Because Eclipse sends nothing, i.e. a length of 0 resulting in C900. GPShell send really a 00, i.e. a length of 1 resulting in C90100. But you specified 0x00. GPShell does not support 0x as hexadecimal identifier. This is already assumed, so 0x00 are 2 bytes, because the first 0x is interpreted as 00, resulting in C90200. I have modified the GlobalPlatform library in CVS to support also C900. But, I remember, there were problems with this, at least my Oberthur card does not accept C900, at least one byte must be given, e.g. 9C0100, maybe there are other cards which do also not accept C900. Karsten > > thanks, dejan > > >>-----Original Message----- >>From: Gambin Dejan >>Sent: Wednesday, September 13, 2006 9:23 AM >>To: 'Karsten Ohme' >>Cc: 'MUSCLE' >>Subject: Problem with install_for_install in GPShell 1.3.1 >> >>Hi, >> >>After successfully executing the "install_for_load" and >>"load" commands I get an error trying to instantiate the >>Muscle applet using "install_for_install". I have enabled >>APDU tracing and compared this APDU with the one sent by >>Eclipse (that was succcessful). Here are the notes: >> >>1. GPShell install_for_install - the parameters used in >>script file are: >> >>install_for_install -AID A00000000101 -pkgAID A000000001 >>-instAID A00000000101 >> >>APDU -> 80E60C001805A00000000106A0000000010106A000000001010100000000 >> >>2. Eclipse - the command was "install -i A00000000101 >>A000000001 A00000000101" (successful) >> >>APDU -> >>80E60C001A05A00000000106A0000000010106A00000000101010002C9000000 >> >>Obviously, the difference is that Eclipse sent the "install >>parameters" data and GPShell did not. As I can see in >>GlobalPlatform standard, it says that "install parameters >>field" is mandatory and must have 2-n bytes. What am I missing? >> >>regards, dejan >> _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
