Thanks JLuc,

I am using PCSC Framework version 1.1.1 as it came preinstalled with osX
10.2. Log output from pcsc is attached below.

Regards,
Jaya

Log of pcsclite daemon:

Jun 20 16:50:52 apples-Computer11 ./pcscd: eventhandler.c:467
EHSpawnEventHandler: Card inserted into GemPC430 0 0
Jun 20 16:50:52 apples-Computer11 ./pcscd: EHSpawnEventHandler: Card ATR: 3B
16 94 81 10 06 01 81 9F
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:154 SCardConnect:
Attempting Connect to GemPC430 0 0
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:252 SCardConnect:
Active Protocol: 1
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:259 SCardConnect:
hCard Identity: 12256
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:1267 SCardTransmit:
Send Protocol: 0
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:649 SCardDisconnect:
Active Contexts: 1
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:709 SCardDisconnect:
Error resetting card.
Jun 20 16:50:53 apples-Computer11 ./pcscd: winscard.c:88
SCardReleaseContext: Releasing Context: 17016666

Log from Testpcsc:
MUSCLE PC/SC Lite Test Program

Testing SCardEstablishContext    : Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders         : Command successful.
Reader 01: GemPC430 0 0
Enter the reader number          : 1

Waiting for card insertion
                                 : Command successful.
Testing SCardConnect             : Command successful.
Testing SCardStatus              : Command successful.
Current Reader Name              : GemPC430 0 0
Current Reader State             : 34
Current Reader Protocol          : 0
Current Reader ATR Size          : 9
Current Reader ATR Value         : 3B 16 94 81 10 06 01 81 9F
Testing SCardTransmit            :Transaction failed.
Testing SCardDisconnect          : Command successful.
Testing SCardReleaseContext      : Command successful.



Method which generates error:
        printf("Testing SCardTransmit            :");
        unsigned char send [7] = {0xC0,0xA4,0x00,0x00,0x02,0x3F,0x00};//APDU
        long recvlen = 50;
        unsigned char recv[recvlen];
        memset(recv, 0x00, recvlen);
        rv = SCardTransmit(hCard, &dwProt, send, sizeof(send), NULL, recv,
&recvlen);

        printf("%s\n", pcsc_stringify_error(rv));

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jean-Luc Giraud
Sent: Saturday, June 21, 2003 3:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [Muscle] Cryptoflex smartcard and Gemplus 430 reader


Hi,

Could you try to stop the version of pcscd that is currently running
and start pcscd in the command prompt with the following command:
"pcscd -f -d stdout" (no need to be root).

Then could you please send me the transcript of what you get?

Could you also let me know which version of the driver you are using?
There were issues with some cards in older versions with the automatic
pwer-up management.


Cheers,
JLuc.

On Friday, June 20, 2003, at 04:27 AM, Jaya Singhal wrote:

> Hello,
> I'm trying to use Schlumberger Cryptoflex 8K smart cards in a Gemplus
> 430
> reader using pcsc-lite-1.1.1 under Mac OSx 10.2, and its not working.
> The testpcsc program shipped with pcsc-lite ran successfully. But when
> I
> tried running my java application which reads and writes to the card
> it just
> didnt work. Application just hung there till the card was not removed.
> I
> tried using formaticc but for each APDU command send to the
> Cryproflex, I
> get a '.error -2146435050'. Then I modified testpcsc program and
> inserted
> this code to test SCardTransmit method it always returns 'Transaction
> failed.' which refers to SCARD_E_NOT_TRANSACTED in pcsclite.h. But it
> works
> fine with multos and gemplus cards.
> Any help regarding this is appreciated.
> Thanks,
> Jaya
>
>
> _______________________________________________
> Muscle mailing list
> [EMAIL PROTECTED]
> http://lists.musclecard.com/mailman/listinfo/muscle
>

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle



_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to