Pagina 1 di 1

usb smart card reader

Inviato: mar 29 gen 2008, 18:50
da riotten
ciao,
mi è stato dato da un'amico uno smart card reader USB, nello specifico Hamlet HUSCR2, ho provato ad installare OpenSC (http://www.opensc-project.org) ma non viene rilevato dal programma mentre se lancio lsusb -v viene correttamente rilevato

Codice: Seleziona tutto

Bus 2 Device 4: ID 058f:9520 Alcor Micro Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x058f Alcor Micro Corp.
  idProduct          0x9520 
  bcdDevice            1.02
  iManufacturer           1 Generic
  iProduct                2 EMV Smartcard Reader
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.00
        nMaxSlotIndex           0
        bVoltageSupport         3  5.0V 3.0V 
        dwProtocols             3  T=0 T=1
        dwDefaultClock       3700
        dwMaxiumumClock      3700
        bNumClockSupported      1
        dwDataRate           9946 bps
        dwMaxDataRate      318280 bps
        bNumDataRatesSupp.     53
        dwMaxIFSD             254
        dwSyncProtocols  00000007  2-wire 3-wire I2C
        dwMechanical     00000000 
        dwFeatures       000204BE
          Auto configuration based on ATR
          Auto activation on insert
          Auto voltage selection
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          Auto IFSD exchange
          Short APDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse    echo
        bClassEnvelope       echo
        wlcdLayout           none
        bPINSupport             0 
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
qualche idea?

Re: usb smart card reader

Inviato: mer 30 gen 2008, 0:28
da pedrus
Ciao. Vedi se qui c'è la soluzione al tuo problema: viewtopic.php?f=6&t=20294

Re: usb smart card reader

Inviato: mer 30 gen 2008, 13:48
da riotten
Ho provato, ma non ho trovato nessuna soluzione....posso postare il tail -f /var/log/messages

Codice: Seleziona tutto

Jan 30 13:44:02 MANSU kernel: usb 2-1: new full speed USB device using ohci_hcd and address 8
Jan 30 13:44:03 MANSU kernel: usb 2-1: configuration #1 chosen from 1 choice
non riesco a capire
1) se funziona il lettore correttamente
2) se funziona, non capisco come montare la scheda magnetica

Re: usb smart card reader

Inviato: lun 11 feb 2008, 20:20
da luca_tech
riotten ha scritto:ciao,
mi è stato dato da un'amico uno smart card reader USB, nello specifico Hamlet HUSCR2, ho provato ad installare OpenSC (http://www.opensc-project.org) ma non viene rilevato dal programma mentre se lancio lsusb -v viene correttamente rilevato

Codice: Seleziona tutto

Bus 2 Device 4: ID 058f:9520 Alcor Micro Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x058f Alcor Micro Corp.
  idProduct          0x9520 
  bcdDevice            1.02
  iManufacturer           1 Generic
  iProduct                2 EMV Smartcard Reader
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.00
        nMaxSlotIndex           0
        bVoltageSupport         3  5.0V 3.0V 
        dwProtocols             3  T=0 T=1
        dwDefaultClock       3700
        dwMaxiumumClock      3700
        bNumClockSupported      1
        dwDataRate           9946 bps
        dwMaxDataRate      318280 bps
        bNumDataRatesSupp.     53
        dwMaxIFSD             254
        dwSyncProtocols  00000007  2-wire 3-wire I2C
        dwMechanical     00000000 
        dwFeatures       000204BE
          Auto configuration based on ATR
          Auto activation on insert
          Auto voltage selection
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          Auto IFSD exchange
          Short APDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse    echo
        bClassEnvelope       echo
        wlcdLayout           none
        bPINSupport             0 
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
qualche idea?
Il mio parere è dai un'occhiata a questo lettore http://shop.blutronics.com/ViewProdotti.asp?Id=751

Linux, solaris, mac senza problemi con driver in source code compilabile dove ti pare.

