[Muscle] SCM SDI010 problems
Ludovic Rousseau
ludovic.rousseau at gmail.com
Sat Mar 7 07:43:09 PST 2009
2009/3/3 Hendrik Tews <tews at cs.ru.nl>:
> Hi,
Hello,
> I am having problems with the SCM SDI010 reader that is connected
> on a debian lenny PC, with the following versions
>
> ii libpcsc-perl 1.4.7-1+b1
> ii libpcsclite-de 1.4.102-1
> ii libpcsclite1 1.4.102-1
> ii pcsc-tools 1.4.14-1
> ii pcscd 1.4.102-1
> ii libccid 1.3.8-1
>
> When I connect the reader the syslog shows
>
> ... usb 1-6: new full speed USB device using ohci_hcd and address 17
> ... usb 1-6: configuration #1 chosen from 1 choice
> ... usb 1-6: New USB device found, idVendor=04e6, idProduct=5121
> ... usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=5
> ... usb 1-6: Product: SDI010 Smart Card Reader
> ... usb 1-6: Manufacturer: SCM Microsystems Inc.
> ... usb 1-6: SerialNumber: 21120706205078
>
>
> The contact interface works, but the contacless doesn't and I get
> lots of lines
>
>
> Mar 3 15:36:26 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:26 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
> Mar 3 15:36:26 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:26 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
> Mar 3 15:36:26 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:26 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
> Mar 3 15:36:26 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:26 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
> Mar 3 15:36:27 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:27 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
> Mar 3 15:36:27 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:27 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
> Mar 3 15:36:27 pcscd: commands.c:714:CmdEscape Command not supported or not allowed
> Mar 3 15:36:27 pcscd: ifdhandler.c:1283:IFDHICCPresence() CmdEscape failed
This is know problem. I completely removed (broken) support of the
contactless interface in version 1.3.10 of the CCID driver.
> Under debian etch the reader was running fine under with the
> driver from scm. In order to use that driver I changed
> /etc/libccid_Info.plist and the its symlink
> /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist in the
> following way:
>
> tandem etc 6> diff -u libccid_Info.plist.orig libccid_Info.plist
> --- libccid_Info.plist.orig 2009-03-03 16:12:09.000000000 +0100
> +++ libccid_Info.plist 2009-03-03 16:10:59.000000000 +0100
> @@ -117,7 +117,7 @@
> <string>0x04E6</string>
> <string>0x04E6</string>
> <string>0x04E6</string>
> - <string>0x04E6</string>
> + <!-- <string>0x04E6</string> -->
> <string>0x04E6</string>
> <string>0x04E6</string>
> <string>0x04E6</string>
> @@ -216,7 +216,7 @@
> <string>0x511C</string>
> <string>0x511D</string>
> <string>0x5120</string>
> - <string>0x5121</string>
> + <!-- <string>0x5121</string> -->
> <string>0xE001</string>
> <string>0x5410</string>
> <string>0xE003</string>
> @@ -315,7 +315,7 @@
> <string>Axalto Reflex USB v3</string>
> <string>SCM SCR 3311</string>
> <string>SCM SCR 331-DI NTTCom</string>
> - <string>SCM SDI 010</string>
> + <!-- <string>SCM SDI 010</string> -->
> <string>SCM SCR 331</string>
> <string>SCM SCR 355</string>
> <string>SCM SPR 532</string>
>
>
> However, pcscd seems not to recognize xml comments, as it still
> reports
>
> Mar 3 16:14:44 tandem pcscd: readerfactory.c:1082:RFInitializeReader() Attempting startup of SCM SDI 010 00 01 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
>
>
> If I delete these comment lines then pcscd loads the scm driver:
>
> Mar 3 16:17:46 tandem pcscd: readerfactory.c:1082:RFInitializeReader() Attempting startup of SDI010 USB Smart Card Reader 00 00 using /usr/lib/pcsc/drivers/scmcciddriver.bundle/Contents/Linux/libscmccid.so.5.0.8
pcscd do not have a complete XML parser. XML comments are not supported.
> However, then pcsc_scan fails with
>
> tandem scmccid_5.0.8_linux 102> pcsc_scan
> PC/SC device scanner
> V 1.4.14 (c) 2001-2008, Ludovic Rousseau <ludovic.rousseau at free.fr>
> Compiled with PC/SC lite version: 1.4.101
> SCardEstablishContext: Cannot Connect to Resource Manager: Service not available. (0x8010001D)
Have you tried to recompile pcsc-lite yourself?
What is the output of:
$ apt-cache policy pcscd libpcsclite1
--
Dr. Ludovic Rousseau
More information about the Muscle
mailing list