Hello,

Thank you for fast response.
Plase look at comments below.

> 2011/8/16 Vladimir Davydov <[email protected]>:
> > Hello All!
> 
> Hello
> 
> > I'm very sorry if my question is awkward,  I'm not guru in the PCSC world.
> >
> > Few words about my project.
> > It is composite USB device with two interfaces: CCID and MSD.
> > CCID interface is used to interact with integrated ICC and to control 
> > access to Mass Storage. I used AT91LIB implementation of CCID driver on the 
> > device side.
> > Currently the pcsc-lite is working fine with default configuration, but 
> > some customization is needed for the project.
> > It is very criticall for me to avoid any additional PowerOn and PowerOff 
> > requests, because they reset authentication on ICC.
> >
> > Is it possible to avoid PowerOn request when pcscd starts and/or when pcsc 
> > client connects to pcscd?
> > In my case this request is already preformed by another application before 
> > pcscd starting.
> > This application uses libusb for direct access to CCID interface.
> 
> Your card is _already_ powered on before pcscd is started and you want
> the card to stay powered on all the time?

Exactly. 

> 
> That should be possible by disabling the auto power on mechanism. See
> [1] and DISABLE_ON_DEMAND_POWER_ON in particular.

I have uncommented DISABLE_ON_DEMAND_POWER_ON and DISABLE_AUTO_POWER_ON and 
pcscd is not calling PowerOn after start.
But it happens after starting of winscard application (scriptor for example). 
As I understand, PowerOn is automatically called after SCardConnect() and it is 
a mandatory behaviour, 
because pcscd must obtain ATR to get information about ICC (protocol for 
example).

Is that correct, and there is no kind of way to change this behaviour?

Best regards,
Vladimir Davydov


> 
> Bye
> 
> [1] 
> http://ludovicrousseau.blogspot.com/2010/10/card-auto-power-on-and-off.html
> 
> 

-- 
Vladimir Davydov
Senior Developer
Promwad Innovation Company
Web: www.promwad.com
22, Olshevskogo St.,
220073, Minsk,
BELARUS
Phone/Fax: +375 (17) 312–1246
E-mail: [email protected]
Skype: v_davydov

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to