OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Muscle] ./testpcsc question.

From: Naveen Mukkelli (Naveenworldsmart.com.au)
Date: Tue Apr 12 2005 - 01:27:05 CDT


Hi,

 

I have been trying to figure out why I am getting "RPC transport error"
at "SCardEstablishContext" method call while running "./testpcsc".

But, I couldn't.

 

I am running "pcscd" before I actually run ./testpcsc.

 

I have tried recompiling the testpcsc.c as follows, "gcc -o testpcsc
testpcsc.c -L/usr/local/pcsc/lib -lpcsclite -I. -lpthread" but no luck.

 

When I run "pcscd -f -d stdout"

I've got the following output.

 

[rootautodial pcsc]# pcscd -f -d stdout

pcscdaemon.c:256 main: pcscd set to foreground pcscdaemon.c:270 main:
debug messages to stdout

readerfactory.c:1319 RFInitializeReader: Attempting startup of GemPC
Twin 0 0.

readerfactory.c:1061 RFBindFunctions: Loading IFD Handler 2.0
ifdhandler.c:998:init_driver LogLevel: 0x0003
ifdhandler.c:1009:init_driver DriverOptions: 0x0000
ifdhandler.c:144:IFDHCreateChannel lun: 0
ccid_serial.c:545:OpenSerialByName Set serial port baudrate to 115200
and correct configuration ccid_serial.c:591:OpenSerialByName Firmware:
GemTwin-V2.00-GT00 ifdhandler.c:239:IFDHGetCapabilities lun: 0, tag:
0xFAE

pcscdaemon.c:473 main: pcsc-lite daemon ready.

ifdhandler.c:689:IFDHPowerICC lun: 0

hotplug_linux.c:215 Cannot open USB path directory: /proc/bus/usb

 

<< I have incerted my test card into the card reader >>

 

eventhandler.c:467 EHSpawnEventHandler: Card inserted into GemPC Twin 0
0

EHSpawnEventHandler: Card ATR: 3B FD 11 00 FF 81 31 FE 45 00 31 80 71 8E
64 62 DC 01 00 81 90 00 9C

 

<< I have removed the card from the reader >>

 

eventhandler.c:378 EHSpawnEventHandler: Card Removed From GemPC Twin 0 0
ifdhandler.c:689:IFDHPowerICC lun: 0

eventhandler.c:467 EHSpawnEventHandler: Card inserted into GemPC Twin 0
0

EHSpawnEventHandler: Card ATR: 3B FD 11 00 FF 81 31 FE 45 00 31 80 71 8E
64 62 DC 01 00 81 90 00 9C

eventhandler.c:378 EHSpawnEventHandler: Card Removed From GemPC Twin 0 0
ifdhandler.c:689:IFDHPowerICC lun: 0

eventhandler.c:467 EHSpawnEventHandler: Card inserted into GemPC Twin 0
0

EHSpawnEventHandler: Card ATR: 3B FD 11 00 FF 81 31 FE 45 00 31 80 71 8E
64 62 DC 01 00 81 90 00 9C

eventhandler.c:319 EHSpawnEventHandler: Error communicating to: GemPC
Twin 0 0 ifdhandler.c:689:IFDHPowerICC lun: 0

eventhandler.c:467 EHSpawnEventHandler: Card inserted into GemPC Twin 0
0

EHSpawnEventHandler: Card ATR: 3B FD 11 00 FF 81 31 FE 45 00 31 80 71 8E
64 62 DC 01 00 81 90 00 9C

 

<< I have executed ./testpcsc in different console >>

 

winscard_msg.c:263 SHMProcessEvents: Common channel packet arrival

 

 

<< after a couple of minutes time, the following message is appearing on
the console where pcscd is running >>

 

pcscdaemon.c:151 SVCServiceRun: Client 6 has disappeared.

 

<< then I'm getting "Testing SCardEstablishContext : RPC transport
error" >>

 

 

 

This is my /etc/reader.conf file.

 

FRIENDLYNAME "GemPC Twin"

DEVICENAME /dev/ttyS0

LIBPATH /usr/local/pcsc/drivers/serial/libccidtwin.so.0.9.3

CHANNELID 1

 

 

I have tried with 2 different card readers. But I'm getting the same
problem, i.e., "Testing SCardEstablishContext : RPC transport error".

 

What else could be the problem. Kindly let me know.

 

Cheers,

 

Naveen.

 

 

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle