Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realtek reader not working #100

Closed
kurthuwig opened this issue Mar 18, 2021 · 1 comment
Closed

Realtek reader not working #100

kurthuwig opened this issue Mar 18, 2021 · 1 comment

Comments

@kurthuwig
Copy link

Archlinux with package

community/ccid 1.4.34-1 (76.1 KiB 255.9 KiB) (Installed)
A generic USB Chip/Smart Card Interface Devices driver

lsusb -vvv

Bus 001 Device 038: ID 0bda:0169 Realtek Semiconductor Corp. Mass Storage Device
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x0169 Mass Storage Device
  bcdDevice           61.23
  iManufacturer           1 Generic
  iProduct                2 USB2.0-CRW
  iSerial                 3 20070818000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0074
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 CARD READER
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              6 Smart Card Reader Interface
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.10  (Warning: Only accurate for version 1.0)
        nMaxSlotIndex           0
        bVoltageSupport         7  5.0V 3.0V 1.8V 
        dwProtocols             3  T=0 T=1
        dwDefaultClock       3750
        dwMaxiumumClock      7500
        bNumClockSupported      0
        dwDataRate          10080 bps
        dwMaxDataRate      312500 bps
        bNumDataRatesSupp.      0
        dwMaxIFSD             254
        dwSyncProtocols  00000000 
        dwMechanical     00000000 
        dwFeatures       00010030
          Auto clock change
          Auto baud rate change
          TPDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse      00
        bClassEnvelope         00
        wlcdLayout           none
        bPINSupport             0 
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               8
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              5 Bulk-In, Bulk-Out, Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

LIBCCID_ifdLogLevel=0x000F=0x000F pcscd --foreground --debug --apdu --color

