[Pcsclite-muscle] SCardTransmit error with ISO-14443A tag

Frank Morgner morgner
Thu Oct 16 07:51:12 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Is this a valid APDU?
01 09 00 03 04 A0 01 00 00

Do you want to read the UID of the card? There is a special command
defined in the PC/SC docs for this, but it starts with class byte 0xff

Greets, Frank.

On Thursday, October 16 at 10:18AM, Fabrice DIMITRIOU wrote:
> CCID driver version = 1.3.9
> 
> pcsc-lite version =  1.5.3
> 
> smart card reader name = CASTLES EZ710PU
> 
> /usr/sbin/pcscd ?version
> 
> pcsc-lite version 1.5.3.
> 
> Copyright (C) 1999-2002 by David Corcoran <corcoran at linuxnet.com>.
> 
> Copyright (C) 2001-2008 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
> 
> Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
> 
> Report bugs to <muscle at lists.musclecard.com>.
> 
> Enabled features: Linux libusb usbdropdir=/usr/local/pcsc/drivers
> confdir=/etc ipcdir=/var/run/pcscd
> 
>  
> 
> Hello,
> 
>  
> 
> I am trying to read serial number of a ISO 14443A tag with pcsc-lite running
> on Fedora12.
> 
>  
> 
> But I have a SCardTransmit error (see above log.txt from pcscd):
> 
>  
> 
> 00000000 debuglog.c:224:DebugLogSetLevel() debug level=debug
> 
> 00000096 debuglog.c:253:DebugLogSetCategory() Debug options: APDU
> 
> 00001961 pcscdaemon.c:505:main() pcsc-lite 1.5.3 daemon ready.
> 
> 00197701 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: 005:002
> 
> 00000127 readerfactory.c:1024:RFInitializeReader() Attempting startup of
> CASTLES EZ710PU 00 00 using
> /usr/local/pcsc/drivers/ez7usb.bundle/Contents/Linux/ez7usb.so
> 
> 00000352 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
> 
> 00018151 readerfactory.c:249:RFAddReader() Using the pcscd polling thread
> 
> 00004001 readerfactory.c:1024:RFInitializeReader() Attempting startup of
> CASTLES EZ710PU 00 01 using
> /usr/local/pcsc/drivers/ez7usb.bundle/Contents/Linux/ez7usb.so
> 
> 00000052 readerfactory.c:741:RFLoadReader() Reusing already loaded driver
> for /usr/local/pcsc/drivers/ez7usb.bundle/Contents/Linux/ez7usb.so
> 
> 00000093 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
> 
> 00000104 readerfactory.c:385:RFAddReader() Using the pcscd polling thread
> 
> 00011849 hotplug_libusb.c:403:HPEstablishUSBNotifications() Driver
> ez7usb.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling
> instead.
> 
> 00000050 hotplug_libusb.c:412:HPEstablishUSBNotifications() Polling forced
> every 1 second(s)
> 
> 00033050 Card ATR: 3B 68 00 00 4D 49 46 41 52 45 31 4B
> 
> 07453896 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel
> packet arrival
> 
> 00000101 winscard_msg_srv.c:248:SHMProcessEventsServer()
> SHMProcessCommonChannelRequest detects: 6
> 
> 00000022 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation
> is requested: 6
> 
> 00000553 winscard_svc.c:133:ContextThread() Thread is started: 6
> 
> 00000102 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> CMD_VERSION received by client 6
> 
> 00000030 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
> 
> 00000255 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> ESTABLISH_CONTEXT received by client 6
> 
> 00000084 winscard.c:242:SCardEstablishContext() Establishing Context:
> 16986112
> 
> 00002124 winscard_msg_srv.c:317:SHMProcessEventsContext() command CONNECT
> received by client 6
> 
> 00000371 winscard.c:303:SCardConnect() Attempting Connect to CASTLES EZ710PU
> 00 01 using protocol: 3
> 
> 00000036 prothandler.c:128:PHSetProtocol() Attempting PTS to T=0
> 
> 00000031 winscard.c:449:SCardConnect() Active Protocol: T=0
> 
> 00000035 winscard.c:459:SCardConnect() hCard Identity: 2fb13
> 
> 00052482 winscard_msg_srv.c:317:SHMProcessEventsContext() command
> BEGIN_TRANSACTION received by client 6
> 
> 00000047 winscard.c:1057:SCardBeginTransaction() Status: 0x00000000
> 
> 00000371 winscard_msg_srv.c:317:SHMProcessEventsContext() command TRANSMIT
> received by client 6
> 
> 00000038 winscard.c:1647:SCardTransmit() Send Protocol: T=0
> 
> 00000037 APDU: 01 09 00 03 04 A0 01 00 00
> 
> 00049820 SW:
> 
> 00000051 ifdwrapper.c:722:IFDTransmit() Card not transacted: 612
> 
> 00000030 winscard.c:1671:SCardTransmit() Card not transacted: 0x80100016
> 
> 00000403 winscard_msg_srv.c:317:SHMProcessEventsContext() command DISCONNECT
> received by client 6
> 
> 00000073 winscard.c:880:SCardDisconnect() Active Contexts: 1
> 
> 00060453 winscard.c:941:SCardDisconnect() Reset complete.
> 
> 00002732 winscard_msg_srv.c:306:SHMProcessEventsContext() Client has
> disappeared: 6
> 
> 00000105 winscard_svc.c:146:ContextThread() Client die: 6
> 
> 00000029 winscard.c:253:SCardReleaseContext() Releasing Context: 16986112
> 
> 26340730 pcscdaemon.c:580:signal_trap() Preparing for suicide
> 
> 00066693 hotplug_libusb.c:377:HPRescanUsbBus() Hotplug stopped
> 
> 00933456 readerfactory.c:1267:RFCleanupReaders() entering cleaning function
> 
> 00000045 readerfactory.c:1276:RFCleanupReaders() Stopping reader: CASTLES
> EZ710PU 00 00
> 
> 00000031 eventhandler.c:126:EHDestroyEventHandler() Stomping thread.
> 
> 00000030 eventhandler.c:139:EHDestroyEventHandler() Waiting polling thread
> 
> 00208355 eventhandler.c:474:EHStatusHandlerThread() Die
> 
> 00000262 eventhandler.c:163:EHDestroyEventHandler() Thread stomped.
> 
> 00000038 readerfactory.c:1062:RFUnInitializeReader() Attempting shutdown of
> CASTLES EZ710PU 00 00.
> 
> 00000267 eventhandler.c:126:EHDestroyEventHandler() Stomping thread.
> 
> 00000037 eventhandler.c:139:EHDestroyEventHandler() Waiting polling thread
> 
> 00428649 eventhandler.c:474:EHStatusHandlerThread() Die
> 
> 00000198 eventhandler.c:163:EHDestroyEventHandler() Thread stomped.
> 
> 00000035 readerfactory.c:1062:RFUnInitializeReader() Attempting shutdown of
> CASTLES EZ710PU 00 01.
> 
> 00000028 readerfactory.c:914:RFUnloadReader() Unloading reader driver.
> 
> 00000178 pcscdaemon.c:530:at_exit() cleaning /var/run/pcscd
> 
>  
> 
> Any clue ?
> 
>  
> 
> Thanks in advance for your answer.
> 
>  
> 
> Best regards.
> 
>  
> 
>  
> 
>  
> 
> 
> 
> Fabrice DIMITRIOU
> Ing?nieur logiciel ? Responsable SI
> __________________________________ 
> TMM Software
> 525 Avenue Andr? Malraux
> 07500 Guilherand Granges - France
> T?l. +33 (0)4 75 61 44 48
>  <mailto:fdimitriou at tmm-software.com> fdimitriou at tmm-software.com
>  <http://www.tmm-software.com> www.tmm-software.com
> 
> 
> 
>  
> 