Ciao, luca

Re: usb smart card reader

Inviato: mer 13 feb 2008, 19:39
da Luci0
pedrus ha scritto:Ciao. Vedi se qui c'è la soluzione al tuo problema: viewtopic.php?f=6&t=20294
Ciao pedrus ... credo che riotten stia parlando di un lettore di schede smartcard, che vengono usate spesso dai commercialisti per la firma digitale ( http://it.wikipedia.org/wiki/Smart_card. )
La smartcard non é semplice da gestire con Linux e non é un dispositivo tipo USB-Storage come una penna USB o una SD etc etc. :-)

Re: usb smart card reader

Inviato: mer 13 feb 2008, 19:52
da riotten
Luci0 ha scritto:
pedrus ha scritto:Ciao. Vedi se qui c'è la soluzione al tuo problema: viewtopic.php?f=6&t=20294
Ciao pedrus ... credo che riotten stia parlando di un lettore di schede smartcard, che vengono usate spesso dai commercialisti per la firma digitale
La smartcard non é semplice da gestire con Linux e non é un dispositivo tipo USB-Storage come una penna USB o una SD etc etc. :-)
.......esattamente Luci0, hai qualche idea/guida/programma per la gestione della periferica su Linux?

Re: usb smart card reader

Inviato: mer 13 feb 2008, 22:01
da Luci0
Mi dispiace ma conosco solo il tipo di problema e nulla più ... ho provato con google a cercare "dike linux" ed é uscito questo ...
http://opensignature.sourceforge.net/ spero che sia utile ...

Re: usb smart card reader

Inviato: ven 15 feb 2008, 16:05
da luca_tech
Ragazzi, mi sono perso.

Ma il problema è programmare le smart card oppure fare una specifica applicazione?

Qui trovate un sistema di sviluppo semplice ed intuitivo per programmare le smart card e fare delle applicazioni al volo.

Il sistema base è Windows ma una volta programmato il file system la card può essere gestita semplicemente anche sotto linux.

Infatti queste smart card sono delle smart card a microprocessore quindi funzionanti regolarmente con PCSC Lite vis APDU standard ISO7816.

Fatemi sapere che approfondiamo.

Bye, Luca

Re: usb smart card reader

Inviato: mar 19 feb 2008, 21:15
da riotten
luca_tech ha scritto:Ma il problema è programmare le smart card oppure fare una specifica applicazione?
Far funzionare il lettore sotto Linux e poi programmare le SmartCard
luca_tech ha scritto:Infatti queste smart card sono delle smart card a microprocessore quindi funzionanti regolarmente con PCSC Lite vis APDU standard ISO7816.
si, dovrebbero funzionare regolarmente.il più per ora è sapere come gestirle.
luca_tech ha scritto:Il sistema base è Windows ma una volta programmato il file system la card può essere gestita semplicemente anche sotto linux.
..infatti, come si gestisce sotto linux?..io puntavo a configurarla, e programmarla, interamente sotto OS Gnu/Linux e/o *BSD senza far ricorso a Windows.
Conosci qualche guida che spieghi come gestire un lettore SmartCard sotto Linux?

Re: usb smart card reader

Inviato: mar 19 feb 2008, 22:32
da Luci0
Avete provato intanto il Dike per Linux ... cosi per vedere l' effetto che fà ?

Re: usb smart card reader

Inviato: mer 20 feb 2008, 10:41
da sbabaro
non sono sicuro di aver compreso bene il problema del topic.
Il prblema non è tanto il reader, quanto la smart card
se si vuole usare la firma digitale bisogna assicurarsi che la smart card venga fornita corredata da librerie pkcs11 fornite dal produttore del chip della carta.
Questa cosa non è minimamente scontata in quanto è quasi impossibile che vengano fornite in versione compilabile, e quindi richiedono un ambiente compatibile con la compilazione stessa