用的系统是CentOS 6.4 32-bit
pcsc-lite-1.8.8.tar
ccid-1.4.12.tar
libusbx-1.0.16.tar 3个都安装正常。
[root@localhost tools]# ./ccid-1.4.12/src/parse
Parsing USB bus/device: 1D6B:0002 (bus 1, device 1)
idVendor: 0x1D6B iManufacturer: Linux 2.6.32-358.el6.i686 ehci_hcd
idProduct: 0x0002 iProduct: EHCI Host Controller
NOT a CCID/ICCD device
Parsing USB bus/device: 1982:0003 (bus 2, device 10)
idVendor: 0x1982 iManufacturer: WallGreat
idProduct: 0x0003 iProduct: CCIDUKey
Found a CCID/ICCD device at interface 0
[root@localhost tools]# pcscd -adf
00000000 pcscdaemon.c:233:main() pcscd set to foreground with debug send to stdout
00000231 configfile.l:298:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000043 pcscdaemon.c:525:main() pcsc-lite 1.8.8 daemon ready.
00006993 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00000308 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00000191 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0003, path: /dev/bus/usb/002/002
00000175 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0003, path: /dev/bus/usb/002/002
00000174 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00000179 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0002, path: /dev/bus/usb/002/003
00000178 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1982, PID: 0x0003, path: /dev/bus/usb/002/010
00000022 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1982, PID: 0x0003, path: /dev/bus/usb/002/010
00000006 hotplug_libudev.c:312:HPAddDevice() Adding USB device: WallGreat CCIDUKey
00000060 readerfactory.c:978:RFInitializeReader() Attempting startup of WallGreat CCIDUKey (0248998834550749) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00008093 readerfactory.c:868:RFBindFunctions() Loading IFD Handler 3.0
00000101 ifdhandler.c:1840:init_driver() Driver version: 1.4.12
00000552 ifdhandler.c:1857:init_driver() LogLevel: 0x0003
00000007 ifdhandler.c:1868:init_driver() DriverOptions: 0x0000
00000083 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: usb:1982/0003:libudev:0:/dev/bus/usb/002/010
00000043 ccid_usb.c:281:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers//ifd-ccid.bundle/Contents/Info.plist
00000449 ccid_usb.c:299:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau@free.fr)
00000006 ccid_usb.c:300:OpenUSBByName() ifdProductString: Generic CCID driver
00000005 ccid_usb.c:301:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00009951 ccid_usb.c:576:OpenUSBByName() Found Vendor/Product: 1982/0003 (WallGreat CCIDUKey)
00000015 ccid_usb.c:578:OpenUSBByName() Using USB bus/device: 2/10
00925178 ccid_usb.c:1106:get_data_rates() declared: 9600 bps
00049671 commands.c:1119:CmdGetSlotStatus Command not supported or not allowed
00006849 commands.c:1119:CmdGetSlotStatus Command not supported or not allowed
00007970 commands.c:1119:CmdGetSlotStatus Command not supported or not allowed
00000026 ifdhandler.c:158:CreateChannelByNameOrChannel() failed
00000017 readerfactory.c:1009:RFInitializeReader() Open Port 0x200000 Failed (usb:1982/0003:libudev:0:/dev/bus/usb/002/010)
00000005 readerfactory.c:312:RFAddReader() WallGreat CCIDUKey (0248998834550749) init failed.
00000022 readerfactory.c:529:RFRemoveReader() UnrefReader() count was: 1
00000006 readerfactory.c:1029:RFUnInitializeReader() Attempting shutdown of WallGreat CCIDUKey (0248998834550749) 00 00.
00000004 readerfactory.c:905:RFUnloadReader() Unloading reader driver.
00000109 hotplug_libudev.c:384:HPAddDevice() Failed adding USB device: WallGreat CCIDUKey
00000333 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0002, path: /dev/bus/usb/002/003
00000292 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
为何CCID里面的 测试程序是OK的,但是PCSC里面的程序 会出现打开失败? 求高人指点QQ 421891372
ccd351639687 于 2013-09-12 17:47:40发表:
hande
dabaichix 于 2013-09-12 17:17:47发表:
又抓到3条错误信息。
00000006 hotplug_libudev.c:312:HPAddDevice() Adding USB device: WallGreat CCIDUKey
00000039 readerfactory.c:978:RFInitializeReader() Attempting startup of WallGreat CCIDUKey (0248998834550749) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000290 readerfactory.c:868:RFBindFunctions() Loading IFD Handler 3.0
00000034 ifdhandler.c:1840:init_driver() Driver version: 1.4.12
00000527 ifdhandler.c:1857:init_driver() LogLevel: 0x0003
00000007 ifdhandler.c:1868:init_driver() DriverOptions: 0x0000
00000082 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: usb:1982/0003:libudev:0:/dev/bus/usb/002/004
00000044 ccid_usb.c:281:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers//ifd-ccid.bundle/Contents/Info.plist
00000434 ccid_usb.c:299:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau@free.fr)
00000006 ccid_usb.c:300:OpenUSBByName() ifdProductString: Generic CCID driver
00000005 ccid_usb.c:301:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00002339 ccid_usb.c:576:OpenUSBByName() Found Vendor/Product: 1982/0003 (WallGreat CCIDUKey)
00000008 ccid_usb.c:578:OpenUSBByName() Using USB bus/device: 2/4
00345861 ccid_usb.c:1106:get_data_rates() declared: 9600 bps
05086388 ccid_usb.c:732:WriteUSB() write failed (2/4): -7 Resource temporarily unavailable
05017950 ccid_usb.c:732:WriteUSB() write failed (2/4): -7 Resource temporarily unavailable
05036364 ccid_usb.c:732:WriteUSB() write failed (2/4): -7 Resource temporarily unavailable
00000018 ifdhandler.c:158:CreateChannelByNameOrChannel() failed
00000013 readerfactory.c:1009:RFInitializeReader() Open Port 0x200000 Failed (usb:1982/0003:libudev:0:/dev/bus/usb/002/004)