Hi all,
 
I have this problem. When the reader is inserted, and pcscd is started. Everything work fine when I tried to
established a context with PCSCD my client application.
 
However, when I accidentally removed the reader out from my PCMCIA slot, and insert it back again, pcscd is unable to
communicate with the reader anymore. So I tried re-starting the PCSCd. But then, it indicates RFInitializeReader: Open Port 1 Failed,
RFUnloadReader: Unloading reader driver, RFAddReader: GEMPC400 init failed.
 
Is there anyway for the PCSCD to re-establish comm with the reader. It appears that something is using gpr400_cs module after the reader is removed. Is there anyway to find out ?
 
I have attached the debug print below. Please advice.
 
Thank you.
Paul

 
pcscdaemon.c:258 main: debug messages to stdout
pcscdaemon.c:238 main: using new config file: /etc/reader.conf
readerfactory.c:1317 RFInitializeReader: Attempting startup of GEMPC400 0 0.
readerfactory.c:1060 RFBindFunctions: Loading IFD Handler 2.0
IFDHCreateChannel:
IFDHGetCapabilities:
pcscdaemon.c:413 main: pcsc-lite daemon ready.
hotplug_linux.c:108 Cannot open PC/SC drivers directory.
hotplug_linux.c:109 Disabling USB support for pcscd.
 
winscard_msg.c:263 SHMProcessEvents: Common channel packet arrival
winscard.c:76 SCardEstablishContext: Establishing Context: 16980437
IFDHPowerICC: power up
eventhandler.c:467 EHSpawnEventHandler: Card inserted into GEMPC400 0 0
EHSpawnEventHandler: Card ATR: 3F 6D 00 00 80 31 80 65 B0 05 01 02 5E 83 00 90 00
eventhandler.c:379 EHSpawnEventHandler: Card Removed From GEMPC400 0 0
IFDHPowerICC: power up
eventhandler.c:467 EHSpawnEventHandler: Card inserted into GEMPC400 0 0
EHSpawnEventHandler: Card ATR: 3F 6D 00 00 80 31 80 65 B0 05 01 02 5E 83 00 90 00
eventhandler.c:379 EHSpawnEventHandler: Card Removed From GEMPC400 0 0
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
pcscdaemon.c:470 Preparing for suicide
winscard_msg.c:247 SHMProcessEvents: Select returns with failure: Interrupted system call
pcscdaemon.c:174 SVCServiceRun: Error in SHMProcessEvents
readerfactory.c:1610 RFCleanupReaders: entering cleaning function
readerfactory.c:1615 Stopping reader: GEMPC400 0 0
eventhandler.c:117 EHDestroyEventHandler: Stomping thread.
eventhandler.c:318 EHSpawnEventHandler: Error communicating to: GEMPC400 0 0
eventhandler.c:142 EHDestroyEventHandler: Thread stomped.
readerfactory.c:1367 RFUninitializeReader: Attempting shutdown of GEMPC400 0 0.
IFDHCloseChannel:
readerfactory.c:1190 RFUnloadReader: Unloading reader driver.
pcscdaemon.c:438 at_exit: cleaning /tmp/pcsc
[root@YOYO root]# sh startPCSCD.sh
pcscdaemon.c:258 main: debug messages to stdout
pcscdaemon.c:238 main: using new config file: /etc/reader.conf
readerfactory.c:1317 RFInitializeReader: Attempting startup of GEMPC400 0 0.
readerfactory.c:1060 RFBindFunctions: Loading IFD Handler 2.0
IFDHCreateChannel:
readerfactory.c:1354 RFInitializeReader: Open Port 1 Failed
readerfactory.c:1190 RFUnloadReader: Unloading reader driver.
readerfactory.c:219 RFAddReader: GEMPC400 init failed.
pcscdaemon.c:413 main: pcsc-lite daemon ready.
hotplug_linux.c:108 Cannot open PC/SC drivers directory.
hotplug_linux.c:109 Disabling USB support for pcscd.
pcscdaemon.c:470 Preparing for suicide
winscard_msg.c:247 SHMProcessEvents: Select returns with failure: Interrupted system call
pcscdaemon.c:174 SVCServiceRun: Error in SHMProcessEvents
readerfactory.c:1610 RFCleanupReaders: entering cleaning function
pcscdaemon.c:438 at_exit: cleaning /tmp/pcsc
 

Reply via email to