Dear all,
I've spent some time trying to get my epass2003 token to work with
opensc and pcsclite. Unfortunately, I'm stuck and I hope you can help me
track down my problem.
I'm running on Debian squeeze
Linux xxx 2.6.39-bpo.2-amd64 #1 SMP Tue Jul 26 10:35:23 UTC 2011 x86_64
GNU/Linux
I'm using pcsclite and ccid drivers (compiled from source, not the
debian packages)
pcsc-lite version 1.8.3.
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/pcsclite/lib/pcsc/drivers ipcdir=/var/run/pcscd
configdir=/usr/local/pcsclite/etc/reader.conf.d
The token is detected by pcscd, it's powered when I plug it in. However,
it's unpowered immediately after reading the ATR. Therefore, it's not
visible with opensc-tool -l or similar.
It's recognized by lsusb -v even after it's unpowered.
I'll attach the logfile of pcscd -d -f and the output of lsusb -v
Do you have any idea why the token is unpowered? I have the same
behaviour with different tokens on different pcs (debian / fedora core 15)
The lines
00002211 ccid_usb.c:1042:ControlUSB() control failed (2/3): -9 Success
00000037 ccid_usb.c:973:get_data_rates() IFD does not support GET_DATA_RATES
request: -9
look suspicious but I guess that's not the main problem.
Thanks for your help,
Martin
Bus 002 Device 003: ID 096e:0807 Feitian Technologies, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x096e Feitian Technologies, Inc.
idProduct 0x0807
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 86
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 11 Chip/SmartCard
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
ChipCard Interface Descriptor:
bLength 54
bDescriptorType 33
bcdCCID 1.10 (Warning: Only accurate for version
1.0)
nMaxSlotIndex 0
bVoltageSupport 1 5.0V
dwProtocols 2 T=1
dwDefaultClock 3580
dwMaxiumumClock 3580
bNumClockSupported 0
dwDataRate 9600 bps
dwMaxDataRate 9600 bps
bNumDataRatesSupp. 0
dwMaxIFSD 2048
dwSyncProtocols 00000000
dwMechanical 00000000
dwFeatures 00040840
Auto parameter negotation made by CCID
Short and extended APDU level exchange
dwMaxCCIDMsgLen 2100
bClassGetResponse echo
bClassEnvelope echo
wlcdLayout none
bPINSupport 0
bMaxCCIDBusySlots 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
00000000 debuglog.c:269:DebugLogSetLevel() debug level=debug
00000070 debuglog.c:298:DebugLogSetCategory() Debug options: APDU
00000236 configfile.l:298:DBGetReaderList() Parsing conf file:
/usr/local/pcsclite/etc/reader.conf.d
00000047 pcscdaemon.c:518:main() pcsc-lite 1.8.3 daemon ready.
00003681 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00000444 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001
00000434 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001
00000431 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000343 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000351 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x0402, PID: 0x7675, path: /dev/bus/usb/001/002
00000340 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x0402, PID: 0x7675, path: /dev/bus/usb/001/002
07201030 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x096E, PID: 0x0807, path: /dev/bus/usb/002/003
00000060 hotplug_libudev.c:311:HPAddDevice() Adding USB device: Feitian
ePass2003
00000299 readerfactory.c:936:RFInitializeReader() Attempting startup of Feitian
ePass2003 00 00 using
/usr/local/pcsclite/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linu
00000906 readerfactory.c:826:RFBindFunctions() Loading IFD Handler 3.0
00000172 ifdhandler.c:1768:init_driver() Driver version: 1.4.6
00002441 ifdhandler.c:1785:init_driver() LogLevel: 0x0003
00000085 ifdhandler.c:1796:init_driver() DriverOptions: 0x0000
00000337 ifdhandler.c:1809:init_driver() LogLevel from LIBCCID_ifdLogLevel:
0x000F
00000037 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device:
usb:096e/0807:libudev:0:/dev/bus/usb/002/003
00000058 ccid_usb.c:180:OpenUSBByName() Reader index: 0, Device:
usb:096e/0807:libudev:0:/dev/bus/usb/002/003
00000081 ccid_usb.c:212:OpenUSBByName() interface_number: 0
00002076 ccid_usb.c:245:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau
([email protected])
00000048 ccid_usb.c:246:OpenUSBByName() ifdProductString: Generic CCID driver
00000029 ccid_usb.c:247:OpenUSBByName() Copyright: This driver is protected by
terms of the GNU Lesser General Public License version 2.1, or (at your option)
any later
00003719 ccid_usb.c:365:OpenUSBByName() Checking device: 2/3
00000043 ccid_usb.c:420:OpenUSBByName() Trying to open USB bus/device: 2/3
00000574 ccid_usb.c:509:OpenUSBByName() Found Vendor/Product: 096E/0807
(Feitian ePass2003)
00000042 ccid_usb.c:511:OpenUSBByName() Using USB bus/device: 2/3
00000026 ccid_usb.c:1029:ControlUSB() request: 0x03
00002211 ccid_usb.c:1042:ControlUSB() control failed (2/3): -9 Success
00000037 ccid_usb.c:973:get_data_rates() IFD does not support GET_DATA_RATES
request: -9
00004231 -> 000000 65 00 00 00 00 00 00 00 00 00
00001659 <- 000000 81 00 00 00 00 00 00 00 00 00
00000061 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFB3,
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000022 readerfactory.c:291:RFAddReader() Using the pcscd polling thread
00000031 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000032 -> 000000 65 00 00 00 00 00 01 00 00 00
00001835 <- 000000 81 00 00 00 00 00 01 00 00 00
00000030 ifdhandler.c:1749:IFDHICCPresence() Card present
00000173 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000051 -> 000000 65 00 00 00 00 00 02 00 00 00
00001765 <- 000000 81 00 00 00 00 00 02 00 00 00
00000027 ifdhandler.c:1749:IFDHICCPresence() Card present
00000040 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000034 -> 000000 65 00 00 00 00 00 03 00 00 00
00001877 <- 000000 81 00 00 00 00 00 03 00 00 00
00000029 ifdhandler.c:1749:IFDHICCPresence() Card present
00000042 ifdhandler.c:1114:IFDHPowerICC() action: PowerUp,
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000021 -> 000000 62 00 00 00 00 00 04 01 00 00
00002924 <- 000000 80 17 00 00 00 00 04 00 00 00 3B 9F 95 81 31 FE 9F 00 66 46
53 05 01 00 11 71 DF 00 00 00 00 00 13
00000071 eventhandler.c:256:EHStatusHandlerThread() powerState:
POWER_STATE_POWERED
00000027 Card ATR: 3B 9F 95 81 31 FE 9F 00 66 46 53 05 01 00 11 71 DF 00 00 00
00 00 13
00000017 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000020 -> 000000 65 00 00 00 00 00 05 00 00 00
00001847 <- 000000 81 00 00 00 00 00 05 00 00 00
00000021 ifdhandler.c:1749:IFDHICCPresence() Card present
00000049 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFAE,
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000013 ifdhandler.c:441:IFDHGetCapabilities() Reader supports 1 slot(s)
00400152 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000034 -> 000000 65 00 00 00 00 00 06 00 00 00
00002761 <- 000000 81 00 00 00 00 00 06 00 00 00
00000039 ifdhandler.c:1749:IFDHICCPresence() Card present
00000027 ifdhandler.c:1114:IFDHPowerICC() action: PowerDown,
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000031 -> 000000 63 00 00 00 00 00 07 00 00 00
00001898 <- 000000 81 00 00 00 00 00 07 01 00 00
00000029 eventhandler.c:446:EHStatusHandlerThread() powerState:
POWER_STATE_UNPOWERED
00000024 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000031 -> 000000 65 00 00 00 00 00 08 00 00 00
00001898 <- 000000 81 00 00 00 00 00 08 00 00 00
00000027 ifdhandler.c:1749:IFDHICCPresence() Card present
00400200 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000037 -> 000000 65 00 00 00 00 00 09 00 00 00
00002788 <- 000000 81 00 00 00 00 00 09 00 00 00
00000037 ifdhandler.c:1749:IFDHICCPresence() Card present
00400235 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000045 -> 000000 65 00 00 00 00 00 0A 00 00 00
00002630 <- 000000 81 00 00 00 00 00 0A 00 00 00
00000027 ifdhandler.c:1749:IFDHICCPresence() Card present
00400224 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000038 -> 000000 65 00 00 00 00 00 0B 00 00 00
00002712 <- 000000 81 00 00 00 00 00 0B 00 00 00
00000025 ifdhandler.c:1749:IFDHICCPresence() Card present
00400222 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000031 -> 000000 65 00 00 00 00 00 0C 00 00 00
00002791 <- 000000 81 00 00 00 00 00 0C 00 00 00
00000043 ifdhandler.c:1749:IFDHICCPresence() Card present
00400252 ifdhandler.c:1631:IFDHICCPresence()
usb:096e/0807:libudev:0:/dev/bus/usb/002/003 (lun: 0)
00000046 -> 000000 65 00 00 00 00 00 0D 00 00 00
00002609 <- 000000 81 00 00 00 00 00 0D 00 00 00
00000032 ifdhandler.c:1749:IFDHICCPresence() Card present
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel