[Pcsclite-muscle] questions for "Card auto power on and off" features.

Ludovic Rousseau ludovic.rousseau
Thu Mar 5 10:55:15 PST 2015


2015-03-02 8:00 GMT+01:00 bruce lee <bbsoo7 at live.com>:
> Dear list,

Hello,

>   As am not sure it is a bug or not.
>
> 00000165 eventhandler.c:266:EHStatusHandlerThread() powerState:
> POWER_STATE_POWERED
> 00000151 Card ATR: 3B 97 95 80 1F 43 80 31 E0 73 FE 21 1B 38
> 00000194 ifdhandler.c:1770:IFDHICCPresence()
> usb:0bda/0169:libudev:0:/dev/bus/usb/001/008 (lun: 0)
> 00000232 -> 000000 65 00 00 00 00 00 06 00 00 00
> 00000492 <- 000000 81 00 00 00 00 00 06 00 80 00
> 00000149 ifdhandler.c:1891:IFDHICCPresence() Card present
> 00000220 ifdhandler.c:291:IFDHPolling()
> usb:0bda/0169:libudev:0:/dev/bus/usb/001/008 (lun: 0) 5000 ms
>
> the card is a SIM card. and its ATR like this.
>
> 3B 97 95 80 1F 43 80 31 E0 73 FE 21 1B 38
>
> when pcsc-lite goes into PPS process.
>
> Like this
>
> 00000111 winscard.c:235:SCardConnect() Attempting Connect to Generic
> USB2.0-CRW [Smart Card Reader Interface] (20070818000000000) 00 00 using
> protocol: 3
> 00000018 readerfactory.c:745:RFReaderInfo() RefReader() count was: 1
> 00000011 winscard.c:330:SCardConnect() powerState: POWER_STATE_INUSE
> 00000099 prothandler.c:87:PHSetProtocol() Attempting PTS to T=0
> 00000014 ifdhandler.c:668:IFDHSetProtocolParameters() protocol T=0,
> usb:0bda/0169:libudev:0:/dev/bus/usb/001/008 (lun: 0)
> 00000016 ifdhandler.c:792:IFDHSetProtocolParameters() Set speed to 117187
> bauds
> 00000010 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=0
> 00000012 PPS: Sending request: FF 10 95 7A
> 00000022 -> 000000 6F 04 00 00 00 00 07 00 00 00 FF 10 95 7A
> 01005154 <- 000000 80 00 00 00 00 00 07 40 FE 00
> 00000145 commands.c:1413:CCID_Receive Card absent or mute
> 00000012 ifdhandler.c:895:IFDHSetProtocolParameters() PPS_Exchange Failed
> 00000011 prothandler.c:103:PHSetProtocol() PTS failed (605), using T=0
> 00000014 winscard.c:490:SCardConnect() UnrefReader() count was: 2
>
> somehow the card has some problem it will not send "FF 10 95 7A" back to the
> reader.
> So, pcscd did not trigger "power save feature"  IE:  it did not power down
> the card/reader.
>
> the reader i used
>
>  Generic USB2.0-CRW [Smart Card Reader Interface]
>
> So my question is, is it a bug for pcscd/libccid or it is design.

It looks like the power safe only works when the card+reader works correctly.

It looks like a bug in your reader. Can you try with another reader model?

Bye

-- 
 Dr. Ludovic Rousseau




More information about the pcsclite-muscle mailing list