[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-smartcardddk
Subject:    Re: Disconnecting to a smartcard
From:       Mats Hansson <mats.hansson () INTERTEX ! SE>
Date:       1998-04-16 10:03:01
[Download RAW message or body]


Then I should suggest that for future updates you send an
SCARD_ATTR_DEVICE_IN_USE even in case of no card reader. Or invent a new
IOCTL or attribute to be sent at SCardConnect/SCardDisconnect independent of
the status of the reader. As it now is, we are running into serious problems
when coming back from a state where we have released the COM-port for other
purposes. We cannot power on the card because we don't know that there is a
need for this and the Resource Manager doesn't want to signal this to us
because he thinks there isn't a card in the reader. Moment 22. PCSC is
apparently very possesive about the channel used for the smartcard reader
and a way to escape for a while from this port-ownership (with proper
signalling) is needed, I think.

At 09:16 1998-04-15 -0700, you wrote:
>The SCardConnect connects to a card through a reader.  If the driver for
>that reader reports that there is no card inserted, then the SCardConnect
>fails.  Hence there's no reason to send an SCARD_ATTR_DEVICE_IN_USE.
>
>To get the SCARD_ATTR_DEVICE_IN_USE, your driver must have notified the
>Resource Manager that a card was present, and correctly responded to the
>commands to power up the card.  Your driver will only get the
>SCARD_ATTR_DEVICE_IN_USE notifications if there is a card inserted and
>powered.
>
>Doug
>

Mats Hansson
Intertex Data AB
Rissneleden 45
174 44 Sundbyberg
Sweden

Tel +46-8-6282828    Fax +46-8-6286414    www: http://www.intertex.se

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic