Hi,
OK, I solved the error. It was a misconfiguration. If the reader-driver is 
somewere else than in /usr/local/pcsc/drivers... (even if I configure the 
differend directory correctly in /etc/reader.conf), pcscd will produce those 
errors wehn I disconnect the reader from USB.
However pcscd keeps acting somehow strange:

If the reader is unplugged and I start pcscd, all is working fine. I can plug 
and unplug the reader how often I want to. But when the reader is already 
connected to USB and I start pcscd, it will search a reader whose friendly 
name is nowhere in any reader.config. However i can access the card unsing 
pcsc_demo. But when i unplug the reader, I got same problem:

Description:
[--- reader plugged into USB]

linuxdt11:/ # pcscd --apdu --foreground
debuglog.c:188 Debug options: APDU
pcscdaemon.c:251 main: pcscd set to foreground
readerfactory.c:1391 RFInitializeReader: Attempting startup of acr30u-cfc 0 0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
pcscdaemon.c:445 main: pcsc-lite daemon ready.
hotplug_libusb.c:344 Adding USB device: 004:015
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
Conv 01, Y1 0B, K 0E
T's 11 00 FFFFFFFF 00
P 05
T=0 Protocol Found
Conv 01, Y1 0B, K 0E
T's 11 00 FFFFFFFF 00
P 05
T=0 Protocol Found
hotplug_libusb.c:344 Adding USB device: 004:015
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
hotplug_libusb.c:344 Adding USB device: 004:015
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.

[Here, I unpluged reader from USB]

eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.

(...)
[... error messages repeating till ^C]

readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0

[Here I used ^C]

pcscdaemon.c:502 Preparing for suicide
winscard_msg.c:235 SHMProcessEvents: Select returns with failure: Interrupted 
system call
pcscdaemon.c:179 SVCServiceRun: Error in SHMProcessEvents
readerfactory.c:1683 RFCleanupReaders: entering cleaning function
readerfactory.c:1688 Stopping reader: acr30u-cfc 0 0
eventhandler.c:123 EHDestroyEventHandler: Stomping thread.
eventhandler.c:319 EHSpawnEventHandler: Error communicating to: acr30u-cfc 0 0
hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS
readerfactory.c:1428 RFInitializeReader: Open Port 200000 Failed
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
readerfactory.c:245 RFAddReader: ACS ACR 30u init failed.
eventhandler.c:150 EHDestroyEventHandler: Thread stomped.
readerfactory.c:1441 RFUninitializeReader: Attempting shutdown of acr30u-cfc 0 
0.
readerfactory.c:1263 RFUnloadReader: Unloading reader driver.
pcscdaemon.c:468 at_exit: cleaning /var/run
linuxdt11:/ # hotplug_libusb.c:344 Adding USB device: 004:016
readerfactory.c:1391 RFInitializeReader: Attempting startup of ACS ACR 30u 0 
0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0
Create ACS

---
pcsc_demo on another terminal while pcscd is running and flooding errors

linuxdt11:~> pcsc_demo
PC/SC sample code
V 1.0 2003, Ludovic Rousseau <[EMAIL PROTECTED]>
0: acr30u-cfc 0 0
 Protocol: 0
SCardConnect: Reader/s is unavailable. (0x80100017)
linuxdt11:~>
---

/etc/reader.conf:

# Configuration file for pcsc-lite
# David Corcoran <[EMAIL PROTECTED]


FRIENDLYNAME     "acr30u-cfc"
DEVICENAME       GEN_SMART_RDR
LIBPATH          /usr/local/pcsc/drivers/acsAcr30.bundle/Contents/Linux/
acsAcr30
CHANNELID        0x000001


# End of file
---
Is there a workaround to solve this? I would like to run pcscd from startup if 
a reader is presend or not.
TIA

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to