|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
RE: Antwort: RE: Antwort: [Muscle] SCardEstablishContext question..
From: Naveen Mukkelli (Naveen
worldsmart.com.au)
Date: Tue Apr 05 2005 - 02:03:14 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I've got CHERRY keyboard(MY 7000) integrated with GemPC410 smart card reader.
This is my /etc/reader.conf
============================================================================
FRIENDLYNAME "Card Reader"
DEVICENAME /dev/ttyS0
LIBPATH /usr/local/pcsc/drivers/serial/libGemPC410.so
CHANNELID 0x000001
============================================================================
This is the out put when I run pcscd.
============================================================================
[root
autodial root]# 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 Card Reader 0 0.
readerfactory.c:1061 RFBindFunctions: Loading IFD Handler 2.0
ifdhandler.c:113:IFDHCreateChannel (GemPC41x) lun: 0, channel: 1
gbpserial.c:558:OpenGBP (GemPC41x) Serial port baudrate already set to 38400 (3)GCCmds.c:406:GCCmdSetMode (GemPC41x)
gbpserial.c:564:OpenGBP (GemPC41x) GCCmdSetMode success (4.a)
GCCmds.c:328:GCCmdGetOSVersion (GemPC41x)
GemPC410Utils.c:42:OpenGemPC410ByName (GemPC41x) OS string: GemCore-R1.21-GM
GCCmds.c:406:GCCmdSetMode (GemPC41x)
ifdhandler.c:184:IFDHGetCapabilities (GemPC41x) lun: 0, tag: FAE
pcscdaemon.c:473 main: pcsc-lite daemon ready.
hotplug_linux.c:215 Cannot open USB path directory: /proc/bus/usb
ifdhandler.c:319:IFDHPowerICC (GemPC41x) lun: 0
GCCmds.c:244:GCCmdPowerUp (GemPC41x)
GCCmds.c:261 GCCmdPowerUp Card is mute
eventhandler.c:378 EHSpawnEventHandler: Card Removed From Card Reader 0 0
ifdhandler.c:319:IFDHPowerICC (GemPC41x) lun: 0
GCCmds.c:244:GCCmdPowerUp (GemPC41x)
GCCmds.c:261 GCCmdPowerUp Card is mute
eventhandler.c:467 EHSpawnEventHandler: Card inserted into Card Reader 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
============================================================================
But when I run my code I'm still getting 80100013(SCARD_F_COMM_ERROR)
I'm running pcscd in different console from that of my code's.
What could be the problem and how I can fix these problem. Kindly let me know.
Cheers,
Naveen.
-----Original Message-----
From: muscle-bounces
lists.musclecard.com [mailto:muscle-bounces
lists.musclecard.com] On Behalf Of Martin.Fuehrlinger
omnikey.com
Sent: Tuesday, 5 April 2005 3:17 PM
To: MUSCLE
Subject: Antwort: RE: Antwort: [Muscle] SCardEstablishContext question..
> "else if(SCARD_E_INVALID_VALUE)"
try: "else if(rv == SCARD_E_INVALID_VALUE)"
then you will get no "failure" output.
0x80100013 means internal communication error.
Have you started pcscd ?
Try this: disconnect you reader, start pcscd using "pcscd -f -d stdout",
plug the reader in, watch the output, then if reader is recognized insert
an card, the ATR have to be shown by pcscd. If this works, goto another
console (DO NOT stop pcscd) and start you program again.
If it does not work, post your readers name, pcscd output and the errorcode
you got from SCardEstablishContext(...) .
---
Mit freundlichen Grüßen
Best regards,
Martin Führlinger
Software Developer
OMNIKEY
Ferihumerstrasse 13
A-4040 Linz
Austria
Tel +43 (0) 732 / 602220 - 35
E-Mail martin.fuehrlinger
omnikey.com
Web www.omnikey.com
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]