[Pcsclite-muscle] Error detecting card reader

Santiago Gimeno santiago.gimeno at gmail.com
Mon Sep 15 14:23:54 UTC 2014


Hello again,

I've found the source of the problem. My system had one device bus
'not authorized' so the libusb_get_device_list function in my version
of libusb was failing.

In newer versions of libusb this was solved. (from 1.0.9). See commit:
http://git.libusb.org/?p=libusb.git;a=commit;h=0eb7e43759003610d1afe6148aa6ff4f5859ccb0;js=1

I hope this can help somebody

Regards,

Santi

2014-09-15 13:50 GMT+02:00 Santiago Gimeno <santiago.gimeno at gmail.com>:
> Hello,
>
> I have a debian squeeze machine and pcsc was working with no problems.
> After upgrading pcsc and libccid to the versions in squeeze-backports,
> pcscd is not able to detect the card reader anymore.
> From the logs it looks a problem with libusb. Any help to fix this
> issue would be appreciated.
>
> Thanks,
>
> Santi
>
>
> The card reader info:
>
> Bus 003 Device 002: ID 0783:0006 C3PO LTC31v2
>
> The versions installed are:
>
> i  libpcsclite-dev                                          1.8.4-1~bpo60+1
> ii  libpcsclite1                                             1.8.4-1~bpo60+1
> ii  pcscd                                                    1.8.4-1~bpo60+1
> ii  libccid                                                  1.4.7-1~bpo60+1
> ii  libusb-1.0-0
>      2:1.0.8-2
>
> /usr/sbin/pcscd --version
> pcsc-lite version 1.8.4.
> Copyright (C) 1999-2002 by David Corcoran <corcoran at linuxnet.com>.
> Copyright (C) 2001-2011 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 i486-pc-linux-gnu serial usb libudev
> usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
> configdir=/etc/reader.conf.d
>
> The logs from pcscd are:
>
> 00000000 debuglog.c:269:DebugLogSetLevel() debug level=debug
> 00000030 debuglog.c:298:DebugLogSetCategory() Debug options: APDU
> 00000201 configfile.l:245:DBGetReaderListDir() Parsing conf directory:
> /etc/reader.conf.d
> 00000055 configfile.l:298:DBGetReaderList() Parsing conf file:
> /etc/reader.conf.d/0comments
> 00000098 configfile.l:257:DBGetReaderListDir() Skipping non regular file: ..
> 00000005 configfile.l:257:DBGetReaderListDir() Skipping non regular file: .
> 00000003 configfile.l:298:DBGetReaderList() Parsing conf file:
> /etc/reader.conf.d/libccidtwin
> 00000047 pcscdaemon.c:518:main() pcsc-lite 1.8.4 daemon ready.
> 00001527 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/007/001
> 00000211 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
> 00000199 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001
> 00000156 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001
> 00000160 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x0783, PID: 0x0006, path: /dev/bus/usb/003/002
> 00000053 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x0783, PID: 0x0006, path: /dev/bus/usb/003/002
> 00000005 hotplug_libudev.c:311:HPAddDevice() Adding USB device: C3PO LTC31 v2
> 00000071 readerfactory.c:941:RFInitializeReader() Attempting startup
> of C3PO LTC31 v2 (00553980) 00 00 using
> /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libcci
> 00000210 readerfactory.c:831:RFBindFunctions() Loading IFD Handler 3.0
> 00000058 ifdhandler.c:1832:init_driver() Driver version: 1.4.7
> 00000526 ifdhandler.c:1849:init_driver() LogLevel: 0x0003
> 00000008 ifdhandler.c:1860:init_driver() DriverOptions: 0x0000
> 00000076 ifdhandler.c:1873:init_driver() LogLevel from
> LIBCCID_ifdLogLevel: 0x000F
> 00000005 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0,
> device: usb:0783/0006:libudev:0:/dev/bus/usb/003/002
> 00000008 ccid_usb.c:180:OpenUSBByName() Reader index: 0, Device:
> usb:0783/0006:libudev:0:/dev/bus/usb/003/002
> 00000016 ccid_usb.c:212:OpenUSBByName() interface_number: 0
> 00000020 ccid_usb.c:228:OpenUSBByName() Using:
> /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
> 00000449 ccid_usb.c:246:OpenUSBByName() ifdManufacturerString: Ludovic
> Rousseau (ludovic.rousseau at free.fr)
> 00000007 ccid_usb.c:247:OpenUSBByName() ifdProductString: Generic CCID driver
> 00000004 ccid_usb.c:248:OpenUSBByName() Copyright: This driver is
> protected by terms of the GNU Lesser General Public License version
> 2.1, or (at your option) any later
> 00000583 ccid_usb.c:264:OpenUSBByName() libusb_get_device_list() failed
>
> 00000082 ifdhandler.c:117:CreateChannelByNameOrChannel() failed
> 00000008 readerfactory.c:972:RFInitializeReader() Open Port 0x200000
> Failed (usb:0783/0006:libudev:0:/dev/bus/usb/003/002)
> 00000003 readerfactory.c:279:RFAddReader() C3PO LTC31 v2 (00553980) init failed.
> 00000004 readerfactory.c:992:RFUnInitializeReader() Attempting
> shutdown of C3PO LTC31 v2 (00553980) 00 00.
> 00000003 readerfactory.c:868:RFUnloadReader() Unloading reader driver.
> 00000037 hotplug_libudev.c:379:HPAddDevice() Failed adding USB device:
> C3PO LTC31 v2
> 00000197 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001
> 00000159 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001
> 00000123 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001
> 00000137 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x0408, PID: 0x3001, path: /dev/bus/usb/005/002
> 00000159 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
> 00000116 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
> 00000127 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x5986, PID: 0x0313, path: /dev/bus/usb/001/003
> 00000129 hotplug_libudev.c:260:get_driver() Looking for a driver for
> VID: 0x5986, PID: 0x0313, path: /dev/bus/usb/001/003



More information about the Pcsclite-muscle mailing list