Are you using SCARD_SHARE_EXCLUSIVE when connecting to the card?

Does Select File/App not reset your applet/card? 00 A4 04 00 ....

-----Original Message-----
From: muscle-boun...@lists.musclecard.com 
[mailto:muscle-boun...@lists.musclecard.com] On Behalf Of Stef Hoeben
Sent: Saturday, 9 October 2010 4:24 a.m.
To: MUSCLE
Subject: RE: [Muscle] Configure error on Mac OSX 10.5.x

Hello,

(sorry, slightly off-topic: about PCSC but not restricted to pcsc-lite)

here's our problem: a 3rd party app, without our control, messes
up our smart by regularly sending a number of APDUs that the card
doesn't digest well. Only solution seems to be a warm or cold reset.

So we do an SCardBeginTransaction() and when we send a command
using SCardTransmit(), we see the card is messed up.

Now the question is: can we do a reset without losing our exclusive
hold on the card? (Because otherwise the 3rd party app messes up
the card again.)

This doesn't seem to work:
  SCardBeginTransaction()
  SCardTransmit()  --> here we notice the card is messed up
  SCardReconnect(SCARD_RESET_CARD)  --> resets but also break the
transaction
  SCardBeginTransaction
  SCardTransmit()
The reason is that the 3rd party app is often faster to do an
SCardBeginTransaction() and messes up the card again.

Any bright ideas? Or something obvious that we missed?

Thanks, best regards,
Stef


_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to