2013/3/29 Fabrice Dimitriou <[email protected]>:
> Here it is the pcsd log:
Incomplete log.
> 00000070 winscard.c:1057:SCardBeginTransaction() Status: 0x00000000
> 00001355 winscard_msg_srv.c:317:SHMProcessEventsContext() command GET_ATTRIB
> received by client 12
> 00145492 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> END_TRANSACTION received by client 12
> 00000108 winscard.c:1208:SCardEndTransaction() Status: 0x00000000
> 00009304 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel
> packet arrival
> 00000117 winscard_msg_srv.c:248:SHMProcessEventsServer()
> SHMProcessCommonChannelRequest detects: 14
> 00000042 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation
> is requested: 14
> 00000132 winscard_svc.c:133:ContextThread() Thread is started: 14
> 00000098 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> CMD_VERSION received by client 14
> 00000056 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
> 00000294 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> ESTABLISH_CONTEXT received by client 14
> 00000118 winscard.c:242:SCardEstablishContext() Establishing Context:
> 17031666
> 00001527 winscard_msg_srv.c:317:SHMProcessEventsContext() command CONNECT
> received by client 14
> 00000066 winscard.c:303:SCardConnect() Attempting Connect to CASTLES EZ100PU
> 00 00 using protocol: 3
> 00000040 winscard.c:340:SCardConnect() Waiting for release of lock
>
> In winscard.c source code, it refers to:
>
> if (rContext->hLockId != 0)
> {
> Log1(PCSC_LOG_INFO, "Waiting for release of lock");
> while (rContext->hLockId != 0)
> (void)SYS_USleep(PCSCLITE_LOCK_POLL_RATE);
> Log1(PCSC_LOG_INFO, "Lock released");
> }
>
> Which is a endless loop !!!!
>
> How can get out from this loop?
Another thread or another application is using the reader in exclusive
mode or using a PCSC transaction.
Send a FULL pcsc-spy log please.
Bye
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com