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:-)

Re: WHQL test :card reader test failed in power management test by Walter

Walter
Mon Jun 21 10:47:41 CDT 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

Re: WHQL test :card reader test failed in power management test by laudraup

laudraup
Tue Jun 22 06:09:19 CDT 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" <waltoney@oneysoft.com> wrote in message
news:40D7031D.88717D8C@oneysoft.com...
> 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



Re: WHQL test :card reader test failed in power management test by Walter

Walter
Tue Jun 22 07:30:26 CDT 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

Re: WHQL test :card reader test failed in power management test by laudraup

laudraup
Fri Jul 09 04:25:58 CDT 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" <waltoney@oneysoft.com> wrote in message
news:40D82662.B06DC6DD@oneysoft.com...
> 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