Integrate pcsc & ccid & libusb in Linux

Source: Internet
Author: User
Integrate pcsc & amp; ccid & amp; libusb in Linux-Linux general technology-Linux programming and kernel information. For more information, see the following. The system used is CentOS 6.4 32-bit.
Pcsc-lite-1.8.8.tar
Ccid-1.4.12.tar
The libusbx-1.0.16.tar is installed properly on all 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) latany ER 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: cannot getslotstatus Command not supported or not allowed
00006849 commands. c: 1119: cannot getslotstatus Command not supported or not allowed
00007970 commands. c: 1119: cannot getslotstatus 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.
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

Why is the test program in ccid OK, but the program in PCSC fails to be opened? Please advise QQ 421891372
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.