[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
[36m00000013[0m [34mpcscdaemon.c:351:main() Force colored logs[0m
[36m00000099[0m configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
[36m00000008[0m [34mpcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready.[0m
[36m00016134[0m [34mhotplug_libusb.c:536:HPAddHotPluggable() Adding USB device: 1:3:0[0m
[36m00000560[0m [34mreaderfactory.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[0m
[36m00000091[0m [34mreaderfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0[0m
[36m00000017[0m [34mifdhandler.c:1961:init_driver() Driver version: 1.4.26[0m
[36m00000485[0m [34mifdhandler.c:1978:init_driver() LogLevel: 0x0003[0m
[36m00000005[0m [34mifdhandler.c:1989:init_driver() DriverOptions: 0x0000[0m
[36m00000150[0m [34mifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F[0m
[36m00000004[0m [34mifdhandler.c:111:CreateChannelByNameOrChannel() Lun: 0, device: usb:0424/1104:libusb-1.0:1:3:0[0m
[36m00000004[0m ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:0424/1104:libusb-1.0:1:3:0
[36m00000004[0m [34mccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist[0m
[36m00000466[0m [34mccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)[0m
[36m00000004[0m [34mccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver[0m
[36m00000002[0m [34mccid_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.[0m
[36m00000832[0m ccid_usb.c:391:OpenUSBByName() Try device: 2/1
[36m00000004[0m ccid_usb.c:401:OpenUSBByName() vid/pid : 1D6B/0003
[36m00000001[0m ccid_usb.c:391:OpenUSBByName() Try device: 1/6
[36m00000002[0m ccid_usb.c:401:OpenUSBByName() vid/pid : 0BDA/0129
[36m00000001[0m ccid_usb.c:391:OpenUSBByName() Try device: 1/4
[36m00000001[0m ccid_usb.c:401:OpenUSBByName() vid/pid : 04F2/B483
[36m00000001[0m ccid_usb.c:391:OpenUSBByName() Try device: 1/3
[36m00000001[0m ccid_usb.c:401:OpenUSBByName() vid/pid : 0424/1104
[36m00000001[0m ccid_usb.c:448:OpenUSBByName() Checking device: 1/3
[36m00000001[0m ccid_usb.c:519:OpenUSBByName() Trying to open USB bus/device: 1/3
[36m00000039[0m [34mccid_usb.c:621:OpenUSBByName() Found Vendor/Product: 0424/1104 (USX101x SmartCard Reader)[0m
[36m00000004[0m [34mccid_usb.c:623:OpenUSBByName() Using USB bus/device: 1/3[0m
[36m00000002[0m [34mccid_usb.c:680:OpenUSBByName() bNumDataRatesSupported is 0[0m
[36m00001156[0m ccid_usb.c:1244:InterruptRead() before (0)
[36m00100136[0m ccid_usb.c:1290:InterruptRead() after (0) (2)
[36m00000013[0m -> 000000 65 00 00 00 00 00 00 00 00 00
[36m00000267[0m <- 000000 81 00 00 00 00 00 00 01 00 01
[36m00000008[0m -> 000000 65 00 00 00 00 00 01 00 00 00
[36m00000285[0m <- 000000 81 00 00 00 00 00 01 01 00 01
[36m00000012[0m [34mifdhandler.c:382:IFDHGetCapabilities() tag: 0xFB3, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)[0m
[36m00000002[0m [34mreaderfactory.c:395:RFAddReader() Using the reader polling thread[0m
[36m00000002[0m ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 02 00 00 00
[36m00000290[0m <- 000000 81 00 00 00 00 00 02 01 00 01
[36m00000009[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000197[0m [34mifdhandler.c:382:IFDHGetCapabilities() tag: 0xFAE, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)[0m
[36m00000004[0m [34mifdhandler.c:473:IFDHGetCapabilities() Reader supports 1 slot(s)[0m
[36m00000009[0m ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
[36m00000006[0m -> 000000 65 00 00 00 00 00 03 00 00 00
[36m00000072[0m [34mhotplug_libusb.c:440:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.[0m
[36m00000004[0m [34mhotplug_libusb.c:449:HPEstablishUSBNotifications() Polling forced every 1 second(s)[0m
[36m00000011[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00000222[0m <- 000000 81 00 00 00 00 00 03 01 00 01
[36m00000006[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000013[0m ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 04 00 00 00
[36m00000270[0m <- 000000 81 00 00 00 00 00 04 01 00 01
[36m00000013[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000003[0m [34mifdhandler.c:1154:IFDHPowerICC() action: PowerUp, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)[0m
[36m00000012[0m -> 000000 62 00 00 00 00 00 05 01 00 00
[36m00009529[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010103[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010113[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010114[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010148[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010084[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010162[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010150[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00010097[0m readerfactory.c:1420:RFWaitForReaderInit() Waiting init for reader: USX101x SmartCard Reader (530C366B) 00 00
[36m00001829[0m <- 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
[36m00000030[0m eventhandler.c:286:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
[36m00000008[0m [34mCard ATR: 3B 9F 96 81 31 FE 45 80 65 54 43 12 21 08 31 C0 73 F6 21 80 81 05 9A [0m
[36m00000008[0m ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
[36m00000009[0m -> 000000 65 00 00 00 00 00 06 00 00 00
[36m00000308[0m <- 000000 81 00 00 00 00 00 06 00 00 00
[36m00000020[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000007[0m [34mifdhandler.c:311:IFDHPolling() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0) 5000 ms[0m
[36m00000005[0m ccid_usb.c:1244:InterruptRead() before (0)
[36m05000202[0m ccid_usb.c:1290:InterruptRead() after (0) (2)
[36m00000013[0m ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
[36m00000004[0m -> 000000 65 00 00 00 00 00 07 00 00 00
[36m00000302[0m <- 000000 81 00 00 00 00 00 07 00 00 00
[36m00000007[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000003[0m [34mifdhandler.c:1154:IFDHPowerICC() action: PowerDown, usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)[0m
[36m00000003[0m -> 000000 63 00 00 00 00 00 08 00 00 00
[36m00011470[0m <- 000000 81 00 00 00 00 00 08 01 00 01
[36m00000010[0m eventhandler.c:479:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
[36m00000003[0m ifdhandler.c:1821:IFDHICCPresence() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 09 00 00 00
[36m00000279[0m <- 000000 81 00 00 00 00 00 09 01 00 01
[36m00000007[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000003[0m [34mifdhandler.c:311:IFDHPolling() usb:0424/1104:libusb-1.0:1:3:0 (lun: 0) 600000 ms[0m
More information about the pcsclite-muscle
mailing list