> _______________________________________________
> Pcsclite-muscle mailing list
> Pcsclite-muscle at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

- -- 
Frank Morgner

Virtual Smart Card Architecture http://vsmartcard.sourceforge.net
OpenPACE                        http://openpace.sourceforge.net
IFD Handler for libnfc Devices  http://sourceforge.net/projects/ifdnfc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQJ8BAEBCgBmBQJUP9tgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1QUQ1RjJCMjQ4M0IwQjUwMjQxOTFGMDI4
NTEyRTI3RUJGOUJDMTYyAAoJEIUS4n6/m8Fi8HIP/RoXsXW1ymFT2Bp+SOC9m0A1
Nzf62bW9mNkhDJcDnrkj34Rcn/JmIb3D4s2KG/djSOXEOSz8ZpweMNF8+0GfARBQ
JBr5GuIegY0SYagPoL2SKXwgyOrd7f5zIR7ciX2txF/d96F5/5U0CBWxF4RjeHvZ
7+HkRLC9B5cKoRRl5Bbaa2+ZwEIum38EUHJ7lfC8Lvm7ZPEFA0/buSrWcp7QkNu6
Bi/86ix4HxJ476KdU5VuL4+NCxEt/K9/TRHNmbIr/XBA4tTAEgvBAnSTm0InrdjR
20ON7Djg0zyTuqBmnaQSHBC66EOs6+9a33hVfsabxRPBIO5jeAg/+L0m85q4L/2i
JEj/93viueQjuD4pEvUR7/IcukFm5bcZhnui+4gqaAwl3wYBZrJZy6VPKJc7AT8u
f7W6D4A/1bSWTpfpWz2pPpqIqtS8Kgm41PVC5xr0T4Gtim5rLf9eNVeBncXkLxoT
u2VyGmNBupZthbgCVq2unjpJawABSpCC0kK3yev1jI2lyb1JFGejzXG1r1iBftrE
aIH3Opuegpx6YM34uwNIGLX21XYF95zbWahfMLjJhQJ0rS5g8+x43aFE46OgSdLI
XPVqJiJ79VbL1WuogbGYvYtL1fEWJEdkDIETYeqbPlzdx+QGjzbpjXUq2D557DAj
vPomxWNRJV27dAgyTdF5
=K+zz
-----END PGP SIGNATURE-----




More information about the pcsclite-muscle mailing list