2012/4/29 Francisco Rodríguez Algarra <[email protected]>:
> Hi guys,

Hello,

> I am developing a Java library that allows communication with DESFire
> cards through a Gemalto Prox-Du device, and it turns out that these
> cards get blocked from time to time. Trying to minimize the problems caused
> by this fact, I've been asked to include a timeout on each command
> request that causes a reset if it expires. In order to do this, I turned
> to the methods included in the ccid library, but due to the absence of
> a previously created Java interface as is the case for pcsc commands, I've
> been forced to try to implement it on my own. The problem is that, despite
> my hard research, I'm not able to find a way to determine the Logical Unit
> Number parameter that I need to send. May someone give me a clue on how to
> find it or guide me to a workaround?

If the card got blocked then the card is bogus.
Maybe you do not wait enough?
In all cases the reader should timeout and report an error if the card
do not respond. The reader timeout maybe long (a few minutes).

Using the CCID ifdhandler directly is not the best way to do what you
want. You should keep using PC/SC instead.

The IFD Handler API is documented at [1].
The Lun is selected by pcscd more or less at random.

Bye

[1] http://pcsclite.alioth.debian.org/api/group__IFDHandler.html

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to