On 18 августа 2011 14:52:22 Ludovic Rousseau wrote:
> 2011/8/17 Vladimir Davydov <[email protected]>:
> > 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).
> 
> If DISABLE_AUTO_POWER_ON is disabled then the Power On is made only
> when SCardConnect() is called, and not when the smart card is inserted
> in the reader.
> 
> > Is that correct, and there is no kind of way to change this behaviour?
> 
> You can't do what you want with the code as it is.
> pcsc-lite need to know the ATR so you have to find a way to give the
> ATR to the driver without a new power on. You will have to hack the
> CCID driver for that.

I will try to hack the CCID driver code. 
As far as I can see the code is very good and has a lot of comments.

Thanks a lot for your help.

Best regards,
Vladimir

> 
> Bye
> 
> 

-- 
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