GPShell error selecting app
800533Sep 27 2010 — edited Oct 13 2010I'm trying to get GPShell to install the helloworld.cap file that is included with it. When I run the helloInstall.txt script this is the error:
enable_trace
establish_context
card_connect
select -AID a0000000030000
Command --> 00A4040007A0000000030000
Wrapped command --> 00A4040007A0000000030000
Response <-- 6700
select_application() returns 0x80206700 (6700: Wrong length.)
I think this is because it's not adding the Le byte at the end of the command. Right before the AID it puts 07 as the Lc byte which is the length of the AID. But when I was using the APDUtool with the simulator I always had to put the Le byte at the end, and the Lc byte would have the length of the AID, NOT including the Le byte at the end. What can I do to fix this?