[Pcsclite-muscle] SCardTransmit error with ISO-14443A tag
Sebastien Lorquet
sebastien
Thu Oct 16 09:28:19 PDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
CLA=01h is unusual (LSbits code the logical channel, which is usually zero)
INS=09h is unusual (values are often even)
P1=00h
P2=03h are plausible
LC=04h means we expect 4 bytes following, they are present A0010000
LE is absent.
So technically, it's a valid apdu, but its format is extremely unusual.
INS=09h is completely unknown to me.
S?bastien Lorquet
Le 16/10/2014 16:51, Frank Morgner a ?crit :
> 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
>
>
> _______________________________________________ Pcsclite-muscle mailing
> list Pcsclite-muscle at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (MingW32)
iQEcBAEBAgAGBQJUP/IjAAoJEJFP1HbJm5DnpVoH/0iuEhFybwFV6OXy2LcKdY0G
LqjehpG1cOKqzOxxiyz6nqs/jwBKt8ANhwoy4M8wUZ4CrncQE6EAeR1sQOYyQvwc
+SkFm7ryqCqp8Q1IT+7VljLT+0qba0XYqLV/igrOq8Skk8gjau/HtR35whbz+AGY
5oX2UISL+K3/B/3YVtIXjiPhBOuNbpV3dre4rNaI1C00NhRJ/HPnGGRWbi4f8/Uw
cPZCgyotupq1eC82blg/LWJdsKNOCUaQjiKnmI3NSV155toYfZBZRWEF/DVLUSW4
WGjirA4gvsKaBPCAWnF8AzVYRfyYr4CymtQkC1YxEAersqSk5ns9G1oCZ1a+JTg=
=2sUR
-----END PGP SIGNATURE-----
More information about the pcsclite-muscle
mailing list