[Pcsclite-muscle] SCardConnect() returns unresponsive card

Gökçenur CANLI gokcenur.canli
Thu May 18 03:10:49 PDT 2017


Hello,

I executed my program and reproduced problem again. New log file is 
attached.

Regards.

On 18-05-2017 12:03, Ludovic Rousseau wrote:
> 2017-05-18 10:54 GMT+02:00 G?k?enur CANLI <gokcenur.canli at udea.com.tr 
> <mailto:gokcenur.canli at udea.com.tr>>:
>
>     Hello,
>
>
> Hello,
>
>
>     I am use PCSC-lite 1.8.20, ccid 1.4.26 for Microchip SEC1110 smart
>     card reader.
>     I used your sample C code
>     (https://ludovicrousseau.blogspot.com.tr/2010/04/pcsc-sample-in-c.html
>     <https://ludovicrousseau.blogspot.com.tr/2010/04/pcsc-sample-in-c.html>)
>     and I have a problem on SCardConnect(). Sometimes connection is
>     successful. However, generally SCardConnect() returns "Card is
>     unresponsive".
>
>     Operating system: Ubuntu 14.04.5
>     log.txt is attached.
>
>     Any suggestion or information will be appreciated./**/
>
>
> From your log file the card is responding correctly.
> But you have not executed your program so I can't find any error in it.
>
> Please generate a new log file and reproduce the problem so usable 
> error trace is present in the log file.
>
> Bye
>
> -- 
>  Dr. Ludovic Rousseau
>
>
> _______________________________________________
> Pcsclite-muscle mailing list
> Pcsclite-muscle at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

-- 
*G?k?enur CANLI*
/Ar-Ge M?hendisi
/UDEA Elektronik A.?. ODT? Teknokent
G?m?? Bloklar K1-3 Ofis Alan?
?ankaya/ANKARA
Tel : + 90 (312) 210 19 82
Fax: +90 (312) 210 19 97
//
Signature <http://www.udea.com.tr>//
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20170518/1fe3e7b2/attachment-0001.html>
-------------- next part --------------
00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout
00000070 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000007 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready.
00001910 hotplug_libusb.c:536:HPAddHotPluggable() Adding USB device: 1:3:0
00000708 readerfactory.c:1079:RFInitializeReader() Attempting startup of USX101x SmartCard Reader (530C366B) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000156 readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0
00000016 ifdhandler.c:1961:init_driver() Driver version: 1.4.26
00000501 ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000005 ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00000170 ifdhandler.c:111:CreateChannelByNameOrChannel() Lun: 0, device: usb:0424/1104:libusb-1.0:1:3:0
00000009 ccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000481 ccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)
00000003 ccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver
00000002 ccid_usb.c:307:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00000889 ccid_usb.c:621:OpenUSBByName() Found Vendor/Product: 0424/1104 (USX101x SmartCard Reader)
00000004 ccid_usb.c:623:OpenUSBByName() Using USB bus/device: 1/3
00000001 ccid_usb.c:680:OpenUSBByName() bNumDataRatesSupported is 0
00101951 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFB3, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000010 readerfactory.c:395:RFAddReader() Using the reader polling thread
00000312 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFAE, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000006 ifdhandler.c:473:IFDHGetCapabilities() Reader supports 1 slot(s)
00000073 hotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000003 hotplug_libusb.c:449:HPEstablishUSBNotifications() Polling forced every 1 second(s)
00000015 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00000507 ifdhandler.c:1154:IFDHPowerICC() action: PowerUp, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00009637 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010150 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010188 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010297 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010158 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010147 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010274 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010200 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010142 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00001074 eventhandler.c:286:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000016 Card ATR: 3B 9F 96 81 31 FE 45 80 65 54 43 12 21 08 31 C0 73 F6 21 80 81 05 9A 
04180307 winscard_msg_srv.c:251:ProcessEventsServer() Common channel packet arrival
00000019 winscard_msg_srv.c:263:ProcessEventsServer() ProcessCommonChannelRequest detects: 7
00000002 pcscdaemon.c:132:SVCServiceRunLoop() A new context thread creation is requested: 7
00000044 winscard_svc.c:337:ContextThread() Authorized PC/SC client
00000005 winscard_svc.c:341:ContextThread() Thread is started: dwClientID=7, threadContext @0x18b7030
00000005 winscard_svc.c:359:ContextThread() Received command: CMD_VERSION from client 7
00000004 winscard_svc.c:371:ContextThread() Client is protocol version 4:3
00000002 winscard_svc.c:391:ContextThread() CMD_VERSION rv=0x0 for client 7
00000030 winscard_svc.c:359:ContextThread() Received command: ESTABLISH_CONTEXT from client 7
00000006 winscard.c:215:SCardEstablishContext() Establishing Context: 0x687E3C59
00000002 winscard_svc.c:455:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7
00000036 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
00000053 winscard_svc.c:359:ContextThread() Received command: CONNECT from client 7
00000008 winscard_svc.c:493:ContextThread() Authorized client for 'USX101x SmartCard Reader (530C366B) 00 00'
00000003 winscard.c:256:SCardConnect() Attempting Connect to USX101x SmartCard Reader (530C366B) 00 00 using protocol: 3
00000002 readerfactory.c:825:RFReaderInfo() RefReader() count was: 1
00000002 winscard.c:349:SCardConnect() powerState: POWER_STATE_INUSE
00000006 ATR: 3B 9F 96 81 31 FE 45 80 65 54 43 12 21 08 31 C0 73 F6 21 80 81 05 9A 
00000003 atrhandler.c:124:ATRDecodeAtr() TA1: 96, TB1: FFFFFFFF, TC1: FFFFFFFF, TD1: 81
00000002 atrhandler.c:154:ATRDecodeAtr() T=1 Protocol Found
00000003 atrhandler.c:124:ATRDecodeAtr() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 31
00000001 atrhandler.c:154:ATRDecodeAtr() T=1 Protocol Found
00000003 atrhandler.c:124:ATRDecodeAtr() TA3: FE, TB3: 45, TC3: FFFFFFFF, TD3: FFFFFFFF
00000002 atrhandler.c:222:ATRDecodeAtr() CurrentProtocol: 2, AvailableProtocols: 2
00000002 prothandler.c:108:PHSetProtocol() Attempting PTS to T=1
00000003 ifdhandler.c:692:IFDHSetProtocolParameters() protocol T=1, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00019824 prothandler.c:124:PHSetProtocol() PTS failed (612), using T=1
00000011 winscard.c:517:SCardConnect() UnrefReader() count was: 2
00000003 winscard_svc.c:507:ContextThread() CONNECT rv=0x80100066 for client 7
02403882 winscard_svc.c:359:ContextThread() Received command: RELEASE_CONTEXT from client 7
00000009 winscard.c:226:SCardReleaseContext() Releasing Context: 0x687E3C59
00000003 winscard_svc.c:470:ContextThread() RELEASE_CONTEXT rv=0x0 for client 7
00000021 winscard_svc.c:351:ContextThread() Client die: 7
00000011 winscard_svc.c:1013:MSGCleanupClient() Thread is stopping: dwClientID=7, threadContext @0x18b7030
00000002 winscard_svc.c:1019:MSGCleanupClient() Freeing SCONTEXT @0x18b7030



More information about the pcsclite-muscle mailing list