2011/1/13 Aventra <developm...@aventra.fi>:
> Hi,
>
> Sorry, a typo when doing logging...
> Attached is a new log.

Found the bug (I think).

The CCID driver calculate a timeout accordings to the card ATR. In
your case the timeout is 1428 ms rounded to 2 seconds.
Log says:
00000007 ifdhandler.c:791:IFDHSetProtocolParameters() Timeout: 2 seconds

The same timeout is used by the reader and by the CCID driver. I think
the CCID driver (libusb in fact) triggers its timeout just before the
reader does. So the driver do not get the reader error message.

Patch to try:
in src/ifdhandler.c edit the function T1_card_timeout() (at the end of the file)
and replace
  return timeout;
by
  return timeout+1;

Then regenerate a log again.

Thanks

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to