- WHQL test :card reader test failed in power management test
- Posted by laudraup on June 21st, 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:-)
- Posted by Walter Oney on June 21st, 2004
laudraup wrote:
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
- Posted by laudraup on June 22nd, 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...
- Posted by Walter Oney on June 22nd, 2004
laudraup wrote:
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
- Posted by laudraup on July 9th, 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...