Smartcard reader driver problem with XP SP2?

Smartcard reader driver problem with XP SP2?

Post by Haiku » Tue, 07 Sep 2004 18:30:47


Hello everyone:

My smartcard reader driver works well in winXP with Sp1 and passed HCT11.2
test as well. But we I update with SP2, caused system bluescreen with some
card inserted. When I traced the driver, I found that the error occured
after SetProtocol function, the sclib tried to get the CLK value and
DataRate valuse from the ATR and tried to compare with the
ReaderCapabilities structure. It caused system bluescreen.

But I wonder why the former sclib doesn't cause this error? What's changes
in the new sclib? What should the driver do if reader support several
DataRate?

Thanx in advance!
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Thu, 09 Sep 2004 16:03:44

Hello everyone:

My smartcard reader driver works well in winXP with Sp1 and passed HCT11.2
test as well. But we I update with SP2, caused system bluescreen with some
card inserted. When I traced the driver, I found that the error occured
after SetProtocol function, the sclib tried to get the CLK value and
DataRate valuse from the ATR and tried to compare with the
ReaderCapabilities structure. It caused system bluescreen.

But I wonder why the former sclib doesn't cause this error? What's changes
in the new sclib? What should the driver do if reader support several
DataRate?

Thanx in advance!

 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Fri, 10 Sep 2004 09:41:08

Hello everyone:

My smartcard reader driver works well in winXP with Sp1 and passed HCT11.2
test as well. But we I update with SP2, caused system bluescreen with some
card inserted. When I traced the driver, I found that the error occured
after SetProtocol function, the sclib tried to get the CLK value and
DataRate valuse from the ATR and tried to compare with the
ReaderCapabilities structure. It caused system bluescreen.

But I wonder why the former sclib doesn't cause this error? What's changes
in the new sclib? What should the driver do if reader support several
DataRate?

Thanx in advance!
 
 
 

Smartcard reader driver problem with XP SP2?

Post by johne » Wed, 15 Sep 2004 07:26:31


Hi, Haikun

The DDK specialist most familiar with this area is not able to respond at
this time. A Grace (no charge) Service request has been created and you
should receive a response soon.

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided S ISwith no warranties, and confers no rights.
--------------------
From: "Haikun"<< XXXX@XXXXX.COM >>
Subject: Smartcard reader driver problem with XP SP2?
Date: Wed, 8 Sep 2004 15:03:44 +0800
X-Tomcat-NG: microsoft.public.development.device.drivers

Hello everyone:

My smartcard reader driver works well in winXP with Sp1 and passed HCT11.2
test as well. But we I update with SP2, caused system bluescreen with some
card inserted. When I traced the driver, I found that the error occured
after SetProtocol function, the sclib tried to get the CLK value and
DataRate valuse from the ATR and tried to compare with the
ReaderCapabilities structure. It caused system bluescreen.

But I wonder why the former sclib doesn't cause this error? What's changes
in the new sclib? What should the driver do if reader support several
DataRate?

Thanx in advance!







{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Hi, Haikun
\par
\par The DDK specialist most familiar with this area is not able to respond at this time. A Grace (no charge) Service request has been created and you should receive a response soon.
\par
\par Thank you for choosing the MSDN Managed Newsgroups,
\par
\par John Eikanger
\par Microsoft Developer Support
\par
\par This posting is provided \ldblquote AS IS\rdblquote with no warranties, and confers no rights.
\par \pard\li720 --------------------
\par From: "Haikun"<< XXXX@XXXXX.COM >>
\par Subject: Smartcard reader driver problem with XP SP2?
\par Date: Wed, 8 Sep 2004 15:03:44 +0800
\par X-Tomcat-NG: microsoft.public.development.device.drivers
\par
\par Hello everyone:
\par
\par My smartcard reader driver works well in winXP with Sp1 and passed HCT11.2
\par test as well. But we I update with SP2, caused system bluescreen with some
\par card inserted. When I traced the driver, I found that the error occured
\par after SetProtocol function, the sclib tried to get the CLK value and
\par DataRate valuse from the ATR and tried to compare with the
\par ReaderCapabilities structure. It caused system bluescreen.
\par
\par But I wonder why the former sclib doesn't cause this error? What's changes
\par in the new sclib? What should the driver do if reader support several
\par DataRate?
\par
\par Thanx in advance!
\par
\par
\par
\par
\par
\par
\par \pard
\par
\par }
 
 
 

Smartcard reader driver problem with XP SP2?

Post by DougHow » Wed, 15 Sep 2004 12:02:54


