Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > WHQL test :card reader test failed in power management test

Reply
Thread Tools Display Modes

WHQL test :card reader test failed in power management test

 
 
laudraup
Guest
Posts: n/a

 
      06-21-2004
I am doing WHQL test for smart card reader.

As a serial attached smart card reader,and the power is supplied by an
adaptor.

when trying card reader test,failed in Part E:
Power Management Test:

GetOverLappedResult:
expexted:3e4
returned:0

The CTS signal is used to track card insert/removal.

Even the system hibernate,the reader is always powerd by the adaptor...

in this case,what measure should i take?

I mean :the cardtracking policy..

Thanks for your attention:-)



 
Reply With Quote
 
 
 
 
Walter Oney
Guest
Posts: n/a

 
      06-21-2004
laudraup wrote:
> I am doing WHQL test for smart card reader.
> As a serial attached smart card reader,and the power is supplied by an
> adaptor.
> when trying card reader test,failed in Part E:
> Power Management Test:
> Even the system hibernate,the reader is always powerd by the adaptor...
> in this case,what measure should i take?
> I mean :the cardtracking policy..


The test has nothing to do with whether your reader is powered or not.
If you simply pretend that there was a card removal each time power is
raised from something else to S0, you will pass the test. I.e., you'll
complete any card-absent IRP that was pending before power-off
regardless of whether a card is present or not. If a card-present IRP
was pending and a card happens to be present, you'll complete that IRP,
too.

--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com
 
Reply With Quote
 
laudraup
Guest
Posts: n/a

 
      06-22-2004
Great thanks to Great Walter Oney:-)

I'm wondering
Use our own test program,I tried to simulate the power management test.
That is:
DO NOT INSERT smart card during hibernate mode
REMOVE smart card DURING hibernate mode
DO NOT REMOVE smart card during hibernate mode
INSERT smart card DURING hibernate mode

And in every case the driver work well,can successfully detect card absent
or present.

but when turned to the WHQl test:-(

Test 1: DO NOT INSERT smart card during hibernate mode
Card out / card out - Hibernate now * FAILED
- GetOverlappedResult failed
Returned 0
Expected 3e4

what does this "GetOverlappedResult "mean??
You know,I didn't complete the pending card_present irp in this case...



"Walter Oney" <> wrote in message
news:...
> laudraup wrote:
> > I am doing WHQL test for smart card reader.
> > As a serial attached smart card reader,and the power is supplied by an
> > adaptor.
> > when trying card reader test,failed in Part E:
> > Power Management Test:
> > Even the system hibernate,the reader is always powerd by the adaptor...
> > in this case,what measure should i take?
> > I mean :the cardtracking policy..

>
> The test has nothing to do with whether your reader is powered or not.
> If you simply pretend that there was a card removal each time power is
> raised from something else to S0, you will pass the test. I.e., you'll
> complete any card-absent IRP that was pending before power-off
> regardless of whether a card is present or not. If a card-present IRP
> was pending and a card happens to be present, you'll complete that IRP,
> too.
>
> --
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Check out our schedule at http://www.oneysoft.com



 
Reply With Quote
 
Walter Oney
Guest
Posts: n/a

 
      06-22-2004
laudraup wrote:
> but when turned to the WHQl test:-(
>
> Test 1: DO NOT INSERT smart card during hibernate mode
> Card out / card out - Hibernate now * FAILED
> - GetOverlappedResult failed
> Returned 0
> Expected 3e4


GetOverlappedResult is simply waiting for an IRP to finish. The message
says the test is expecting a failure with code 996 (decimal). From
winerror.h, one can learn what this code is ERROR_IO_INCOMPLETE. I've
never encountered this myself, but I imagine it means that an I/O
request issued on a FILE_FLAG_OVERLAPPED handle was not complete when
someone called GetOverlappedResult with the no-wait option.

So: are you SURE you're not completing a card-present IRP in this case?

--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com
 
Reply With Quote
 
laudraup
Guest
Posts: n/a

 
      07-09-2004
Great Thanks:-)
I had passed card reader test.

by the way,does the test have sth to do with the Main Board??

With VIA board,the test passed.
With ABIT NF7-S mainborad, Reader stops responding after hibernation.

Can u tell WHY?
TIA....

"Walter Oney" <> wrote in message
news:...
> laudraup wrote:
> > but when turned to the WHQl test:-(
> >
> > Test 1: DO NOT INSERT smart card during hibernate mode
> > Card out / card out - Hibernate now * FAILED
> > - GetOverlappedResult failed
> > Returned 0
> > Expected 3e4

>
> GetOverlappedResult is simply waiting for an IRP to finish. The message
> says the test is expecting a failure with code 996 (decimal). From
> winerror.h, one can learn what this code is ERROR_IO_INCOMPLETE. I've
> never encountered this myself, but I imagine it means that an I/O
> request issued on a FILE_FLAG_OVERLAPPED handle was not complete when
> someone called GetOverlappedResult with the no-wait option.
>
> So: are you SURE you're not completing a card-present IRP in this case?
>
> --
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Check out our schedule at http://www.oneysoft.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
WHQL signability test error Alexey Tal Windows Vista Drivers 3 05-07-2004 06:23 PM
[Q] About WHQL Test voohoo Windows Vista Drivers 2 02-04-2004 11:36 AM
64 bit WHQL Test Machine cd Windows Vista Drivers 2 01-14-2004 08:39 PM
WHQL test for filter driver shak Windows Vista Drivers 4 12-03-2003 09:35 AM
Card reader test jun Windows Vista Drivers 1 08-28-2003 02:44 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59