I had this same error recently with the same reader and same card...
    It happened when executing a directory command with P3 being less than
the size of the normal response to that type of file.
    But before you execute a "directory" on a file you don't know how many
bytes the response should be because you don't know the file type. So, if
that's when your error happens, you can execute a directory "command" first
with P3 = 0x17.
    Then you analize byte 7 of the response (index 6). If it's 1 or 2, your
got your apropriate response. If it is 4, issue another "directory" command
on the same file with P3 = 0x0F.
    I get you could try the first directory with P3=0x00 and then execute a
Get Response asking for a length equal to the 2nd byte of the return status
but I'm not sure.

    Hope this helps,

        Pedro Borges

----- Original Message -----
From: Patrick Hayden <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 12, 1999 2:37 AM
Subject: [OCF] PCSC Exception


> Hello;
> Does anyone know where I can find information on returned error codes for
> the OCF? In particular, PCSC Exceptions. Here is the error I am receiving:
>
> opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC
> Exception in method SCardTransmit: error occurred with SCardTransmit
> return code = 00000057
>
> I am using a Litronic 210 with a Cyberflex Open 16 card.
>
> Thanks,
> Patrick Hayden
> 2906 Janice Way #209
> Tampa, Fl 33629
> [EMAIL PROTECTED]
> 813-966-9721
>
>
> Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
> access to documentation, code, presentations, and OCF announcements.
> --------------------------------------------------------------------------
---
> To unsubscribe from the OCF Mailing list, send a mail to
> "[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of
the
> message.
>




Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.

Reply via email to