WHQL test :card reader test failed in power management test

Discussion in 'Windows Vista Drivers' started by laudraup, Jun 21, 2004.

  1. laudraup

    laudraup Guest

    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:)
     
    laudraup, Jun 21, 2004
    #1
    1. Advertisements

  2. laudraup

    Walter Oney Guest

    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, Jun 21, 2004
    #2
    1. Advertisements

  3. laudraup

    laudraup Guest

    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...
     
    laudraup, Jun 22, 2004
    #3
  4. laudraup

    Walter Oney Guest

    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, Jun 22, 2004
    #4
  5. laudraup

    laudraup Guest

    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....
     
    laudraup, Jul 9, 2004
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.