Hello Haikun,

I am a member of the DDK support team, and will be working with you on this
issue. As John Eikanger mentioned, I have a grace (no charge) service
request open for this issue. I am in the process of researching this issue
and hope to provide you with my results soon.

Feel free to contact me directly at: XXXX@XXXXX.COM

Thanks,
Doug Howe
Microsoft DDK Support

This posting is provided "AS IS" with no warranties, and confers no rights.
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Hello Haikun,
\par
\par I am a member of the DDK support team, and will be working with you on this issue. As John Eikanger mentioned, I have a grace (no charge) service request open for this issue. I am in the process of researching this issue and hope to provide you with my results soon.
\par
\par Feel free to contact me directly at: XXXX@XXXXX.COM
\par
\par Thanks,
\par Doug Howe
\par Microsoft DDK Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Wed, 15 Sep 2004 15:15:43

Thank you for your reply.

Hope to get your research result soon!




this
issue
rights.
 
 
 

Smartcard reader driver problem with XP SP2?

Post by johne » Sun, 19 Sep 2004 02:09:57

Hi, Haikun

Here is an interim report on Doug's progress:

He is working with the developers on this and other SP2 Smartcard driver
issues and will report here when he has something you can act upon.

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided S ISwith no warranties, and confers no rights.

--------------------
From: "Haikun"<< XXXX@XXXXX.COM >>
References:<< XXXX@XXXXX.COM >> << XXXX@XXXXX.COM >>
Subject: Re: Smartcard reader driver problem with XP SP2?
Date: Tue, 14 Sep 2004 14:15:43 +0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID:<< XXXX@XXXXX.COM >>
Newsgroups: microsoft.public.development.device.drivers
NNTP-Posting-Host: 221.215.42.82
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.development.device.drivers:50706
X-Tomcat-NG: microsoft.public.development.device.drivers

Thank you for your reply.

Hope to get your research result soon!


"Doug Howe [MSFT]"<< XXXX@XXXXX.COM [MSFT>> wrote in message
news: XXXX@XXXXX.COM ... >> Hello Haikun, >> >> I am a member of the DDK support team, and will be working with you on
this >> issue. As John Eikanger mentioned, I have a grace (no charge) service >> request open for this issue. I am in the process of researching this
issue >> and hope to provide you with my results soon. >> >> Feel free to contact me directly at: XXXX@XXXXX.COM >> >> Thanks, >> Doug Howe >> Microsoft DDK Support >> >> This posting is provided "AS IS" with no warranties, and confers no
rights.



{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Hi, Haikun
\par
\par Here is an interim report on Doug's progress:
\par
\par He is working with the developers on this and other SP2 Smartcard driver issues and will report here when he has something you can act upon.
\par
\par Thank you for choosing the MSDN Managed Newsgroups,
\par
\par John Eikanger
\par Microsoft Developer Support
\par
\par This posting is provided \ldblquote AS IS\rdblquote with no warranties, and confers no rights.
\par
\par \pard\li720 --------------------
\par From: "Haikun"<< XXXX@XXXXX.COM >>
\par References:<< XXXX@XXXXX.COM >><< XXXX@XXXXX.COM >>
\par Subject: Re: Smartcard reader driver problem with XP SP2?
\par Date: Tue, 14 Sep 2004 14:15:43 +0800
\par Lines: 26
\par X-Priority: 3
\par X-MSMail-Priority: Normal
\par X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
\par X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
\par Message-ID:<< XXXX@XXXXX.COM >>
\par Newsgroups: microsoft.public.development.device.drivers
\par NNTP-Posting-Host: 221.215.42.82
\par Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
\par Xref: cpmsftngxa06.phx.gbl microsoft.public.development.device.drivers:50706
\par X-Tomcat-NG: microsoft.public.development.device.drivers
\par
\par Thank you for your reply.
\par
\par Hope to get your research result soon!
\par
\par
\par "Doug Howe [MSFT]"<< XXXX@XXXXX.COM [MSFT>> wrote in message
\par news: XXXX@XXXXX.COM ...
\par>> Hello Haikun,
\par>>
\par>>
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Tue, 21 Sep 2004 16:24:27

I have sent the dump file to Dong Howe . Problem not solved for the moment.

Thank you for your attention!




microsoft.public.development.device.drivers:50706
 
 
 

Smartcard reader driver problem with XP SP2?

Post by yhhuan » Wed, 22 Sep 2004 11:02:20


Hi Haikun,

I will ping Dong Howe on it as soon as possible. Thanks very much for your
update.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
- http://www.yqcomputer.com/
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}{\f1\fmodern\fprq6\fcharset134 \'cb\'ce\'cc\'e5;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Haikun,
\par
\par I will ping Dong Howe on it as soon as possible. Thanks very much for your update.
\par
\par Best regards,
\par Yanhong Huang
\par Microsoft Community Support
\par
\par Get Secure! \f1\endash\f0 www.microsoft.com/security
\par Register to Access MSDN Managed Newsgroups!
\par - http://www.yqcomputer.com/
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Wed, 22 Sep 2004 15:22:36

Thank your for your attention!

I also send parts of my driver codes and some test result. If have any
progress or questions , please let me know ASAP. Thanx in advanced!



as
rights.
 
 
 

Smartcard reader driver problem with XP SP2?

Post by DougHow » Thu, 23 Sep 2004 12:46:29


Hello Haikun,

I am working with Development to determine what changed with SP2 that might
be causing this problem. I will let you know what we find.

In the meantime, please try running Driver Verifier with "Special pool" and
"Pool tracking" enabled, and verify all drivers in the stack for your
device. Let me know what you see on SP2.

Regards,
Doug

This posting is provided "AS IS" with no warranties, and confers no rights.
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Hello Haikun,
\par
\par I am working with Development to determine what changed with SP2 that might be causing this problem. I will let you know what we find.
\par
\par In the meantime, please try running Driver Verifier with "Special pool" and "Pool tracking" enabled, and verify all drivers in the stack for your device. Let me know what you see on SP2.
\par
\par Regards,
\par Doug
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Thu, 23 Sep 2004 16:14:43

I run Driver Verifier with "Special pool" and "Pool tracking" enbled,
verified our reader driver and all USB associated driver. System reboot and
no error occured . If enbled other test items , after system reboot, will
caused bluescreen. I have sent the dump file to your emailbox.



might
and
rights.
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Robert Val » Sat, 25 Sep 2004 19:24:52


Sorry, if my response is wrong there.. I see my problem from the
application-side ;-((

After installing SP2 i can't send APDU to the smardcard with sending
data to the card, and getting data as response. (APDU message structure
case 4 in ISO-7816-4). Sending such an apdu, SCardTransmit will return
with 0x045d (ERROR_IO_DEVICE ?) The problem occurs only with SP2 (no
other changes on the system)
When the smartcard send the response (with data), there will be a lot
of trafic between cardreader and system for 2-3 seconds. It seem's to me,
that the response will not understand from the system, and will be
repeated. Protocoll is T=1.
If i am use the PIN, the pin-response is working. After sending the
PIN, the appl is sending the APDU again, the same problem occur.
I think, it could also be an problem with the analyse of the atr from
the scard-system in SP2

PS: i am waiting for a reponse from then manufacture of the cardreader..
--
mfG
Robert Valentan
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Wed, 29 Sep 2004 15:25:58

Hello Doug Howe:

Thank you for what you did !

Here I just want to repeat the codes that caused the error. From tracing my
reader driver codes, I found if I try to use structure DataRatesSupported of
ReaderCapabilities, will cause that error.

DDK said:

DataRatesSupported.List
Optional. Contains a list of data rates (in BPS) supported by the reader.
This structure is used for the PTS request. The driver usually sets this
member to point to a static array of unsigned long values containing the
supported data rates.
If the reader does not support different data rates, leave this structure
empty.

DataRatesSupported.Entries
Optional. Contains the number of array entries of DataRatesSupported.List.


I did in the addDevice rountine like this( followed DDK sample):

static ULONG DataRatesSupported[] = {9600,19200,38400};

SmartcardExtension->ReaderCapabilities.DataRate.Default = 9600;
SmartcardExtension->ReaderCapabilities.DataRate.Max =
ReaderExtension->DataRatesSupportedList[2];
SmartcardExtension->ReaderCapabilities.DataRatesSupported.List =
DataRatesSupportedList;
SmartcardExtension->ReaderCapabilities.DataRatesSupported.Entries =
sizeof(DataRatesSupportedList)/sizeof(DataRatesSupportedList[0]);

When smclib compelted the IOCTL_SET_PROTOTOCOL and tried to free the IRP,
caused that error. I doubt if the error associated with "static"
variable?? How could the readre driver do if support multi-DataRate????

BTW: They other drivers of my test computer have not caused the error.
Error occured only when smclib tried to setprotocol .
 
 
 

Smartcard reader driver problem with XP SP2?

Post by Haiku » Fri, 01 Oct 2004 10:15:38

Any progress with this problem??



might
and
rights.