OpenWrt Forum Archive

Topic: Smartcard reader

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi. I have a router ADB Broadband A4001N.
I have ver Chaos Calmer OpenWrt 15.05.1.
I want to use a reader who has connections for various flash cards and smartcard reader also has. The flash cards work without problem. But I can not detect the Smartcard reader.
The device is this: http://sveon.com/productos/sconnect-con … sb/sct012/

Trying things took 3 days but can not get it to work.
With the opensc-tool -l command he tells me not find any reader.

I leave some data.

Bus 001 Device 003: ID 1307: 0361 Transcend Information, Inc. CR-75: 51-in-1 Card Reader / Writer [Sakar]
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x1307 Transcend Information, Inc.
  idProduct 0x0361 CR-75: 51-in-1 Card Reader / Writer [Sakar]
  bcdDevice 1.00
  Generic iManufacturer 1
  iProduct 2 MultiCard Device
  iserial 3 000000000000100
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 62
    bNumInterfaces 2
    bConfigurationValue 1
    IConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 500mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk-Only
      IInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        0x0200 1x 512 bytes wMaxPacketSize
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        0x0200 1x 512 bytes wMaxPacketSize
        bInterval 1
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 3
      bInterfaceProtocol 96
      IInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x84 EP 4 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        0x0001 1x 1 bytes wMaxPacketSize
        bInterval 16
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x05 EP 5 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        0x0010 1x 16 bytes wMaxPacketSize
        bInterval 16
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x86 EP 6 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        0x0010 1x 16 bytes wMaxPacketSize
        bInterval 16
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1
Device Status: 0x0000
  (Bus Powered)

Greetings.

Smartcards low level functionality is provided to user programs via PC/SC subsystem daemon called "pcscd". Its absolutely required.
USB driver is also required for specific smart card reader. Although there's standard protocol "CCID"  supported by most readers. First check if usb device is associated with kmod.
Insert you reader to PC linux system and look which driver supports it then try to search openwrt repo for the same kmod.

There is a pcscd package as shown below.

 .config - OpenWrt Configuration
 > Search (pcscd) ────────────────────────────────────────────────────────────────────
  ┌──────────────────────────────── Search Results ────────────────────────────────┐
  │ Symbol: DEFAULT_pcscd [=DEFAULT_pcscd]                                         │  
  │ Type  : unknown                                                                │  
  │                                                                                │  
  │                                                                                │  
  │ Symbol: PACKAGE_pcscd [=n]                                                     │  
  │ Type  : tristate                                                               │  
  │ Prompt: pcscd                                                                  │  
  │   Location:                                                                    │  
  │ (1) -> Utilities                                                               │  
  │   Defined at tmp/.config-package.in:127931                                     │  
  │   Selects: PACKAGE_libc [=y] && PACKAGE_librt [=y] && PACKAGE_libpcsclite [=n] │  
  │   Selected by: PACKAGE_libnfc [=n]                                             │  
  │                                                                                │  
  │                                                                                │  
  │                                                                                │  
  │                                                                                │  
  ├────────────────────────────────────────────────────────────────────────(100%)──┤  
  │                                    < Exit >                                    │  
  └────────────────────────────────────────────────────────────────────────────────┘  
    

I'll try the reader on a Ubuntu distro. As I can know that is linked Kmod the reader? Or modules used? In the router is installed opensc and I pcscd.

GonzaloR wrote:

I'll try the reader on a Ubuntu distro. As I can know that is linked Kmod the reader? Or modules used? In the router is installed opensc and I pcscd.

"usb-devices".  see Driver=xxx

In Ubuntu you not recognize me and no drivers. I changed the reader for LTC31 C3PO and run to first.

The discussion might have continued from here.