[Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions inIFDHPowerICC()
function?
Geoff Elgey
Geoff.Elgey at quest.com
Sun Aug 5 16:00:43 PDT 2007
G'day,
Thanks for the update to the IFDHPowerICC() documentation.
One thing that interests me, however is the following note in the
documentation regarding memory cards:
"Memory cards without an ATR should return IFD_SUCCESS on reset but
the Atr should be zeroed and the length should be zero"
Is an empty ATR only returned on IFD_RESET? What about on IFD_POWER_UP?
When I return a zero length ATR for IFD_POWER_UP, and use a PKCS#11
library that calls pcsclite, then I get the following pcscd error
message:
"prothandler.c:109:PHSetProtocol() Protocol T=0 requested but
unsupported by the card"
I need to use a valid ATR here to get the PKCS#11 library to function
with my ifdhandler.
-- Geoff
-----Original Message-----
From: muscle-bounces at lists.musclecard.com
[mailto:muscle-bounces at lists.musclecard.com] On Behalf Of Ludovic
Rousseau
Sent: Friday, 3 August 2007 5:57 AM
To: MUSCLE
Subject: Re: [Muscle] IFD_POWER_UP and IFD_POWER_DOWN actions
inIFDHPowerICC() function?
On 20/07/07, Geoff Elgey <Geoff.Elgey at quest.com> wrote:
> G'day,
Hello,
> I've written a IFD handler for a memory card, but I am now wondering
> if I am handling the IFDHPowerICC() function correctly.
>
> The function documentation defines the 'action' parameter as follows:
>
> * IFD_POWER_UP
>
> Power and reset the card if not done so
>
> * IFD_POWER_DOWN
>
> Power down the card then power up if not done already
I updated the API documentation at [1].
> So what is the difference between "power up and reset" (the
> IFD_POWER_UP
> action) and "power down and power up" (the IFD_POWER_DOWN action)?
>
> The IFD_POWER_DOWN case does not mention card reset after power up.
> What does it mean (in terms of card state) to have a card that is
> powered up but not reset?
The power down/power up cycles are down by pcscd. The driver just need
to implement the simple actions: up, down and warm reset.
bye
[1] http://pcsclite.alioth.debian.org/ifdhandler-3/node18.html
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Muscle at lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
More information about the Muscle
mailing list