Here is the proper syntax (I think)
CLA 00, 80, 90
INS C0
P1 0 P2 0

80 c0 00 00

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jim Nanney
Sent: Monday, June 26, 2000 11:36 PM
To: [EMAIL PROTECTED]
Subject: Re: MUSCLE response data from SelectFile


On Sun, 25 Jun 2000 [EMAIL PROTECTED] wrote:

> Hi,
> 
> The cyberflex documentation indicates that response 
> data containing information about the selected file/directory
> is returned in a SelectFile command. How can I get this data?
> It is not in the recieve buffer of SCardTransmit(). Only a two byte
> status code is in the recieve buffer.  Do I have to send some
> other command to the card to get this data?
> 
> The cyberflex documentation on page 97 and page 115 talks about a
> Getreponse command, but I can't seem to find any documentation on this.
> 
> I'm coding base on the cyberflex documenation and the PC/SC-lite
> documentation.  Would the APDU command for cyberflex work for other
> smartcards like Bull?
> 
> thanks,
> son
> 

Get Response command c0 a4 00 00 17

c0 - class
a4 - instruction
00 - P1
00 - P2
17 - len of data to be returned

to get the length of data you must get it from the select file response
 61 17

61 - Data waiting in getresponse
17 - Length of data

I could be wrong about the c0 a4 as I am doing this from memory, but you
could check the documentation for the cyberflex at cyberflex.slb.com

Hope this helps.

Jim Nanney


***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to