[Pcsclite-muscle] SCardConnect() returns unresponsive card

Gökçenur CANLI gokcenur.canli
Thu May 18 01:54:22 PDT 2017


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) 
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./*

*/Regards.
Gokce/*.*////*
*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20170518/b98e363d/attachment-0001.html>
-------------- next part --------------
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000012 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000013 pcscdaemon.c:351:main() Force colored logs
00000099 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000008 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready.
00016134 hotplug_libusb.c:536:HPAddHotPluggable() Adding USB device: 1:3:0
00000560 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
00000091 readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0
00000017 ifdhandler.c:1961:init_driver() Driver version: 1.4.26
00000485 ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000005 ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00000150 ifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000004 ifdhandler.c:111:CreateChannelByNameOrChannel() Lun: 0, device: usb:0424/1104:libusb-1.0:1:3:0
00000004 ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:0424/1104:libusb-1.0:1:3:0
00000004 ccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000466 ccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)
00000004 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.
00000832 ccid_usb.c:391:OpenUSBByName() Try device: 2/1
00000004 ccid_usb.c:401:OpenUSBByName() vid/pid : 1D6B/0003
00000001 ccid_usb.c:391:OpenUSBByName() Try device: 1/6
00000002 ccid_usb.c:401:OpenUSBByName() vid/pid : 0BDA/0129
00000001 ccid_usb.c:391:OpenUSBByName() Try device: 1/4
00000001 ccid_usb.c:401:OpenUSBByName() vid/pid : 04F2/B483
00000001 ccid_usb.c:391:OpenUSBByName() Try device: 1/3
00000001 ccid_usb.c:401:OpenUSBByName() vid/pid : 0424/1104
00000001 ccid_usb.c:448:OpenUSBByName() Checking device: 1/3
00000001 ccid_usb.c:519:OpenUSBByName() Trying to open USB bus/device: 1/3
00000039 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
00000002 ccid_usb.c:680:OpenUSBByName() bNumDataRatesSupported is 0
00001156 ccid_usb.c:1244:InterruptRead() before (0)
00100136 ccid_usb.c:1290:InterruptRead() after (0) (2)
00000013 -> 000000 65 00 00 00 00 00 00 00 00 00 
00000267 <- 000000 81 00 00 00 00 00 00 01 00 01 
00000008 -> 000000 65 00 00 00 00 00 01 00 00 00 
00000285 <- 000000 81 00 00 00 00 00 01 01 00 01 
00000012 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFB3, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000002 readerfactory.c:395:RFAddReader() Using the reader polling thread
00000002 ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 02 00 00 00 
00000290 <- 000000 81 00 00 00 00 00 02 01 00 01 
00000009 ifdhandler.c:1942:IFDHICCPresence() Card present
00000197 ifdhandler.c:382:IFDHGetCapabilities() tag: 0xFAE, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000004 ifdhandler.c:473:IFDHGetCapabilities() Reader supports 1 slot(s)
00000009 ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000006 -> 000000 65 00 00 00 00 00 03 00 00 00 
00000072 hotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000004 hotplug_libusb.c:449:HPEstablishUSBNotifications() Polling forced every 1 second(s)
00000011 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00000222 <- 000000 81 00 00 00 00 00 03 01 00 01 
00000006 ifdhandler.c:1942:IFDHICCPresence() Card present
00000013 ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 04 00 00 00 
00000270 <- 000000 81 00 00 00 00 00 04 01 00 01 
00000013 ifdhandler.c:1942:IFDHICCPresence() Card present
00000003 ifdhandler.c:1154:IFDHPowerICC() action: PowerUp, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000012 -> 000000 62 00 00 00 00 00 05 01 00 00 
00009529 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010103 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010113 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010114 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010148 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010084 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00010162 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
00010097 readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
00001829 <- 000000 80 17 00 00 00 00 05 00 00 00 3B 9F 96 81 31 FE 45 80 65 54 43 12 21 08 31 C0 73 F6 21 80 81 05 9A 
00000030 eventhandler.c:286:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000008 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 
00000008 ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000009 -> 000000 65 00 00 00 00 00 06 00 00 00 
00000308 <- 000000 81 00 00 00 00 00 06 00 00 00 
00000020 ifdhandler.c:1942:IFDHICCPresence() Card present
00000007 ifdhandler.c:311:IFDHPolling() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0) 5000 ms
00000005 ccid_usb.c:1244:InterruptRead() before (0)
05000202 ccid_usb.c:1290:InterruptRead() after (0) (2)
00000013 ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000004 -> 000000 65 00 00 00 00 00 07 00 00 00 
00000302 <- 000000 81 00 00 00 00 00 07 00 00 00 
00000007 ifdhandler.c:1942:IFDHICCPresence() Card present
00000003 ifdhandler.c:1154:IFDHPowerICC() action: PowerDown, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000003 -> 000000 63 00 00 00 00 00 08 00 00 00 
00011470 <- 000000 81 00 00 00 00 00 08 01 00 01 
00000010 eventhandler.c:479:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
00000003 ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 09 00 00 00 
00000279 <- 000000 81 00 00 00 00 00 09 01 00 01 
00000007 ifdhandler.c:1942:IFDHICCPresence() Card present
00000003 ifdhandler.c:311:IFDHPolling() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0) 600000 ms



More information about the pcsclite-muscle mailing list