Hi, I recently purchased a sim card reader from the dealextreme.com (for affordable price of 3.32$). The device apparently has PL2303 usb-serial converter and then the reader. I followed the instructions from ccid driver to get the logs.
Here's the output of src/parse [miksa@localhost ccid-1.4.7]$ sudo src/parse Parsing USB bus/device: 1D6B:0002 (bus 1, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ehci_hcd idProduct: 0x0002 iProduct: EHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0002 (bus 2, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ehci_hcd idProduct: 0x0002 iProduct: EHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0002 (bus 3, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ehci_hcd idProduct: 0x0002 iProduct: EHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0001 (bus 4, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ohci_hcd idProduct: 0x0001 iProduct: OHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0001 (bus 5, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ohci_hcd idProduct: 0x0001 iProduct: OHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0001 (bus 6, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ohci_hcd idProduct: 0x0001 iProduct: OHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 067B:2303 (bus 4, device 7) idVendor: 0x067B iManufacturer: Prolific Technology Inc. idProduct: 0x2303 iProduct: USB-Serial Controller Found a possibly CCID/ICCD device (bInterfaceClass = 0xFF). Use -p It suggests to run with -p so here's the output with that. The parse suggests that the device should work. [miksa@localhost ccid-1.4.7]$ sudo src/parse -p Parsing USB bus/device: 1D6B:0002 (bus 1, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ehci_hcd idProduct: 0x0002 iProduct: EHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0002 (bus 2, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ehci_hcd idProduct: 0x0002 iProduct: EHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0002 (bus 3, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ehci_hcd idProduct: 0x0002 iProduct: EHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0001 (bus 4, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ohci_hcd idProduct: 0x0001 iProduct: OHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0001 (bus 5, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ohci_hcd idProduct: 0x0001 iProduct: OHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 1D6B:0001 (bus 6, device 1) idVendor: 0x1D6B iManufacturer: Linux 2.6.32-279.el6.x86_64 ohci_hcd idProduct: 0x0001 iProduct: OHCI Host Controller NOT a CCID/ICCD device Parsing USB bus/device: 067B:2303 (bus 4, device 7) idVendor: 0x067B iManufacturer: Prolific Technology Inc. idProduct: 0x2303 iProduct: USB-Serial Controller Found a CCID/ICCD device at interface 0 Can't claim interface (bus 4, device 7): Device or resource busy Please, stop pcscd and retry Here's my config FRIENDLYNAME "DX" DEVICENAME /dev/ttyUSB0 LIBPATH /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so CHANNELID 0x0 And here's output of running the daemon [miksa@localhost ccid-1.4.7]$ sudo LIBCCID_ifdLogLevel=0x000F /usr/local/sbin/pcscd --foreground --debug --apdu | tee log.txt 00000000 debuglog.c:269:DebugLogSetLevel() debug level=debug 00000071 debuglog.c:298:DebugLogSetCategory() Debug options: APDU 00000237 configfile.l:298:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000108 configfile.l:151:evaluatetoken() WARNING ************************************* 00000012 configfile.l:152:evaluatetoken() WARNING: USB drivers SHOULD NOT be declared in reader.conf: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid 00000006 configfile.l:153:evaluatetoken() WARNING ************************************* 00000058 readerfactory.c:941:RFInitializeReader() Attempting startup of DX 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so 00000303 readerfactory.c:831:RFBindFunctions() Loading IFD Handler 3.0 00000070 ifdhandler.c:1832:init_driver() Driver version: 1.4.7 00001704 ifdhandler.c:1849:init_driver() LogLevel: 0x0003 00000024 ifdhandler.c:1860:init_driver() DriverOptions: 0x0000 00000219 ifdhandler.c:1873:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F 00000016 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: /dev/ttyUSB0 00000016 ccid_usb.c:180:OpenUSBByName() Reader index: 0, Device: /dev/ttyUSB0 00000006 ccid_usb.c:192:OpenUSBByName() device name does not start with "usb:": /dev/ttyUSB0 00000005 ifdhandler.c:117:CreateChannelByNameOrChannel() failed 00000010 readerfactory.c:972:RFInitializeReader() Open Port 0x0 Failed (/dev/ttyUSB0) 00000006 readerfactory.c:279:RFAddReader() DX init failed. 00000011 readerfactory.c:992:RFUnInitializeReader() Attempting shutdown of DX 00 00. 00000005 readerfactory.c:868:RFUnloadReader() Unloading reader driver. 00000106 pcscdaemon.c:518:main() pcsc-lite 1.8.4 daemon ready. 00022743 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001 00000341 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001 00000318 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x067B, PID: 0x2303, path: /dev/bus/usb/004/007 00000366 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000383 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001 00000372 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 00000377 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 00000549 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001 Here's general information: CCID driver: 1.4.7 Pcsc-lite: 1.8.4 Smart card reader name: no name from dealextreme.com [miksa@localhost ccid-1.4.7]$ /usr/local/sbin/pcscd --version pcsc-lite version 1.8.4. Copyright (C) 1999-2002 by David Corcoran <[email protected]>. Copyright (C) 2001-2011 by Ludovic Rousseau <[email protected]>. Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>. Report bugs to <[email protected]>. Enabled features: Linux x86_64-unknown-linux-gnu serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d OS: CentOS 6.3 Smart card middleware: not used Reader manufacturer: no name from dealextreme Smart card name: no name from dealextreme -- Mikko Hurskainen, Notava Inc _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
