Here it is the pcsd 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?
Fabrice DIMITRIOU
Ingénieur logiciel Responsable SI
__________________________________
TMM Software
525 Avenue André Malraux
07500 Guilherand Granges - France
Tél. +33 (0)4 75 61 44 48
[email protected]
www.tmm-software.com
-----Message d'origine-----
De : Muscle [mailto:[email protected]] De la part de
Ludovic Rousseau
Envoyé : vendredi 29 mars 2013 15:55
À : MUSCLE
Objet : Re: [Muscle] CPS card blocking with PCSC
2013/3/29 Fabrice Dimitriou <[email protected]>
> Hi,
Hello,
> I have a blocking case while trying to access a CPS card through PCSC with
a TSE session.
>
> Commands are successfully processed until the PIN presentation to the
card: the last SCardConnect command is interrupted while sending and stays
blocked forever.
>
> Here follows, the pcsc_spy log:
That is a good idea to use the pcsc_spy log. You are the first one to do
that.
> As you can see, the sending of SCardConnect is interrupted and nothing
else happens!
I do not see any interruption. SCardConnec() do not return but is not
interrupted.
> Any idea?
What is the pcscd log?
http://pcsclite.alioth.debian.org/pcsclite.html#support
Bye
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com