08630818 [140191530989120] hotplug_libudev.c:655:HPEstablishUSBNotifications() USB Device add
00000799 [140191530989120] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x0169, path: /dev/bus/usb/001/038
00000074 [140191530989120] hotplug_libudev.c:440:HPAddDevice() Adding USB device: Generic USB2.0-CRW
00000247 [140191530989120] readerfactory.c:1074:RFInitializeReader() Attempting startup of Generic USB2.0-CRW [Smart Card Reader Interface] (20070818000000000) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000915 [140191530989120] readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000081 [140191530989120] ifdhandler.c:2025:init_driver() Driver version: 1.4.34
00002817 [140191530989120] ifdhandler.c:2042:init_driver() LogLevel: 0x0003
00000035 [140191530989120] ifdhandler.c:2053:init_driver() DriverOptions: 0x0000
00000860 [140191530989120] ifdhandler.c:2066:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000025 [140191530989120] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:0bda/0169:libudev:0:/dev/bus/usb/001/038
00000029 [140191530989120] ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:0bda/0169:libudev:0:/dev/bus/usb/001/038
00000039 [140191530989120] ccid_usb.c:269:OpenUSBByName() interface_number: 0
00000017 [140191530989120] ccid_usb.c:270:OpenUSBByName() usb bus/device: 1/38
00000014 [140191530989120] ccid_usb.c:302:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00002714 [140191530989120] ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00000032 [140191530989120] ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000022 [140191530989120] ccid_usb.c:322: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.
00019811 [140191530989120] ccid_usb.c:406:OpenUSBByName() Try device: 1/38
00000017 [140191530989120] ccid_usb.c:416:OpenUSBByName() vid/pid : 0BDA/0169
00000009 [140191530989120] ccid_usb.c:482:OpenUSBByName() Checking device: 1/38
00000008 [140191530989120] ccid_usb.c:553:OpenUSBByName() Trying to open USB bus/device: 1/38
00000090 [140191530989120] ccid_usb.c:659:OpenUSBByName() Found Vendor/Product: 0BDA/0169 (Generic USB2.0-CRW)
00000027 [140191530989120] ccid_usb.c:661:OpenUSBByName() Using USB bus/device: 1/38
00000008 [140191530989120] ccid_usb.c:722:OpenUSBByName() bNumDataRatesSupported is 0
00030757 [140191530989120] ccid_usb.c:1328:InterruptRead() before (0), timeout: 100 ms
00070907 [140191530989120] ccid_usb.c:1374:InterruptRead() after (0) (0)
00000023 [140191530989120] NotifySlotChange: 50 02 
00000006 [140191530989120] -> 000000 65 00 00 00 00 00 00 00 00 00 
00000236 [140191530989120] <- 000000 81 00 00 00 00 00 00 02 80 03 
00000007 [140191530989120] -> 000000 65 00 00 00 00 00 01 00 00 00 
00000246 [140191530989120] <- 000000 81 00 00 00 00 00 01 02 80 03 
00000008 [140191530989120] ifdhandler.c:388:IFDHGetCapabilities() tag: 0xFB3, usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000005 [140191530989120] readerfactory.c:396:RFAddReader() Using the reader polling thread
00000004 [140191530989120] ifdhandler.c:1885:IFDHICCPresence() usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000005 [140191530989120] -> 000000 65 00 00 00 00 00 02 00 00 00 
00000253 [140191530989120] <- 000000 81 00 00 00 00 00 02 02 80 03 
00000005 [140191530989120] ifdhandler.c:2005:IFDHICCPresence() Card absent
00000035 [140191530989120] ifdhandler.c:388:IFDHGetCapabilities() tag: 0xFAE, usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000004 [140191530989120] ifdhandler.c:484:IFDHGetCapabilities() Reader supports 1 slot(s)
00000010 [140191539381824] ifdhandler.c:1885:IFDHICCPresence() usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000009 [140191539381824] -> 000000 65 00 00 00 00 00 03 00 00 00 
00000028 [140191530989120] hotplug_libudev.c:655:HPEstablishUSBNotifications() USB Device add
00000235 [140191530989120] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x0169, path: /dev/bus/usb/001/038
00000007 [140191530989120] hotplug_libudev.c:440:HPAddDevice() Adding USB device: Generic USB2.0-CRW
00000010 [140191539381824] <- 000000 81 00 00 00 00 00 03 02 80 03 
00000005 [140191539381824] ifdhandler.c:2005:IFDHICCPresence() Card absent
00000005 [140191539381824] ifdhandler.c:1885:IFDHICCPresence() usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000005 [140191539381824] -> 000000 65 00 00 00 00 00 04 00 00 00 
00000261 [140191539381824] <- 000000 81 00 00 00 00 00 04 02 80 03 
00000005 [140191539381824] ifdhandler.c:2005:IFDHICCPresence() Card absent
00000007 [140191539381824] ifdhandler.c:317:IFDHPolling() usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0) 600000 ms
00000004 [140191539381824] ccid_usb.c:1328:InterruptRead() before (0), timeout: 600000 ms
00000019 [140191530989120] ifdhandler.c:388:IFDHGetCapabilities() tag: 0xFAF, usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000008 [140191530989120] readerfactory.c:726:RFSetReaderName() Support 16 simultaneous readers
00000005 [140191530989120] ifdhandler.c:388:IFDHGetCapabilities() tag: 0xFAD, usb:0bda/0169:libudev:0:/dev/bus/usb/001/038 (lun: 0)
00000003 [140191530989120] readerfactory.c:338:RFAddReader() Driver is thread safe
00000003 [140191530989120] readerfactory.c:1074:RFInitializeReader() Attempting startup of Generic USB2.0-CRW [Bulk-In, Bulk-Out, Interface] (20070818000000000) 01 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000004 [140191530989120] readerfactory.c:863:RFLoadReader() Reusing already loaded driver for /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000006 [140191530989120] readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000008 [140191530989120] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 10000, device: usb:0bda/0169:libudev:1:/dev/bus/usb/001/038
00000004 [140191530989120] ccid_usb.c:237:OpenUSBByName() Reader index: 1, Device: usb:0bda/0169:libudev:1:/dev/bus/usb/001/038
00000006 [140191530989120] ccid_usb.c:269:OpenUSBByName() interface_number: 1
00000002 [140191530989120] ccid_usb.c:270:OpenUSBByName() usb bus/device: 1/38
00000003 [140191530989120] ccid_usb.c:302:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000493 [140191530989120] ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00000006 [140191530989120] ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000004 [140191530989120] ccid_usb.c:322: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.
00000084 [140191530989120] ccid_usb.c:406:OpenUSBByName() Try device: 1/38
00000005 [140191530989120] ccid_usb.c:416:OpenUSBByName() vid/pid : 0BDA/0169
00000003 [140191530989120] ccid_usb.c:482:OpenUSBByName() Checking device: 1/38
00000003 [140191530989120] ccid_usb.c:553:OpenUSBByName() Trying to open USB bus/device: 1/38
00000043 [140191530989120] ccid_usb.c:636:OpenUSBByName() Found interface 0 but expecting 1
00000004 [140191530989120] ccid_usb.c:638:OpenUSBByName() Wrong interface for USB device 1/38. Checking next one.
00000345 [140191530989120] ccid_usb.c:800:OpenUSBByName() Device not found?
00000006 [140191530989120] ifdhandler.c:155:CreateChannelByNameOrChannel() failed
00000005 [140191530989120] readerfactory.c:1105:RFInitializeReader() Open Port 0x200001 Failed (usb:0bda/0169:libudev:1:/dev/bus/usb/001/038)
00000027 [140191530989120] readerfactory.c:376:RFAddReader() Generic USB2.0-CRW [Bulk-In, Bulk-Out, Interface] (20070818000000000) init failed.
00000005 [140191530989120] readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
00000003 [140191530989120] readerfactory.c:1125:RFUnInitializeReader() Attempting shutdown of Generic USB2.0-CRW [Bulk-In, Bulk-Out, Interface] (20070818000000000) 01 00.
@kurthuwig
Copy link
Author

Sorry, wrong project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant