PC Review


Reply
Thread Tools Rate Thread

Chronicle of bug hunt (GemPC USB-SL SmartCard reader on Windows XP)

 
 
Francois Grieu
Guest
Posts: n/a
 
      18th Jan 2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SmartCard Reader Catalin Lungu Microsoft Dot NET Compact Framework 2 28th Nov 2006 04:52 PM
smartcard reader Wheres_Wally Computer Hardware 0 29th Oct 2005 06:27 AM
Smartcard reader Massimiliano Castelletto Windows XP Embedded 0 29th Sep 2004 09:30 AM
Smartcard reader upgrade Microsoft Windows 2000 Upgrade 0 15th Jul 2004 11:30 PM
Can't install smartcard reader =?Utf-8?B?WXZvbm5l?= Windows XP Hardware 1 25th Feb 2004 10:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 PM.