Hi Patrick,
> In attachment you'll find a small application that raises the problem. When I
> run it with the PCSClite V1.2.9-beta1, the SCardTransmit never returns.
I have tried your small application and I have any problem. I have used 1 SCR331
and the generic CCID driver on a slackware with kernel 2.4.26 and gcc 2.95.3.
In attachment, you will find my log.
I guess that there is a bug in your system: perhaps in pthread, perhaps in the
mutex ...
> Otherwise, here is what I use:
> PCSClite V 1.2.9-beta1
> CCID-0.4.1
> libc-2.3.2.so
> gcc 3.3.3
> kernel 2.6.6-rc3 preempt
> Intel Pentium III 800Mhz
> SCM 331 (3 of them are currently hooked up)
Regards,
--
Damien Sauveron
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
PC/SC Lite version:
[EMAIL PROTECTED]:~# /usr/local/pcsc/sbin/pcscd -v
pcsc-lite version 1.2.9-beta1.
Copyright (C) 1999-2002 by David Corcoran <[EMAIL PROTECTED]>.
Copyright (C) 2001-2004 by Ludovic Rousseau <[EMAIL PROTECTED]>.
Copyright (C) 2003-2004 by Damien Sauveron <[EMAIL PROTECTED]>.
Report bugs to <[EMAIL PROTECTED]>.
PC/SC Lite daemon output:
[EMAIL PROTECTED]:~# /usr/local/pcsc/sbin/pcscd -a -f -c /etc/reader.NoReaders
pcscdaemon.c:239:main pcscd set to foreground with debug send to stderr
pcscdaemon.c:231:main using new config file: /etc/reader.NoReaders
pcscdaemon.c:441:main pcsc-lite daemon ready.
hotplug_libusb.c:350:HPAddHotPluggable Adding USB device: 001:005
readerfactory.c:1318:RFInitializeReader Attempting startup of SCR 331 00 00.
readerfactory.c:1077:RFBindFunctions Loading IFD Handler 3.0
ifdhandler.c:50:IFDHCreateChannelByName lun: 0, device: usb:04e6/e001:libusb:001:005
ccid_usb.c:156:OpenUSBByName Manufacturer: Ludovic Rousseau ([EMAIL PROTECTED])
ccid_usb.c:164:OpenUSBByName ProductString: Generic CCID reader v0.4.1
ccid_usb.c:168:OpenUSBByName Copyright: This driver is protected by terms of the GNU
General Public License version 2, or (at your option) any later version.
ccid_usb.c:279:OpenUSBByName Found Vendor/Product: 04E6/E001 (SCR 331)
ccid_usb.c:281:OpenUSBByName Using USB bus/device: 001/005
ifdhandler.c:209:IFDHGetCapabilities lun: 0, tag: FAE
ifdhandler.c:365:IFDHPowerICC lun: 0
winscard_msg.c:192:SHMProcessEventsServer Common channel packet arrival
winscard_msg.c:199:SHMProcessEventsServer SHMProcessCommonChannelRequest detects: 9
pcscdaemon.c:137:SVCServiceRunLoop A new context thread creation is requested: 9
winscard_svc.c:102:ContextThread Thread is started: 9
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard_svc.c:142:ContextThread Client is protocol version 2:0
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:75:SCardEstablishContext Establishing Context: 17002909
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:143:SCardConnect Attempting Connect to SCR 331 00 00
Card ATR: 3B E6 00 FF 81 31 FE 45 4A 43 4F 50 33 31 06
winscard.c:241:SCardConnect Active Protocol: 2
winscard.c:248:SCardConnect hCard Identity: 14312
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:1440:SCardTransmit Send Protocol: 1
APDU: 00 A4 04 00 07 A0 00 00 00 03 00 00 00
ifdhandler.c:466:IFDHTransmitToICC lun: 0
SW: 6F 19 84 08 A0 00 00 00 03 00 00 00 A5 0D 9F 6E 06 40 51 23 53 31 16 9F 65 01 FF
90 00
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:1440:SCardTransmit Send Protocol: 1
APDU: 00 A4 04 00 07 A0 00 00 00 03 00 00 00
ifdhandler.c:466:IFDHTransmitToICC lun: 0
SW: 6F 19 84 08 A0 00 00 00 03 00 00 00 A5 0D 9F 6E 06 40 51 23 53 31 16 9F 65 01 FF
90 00
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:1440:SCardTransmit Send Protocol: 1
APDU: 00 A4 04 00 07 A0 00 00 00 03 00 00 00
ifdhandler.c:466:IFDHTransmitToICC lun: 0
SW: 6F 19 84 08 A0 00 00 00 03 00 00 00 A5 0D 9F 6E 06 40 51 23 53 31 16 9F 65 01 FF
90 00
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:1440:SCardTransmit Send Protocol: 1
APDU: 00 A4 04 00 07 A0 00 00 00 03 00 00 00
ifdhandler.c:466:IFDHTransmitToICC lun: 0
SW: 6F 19 84 08 A0 00 00 00 03 00 00 00 A5 0D 9F 6E 06 40 51 23 53 31 16 9F 65 01 FF
90 00
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:1440:SCardTransmit Send Protocol: 1
APDU: 00 A4 04 00 07 A0 00 00 00 03 00 00 00
ifdhandler.c:466:IFDHTransmitToICC lun: 0
SW: 6F 19 84 08 A0 00 00 00 03 00 00 00 A5 0D 9F 6E 06 40 51 23 53 31 16 9F 65 01 FF
90 00
winscard_msg.c:253:SHMProcessEventsContext correctly processed client: 9
winscard.c:1440:SCardTransmit Send Protocol: 1
APDU: 00 A4 04 00 07 A0 00 00 00 03 00 00 00
ifdhandler.c:466:IFDHTransmitToICC lun: 0
SW: 6F 19 84 08 A0 00 00 00 03 00 00 00 A5 0D 9F 6E 06 40 51 23 53 31 16 9F 65 01 FF
90 00
winscard_msg.c:242:SHMProcessEventsContext Client has disappeared: 9
[...]
The ouput of pcsc_bug:
[EMAIL PROTECTED]:~/tmp/PCSCBug/pcsc-bug$ pcsc_bug
Create a context
Connect the reader
Fork a thread
Before SCardGetStatusChange
Before SCardTransmit
After SCardGetStatusChange: 00000010
Before SCardGetStatusChange
After SCardTransmit
Before SCardTransmit
After SCardGetStatusChange: 00000010
Before SCardGetStatusChange
After SCardTransmit
Before SCardTransmit
After SCardGetStatusChange: 00000010
Before SCardGetStatusChange
After SCardTransmit
Before SCardTransmit
After SCardGetStatusChange: 00000010
Before SCardGetStatusChange
After SCardTransmit
Before SCardTransmit
After SCardGetStatusChange: 00000010
Before SCardGetStatusChange
After SCardTransmit
Before SCardTransmit
After SCardGetStatusChange: 00000010
Before SCardGetStatusChange
After SCardTransmit
Before SCardTransmit
[...]
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle