OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: gan (ganmimos.my)
Date: Sun Jan 20 2002 - 22:37:14 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    attached mail follows:


    QUESTION 1:

    I have installed the pcsclite-0.8.7 , and I am using the ACR20S
    Cybermouse Serial Smartcard reader.
    on Red Hat linux 6.2. When I run the test.c file that is provided in the
    pcsc-lite.0.8.7 with the deamon,
    running and a smardcard inserted, The ScardStatus return the value 0 but
    the current reader state is 34. I wonder
    why? The return value of the reader state is incorrect because refering
    to the
    MUSCLE PC/SC Toolkit API Reference Documentation, the pdwState which
    refer to the
    current state of the reader can only be as follow,

    Value of pdwState
    SCARD_AbSENT - 0x002
    SCARD_PRESENT -0x004
    SCARD_SWALLOWED -0x0008
    SCARD_POWERED -0x0010
    SCARD_NEGOTIABLEMODE -0x0020
    SCARD_SPECIFICMODE -0x0040

    QUESTION 2:

    When I run the PC/SC Lite Test program, I got this result

    Testing SCardEstablishContext
    Testing SCardGetStatusChange
    Waiting for available reader
    The SCardGetStatusChange return 0
    ôÿp>Testing SCardListReaders
    Allocated 27 space for readers
    Reader 01: ACS CyberMouse Serial 0 0
    Enter the desired reader number : 01

    Status before 16
    winscard.c 905: SCardGetStatusChange: Event Loop Start
    winscard.c 995: SCardGetStatusChange: Event Loop End
    Status after 34
    Testing SCardConnect
    SCardConnect Returns 0

    Testing SCardControl
    SCardControl Returns -2146435050
    PCSC ERROR: Transaction failed.
    Testing SCardStatus
    ...
    ...
    I wonder why it returns PCSC ERROR:Transaction failed. Please help.

    Thank you,

    SL.Gan

    ***************************************************************
    Unix Smart Card Developers - M.U.S.C.L.E.
    (Movement for the Use of Smart Cards in a Linux Environment)
    http://www.linuxnet.com/
    To unsubscribe send an email to majordomolinuxnet.com with
    unsubscribe sclinux
    ***************************************************************