A coworker could not run a SmartCard test application,
which would hang with no diagnostic.
Environment: French Windows XP latest everything,
GemPC USB-SL with default install (the reader is
reportedly a vanilla USB CCID compliant device),
PCOM (scripting tool licensed from Oberthur CS)
connecting to the SmartCard reader thru PC/SC,
SmartCard using T=0 protocol with ATR:
3B 68 00 00 FF 29 23 00 D1 68 90 00h
Hang is repeatable. A repeatable cure is to reboot.
A semi-repeatable cure is to temporarily unplug
the reader's USB plug.
1) Problem narrowed down to
- card reset
- outgoing command BC B0 00 00 34h, executed without
error (card sends 34h bytes of data,
SW1 SW2 = 90 00h, this reaches the application)
- any further command, including card reset, cause
a hang of the application.
Various other length do not trigger the problem,
only 34h, 74h, B4h, and F4h do !
Problem also occurs with other outgoing commands
with any of these data length, regardless of command
or data, and previous commands.
2) Hook up scope. The card behaves nominally
(I'm a seasonned expert at spotting ISO 7816
non-conformance). No activity whatsoever after
the card has sent SW1 SW2.
3) Tried other hardware
Same problem on several other PCs (from Intel
Centrino portable to Athlon XP desktop) with other
GemPC USB-SL readers.
Same problem with a slightly different SmartCard
(other manufacturer, similar ATR, different timing).
4) Tried other application software
Same problem with another scripting environment,
and a minimal PC/SC test program.
5) Tried other reader models
No problem with a non USB, non PC/SC reader.
No problem with three other USB PC/SC readers (two
different models from SCM, one Oberthur CS branded).
6) Tried other driver for the GemPC USB-SL. Originally
the driver used was the one installed by letting
Windows find the appropriate driver on Windows Update,
Fournisseur Microsoft
date du pilote 01/04/2003 [DD/MM/YYYY French format]
version 5.2.3790.0
Changed to the one on the GemPlus site
Fournisseur GemPlus
date du pilote 28/06/2004 [DD/MM/YYYY French format]
version 1.0.0.11
http://support.gemplus.com/gemdownlo...oad.aspx?id=94
Problem solved, on four different machines.
I wish I knew EXACTLY what is wrong with the use of this
Microsoft driver released on April 1, 2003 with the GemPC
USB-SL, and why it occurs for length of 34h mod 40h only.
I also wish I knew how to properly report this bug,
and another: with the same reader/driver combination,
I have a SmartCard with a slightly incorrect behavior
that cause a BSOD, no matter what PC/SC application
senses it.
François Grieu - Spirtech