[Pcsclite-muscle] hang when calling SCardConnect()

Allen Curtis allen at criticalsoftwaresolutions.com
Thu Apr 6 18:04:51 PDT 2023


Below is debug output from PCSCD and my application. When the program
detects that a card is "present", the program attempts to open a
connection to the card. However this hangs and reports
POWER_STATE_UNPOWERED after a few seconds. The code is from the
example in the pcscd documentation directory.

Thoughts?


Monitor: ACS ACR1252 1S CL Reader [ACR1252 Dual Reader PICC] 00 00
00000179 [139765936543296] winscard_svc.c:361:ContextThread() Received
command: CMD_WAIT_READER_STATE_CHANGE from client 13
00000033 [139765936543296] winscard_svc.c:840:MSGSendReaderStates()
Send reader states: 13
00000011 [139765936543296] winscard_svc.c:361:ContextThread() Received
command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 13
Status: 0x0012: CHANGED EMPTY
00000002 [139765936543296] winscard_svc.c:442:ContextThread()
CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 13
00000014 [139765936543296] winscard_svc.c:361:ContextThread() Received
command: CMD_WAIT_READER_STATE_CHANGE from client 13
00000003 [139765936543296] winscard_svc.c:840:MSGSendReaderStates()
Send reader states: 13
05520417 [139765953328704] ccid_usb.c:1843:InterruptRead() 3/30: Slot 0: 0x00
00052402 [139765953328704] ifdhandler.c:1407:IFDHPowerICC() action:
PowerUp, usb:072f/223b:libudev:0:/dev/bus/usb/003/030 (lun: 0)
00001159 [139765953328704] eventhandler.c:406:EHStatusHandlerThread()
powerState: POWER_STATE_POWERED
00000023 [139765953328704] eventhandler.c:423:EHStatusHandlerThread()
Card inserted into ACS ACR1252 1S CL Reader [ACR1252 Dual Reader PICC]
00 00
00000010 [139765953328704] winscard_svc.c:828:MSGSignalClient() Signal
client: 13
00000006 [139765953328704] winscard_svc.c:831:MSGSignalClient() SIGNAL
rv=0x0 for client 13
00000019 [139765953328704] Card ATR: 3B 81 80 01 80 80
00000096 [139765936543296] winscard_svc.c:361:ContextThread() Received
command: CMD_WAIT_READER_STATE_CHANGE from client 13
00000015 [139765936543296] winscard_svc.c:840:MSGSendReaderStates()
Send reader states: 13
Status: 0x10022: CHANGED PRESENT
00000127 [139765936543296] winscard_svc.c:361:ContextThread() Received
command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 13
00000018 [139765936543296] winscard_svc.c:442:ContextThread()
CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 13
calling SCardConnect
00000119 [139765936543296] winscard_svc.c:361:ContextThread() Received
command: CMD_WAIT_READER_STATE_CHANGE from client 13
00000015 [139765936543296] winscard_svc.c:840:MSGSendReaderStates()
Send reader states: 13
05001376 [139765953328704] ifdhandler.c:1407:IFDHPowerICC() action:
PowerDown, usb:072f/223b:libudev:0:/dev/bus/usb/003/030 (lun: 0)
00001901 [139765953328704] eventhandler.c:482:EHStatusHandlerThread()
powerState: POWER_STATE_UNPOWERED

-- 
Allen Curtis
Medical Device Architect
Critical Software Solutions, LLC



More information about the pcsclite-muscle mailing list