ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi All,

I managed to successfully use the Identive CLOUD 2700 R smart card reader on an old version combination pcsc-lite 1.6.1  and ccid-1.3.13 under Solaris 11. The smart card I use is the ACOS5-64.

However I found an issue that is affecting normal operations and require me to manually remove and reinsert the smart card so that it gets recognized correctly.

Here is the debug output from the pcscd when I started it with a smart card in the slot.

00000000 debuglog.c:277:() debug level=debug
00000390 configfile.l:282:() Parsing conf file: /usr/local/etc/reader.conf
00000039 pcscdaemon.c:528:() pcsc-lite 1.6.1 daemon ready.
00379524 hotplug_libusb.c:500:() Adding USB device: /dev/usb:4e6.5810/0
00013976 readerfactory.c:979:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000495 readerfactory.c:849:() Loading IFD Handler 3.0
00000136 ifdhandler.c:1715:() Driver version: 1.3.13
00000451 ifdhandler.c:1728:() LogLevel: 0x0003
00000400 ifdhandler.c:1748:() DriverOptions: 0x0000
00000044 ifdhandler.c:82:() lun: 0, device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000679 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau ([hidden email])
00000390 ccid_usb.c:294:() ProductString: Generic CCID driver
00000389 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00029691 ccid_usb.c:512:() Found Vendor/Product: 04E6/5810 (Identive CLOUD 2700 R Smart Card Reader)
00000033 ccid_usb.c:515:() Using USB bus/device: /dev/usb/4e6.5810/0
00005407 ccid_usb.c:921:() IFD does not support GET_DATA_RATES request: I/O error

The subsequent output is present when I manually removed and then reinserted the smart card:

99999999 ifdhandler.c:394:() tag: 0xFB0, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00000087 readerfactory.c:273:() Using the pcscd polling thread
00003991 ifdhandler.c:394:() tag: 0xFAE, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00000074 ifdhandler.c:483:() Reader supports 1 slot(s)
00000043 hotplug_libusb.c:410:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000028 hotplug_libusb.c:420:() Polling forced every 1 second(s)
00007750 ifdhandler.c:1134:() action: PowerUp, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00171119 ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00
00000067 atrhandler.c:102:() Conv: 01, Y1: 0B, K: 0E
00000022 atrhandler.c:119:() TA1: 96, TB1: 00, TC1: FFFFFFFF, TD1: 00
00000022 atrhandler.c:153:() T=0 Protocol Found
00000022 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 1
00000022 Card ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00

The smart card operation will only work after this point.

I wonder whether there is anything to do with the I/O error for GET_DATA_RATES such that the card inserted when pcscd starts is not powered on.

I can't really do remove/insert every time because the card reader would be placed inside the computer case for security reasons.

Thanks very much and Best Regards

William To





_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ludovic Rousseau
2016-06-17 10:07 GMT+02:00 William To <[hidden email]>:
Hi All,

Hello,
 

I managed to successfully use the Identive CLOUD 2700 R smart card reader on an old version combination pcsc-lite 1.6.1  and ccid-1.3.13 under Solaris 11. The smart card I use is the ACOS5-64.

However I found an issue that is affecting normal operations and require me to manually remove and reinsert the smart card so that it gets recognized correctly.

Here is the debug output from the pcscd when I started it with a smart card in the slot.

00000000 debuglog.c:277:() debug level=debug
00000390 configfile.l:282:() Parsing conf file: /usr/local/etc/reader.conf
00000039 pcscdaemon.c:528:() pcsc-lite 1.6.1 daemon ready.
00379524 hotplug_libusb.c:500:() Adding USB device: /dev/usb:4e6.5810/0
00013976 readerfactory.c:979:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000495 readerfactory.c:849:() Loading IFD Handler 3.0
00000136 ifdhandler.c:1715:() Driver version: 1.3.13
00000451 ifdhandler.c:1728:() LogLevel: 0x0003
00000400 ifdhandler.c:1748:() DriverOptions: 0x0000
00000044 ifdhandler.c:82:() lun: 0, device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000679 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau ([hidden email])
00000390 ccid_usb.c:294:() ProductString: Generic CCID driver
00000389 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00029691 ccid_usb.c:512:() Found Vendor/Product: 04E6/5810 (Identive CLOUD 2700 R Smart Card Reader)
00000033 ccid_usb.c:515:() Using USB bus/device: /dev/usb/4e6.5810/0
00005407 ccid_usb.c:921:() IFD does not support GET_DATA_RATES request: I/O error

The subsequent output is present when I manually removed and then reinserted the smart card:

99999999 ifdhandler.c:394:() tag: 0xFB0, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00000087 readerfactory.c:273:() Using the pcscd polling thread
00003991 ifdhandler.c:394:() tag: 0xFAE, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00000074 ifdhandler.c:483:() Reader supports 1 slot(s)
00000043 hotplug_libusb.c:410:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000028 hotplug_libusb.c:420:() Polling forced every 1 second(s)
00007750 ifdhandler.c:1134:() action: PowerUp, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00171119 ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00
00000067 atrhandler.c:102:() Conv: 01, Y1: 0B, K: 0E
00000022 atrhandler.c:119:() TA1: 96, TB1: 00, TC1: FFFFFFFF, TD1: 00
00000022 atrhandler.c:153:() T=0 Protocol Found
00000022 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 1
00000022 Card ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00

The smart card operation will only work after this point.

I wonder whether there is anything to do with the I/O error for GET_DATA_RATES such that the card inserted when pcscd starts is not powered on.

I can't really do remove/insert every time because the card reader would be placed inside the computer case for security reasons.

Can you please provide _all_ the information as listed in http://pcsclite.alioth.debian.org/ccid.html#support ?

Thanks

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi All,

Versions

  • CCID driver version  <-- 1.3.13
  • pcsc-lite version      <-- 1.6.1
  • smart card reader name    <-- identive 2700 R (04e6:5810)
  • the output of the command "/usr/sbin/pcscd --version"
pcsc-lite version 1.6.1.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2010 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Solaris i386-pc-solaris2.11 serial usb libusb usbdropdir=/usr/local/pcsc/drivers debugatr ipcdir=/var/run/pcscd sysconfdir=/usr/local/etc

Platform

  • Operating system or GNU/Linux distribution name and version   <-- Solaris 11.3
  • Smart card middleware name and version  <-- ??
  • Reader manufacturer name and reader model name  <-- identive 2700 R (04e6:5810)
  • Smart card name  <-- ACOS5-64

Issue: whenever pcscd is started with the card reader plugged in to usb port, and smart card plugged into the card reader slot, the pcscd does not recognize the currently inserted smart card, and require manual remove/insert cycle to recognize it.

Log:

00000000 debuglog.c:277:() debug level=debug
00000057 debuglog.c:306:() Debug options: APDU
00000379 configfile.l:282:() Parsing conf file: /usr/local/etc/reader.conf
00000033 pcscdaemon.c:528:() pcsc-lite 1.6.1 daemon ready.
00354708 hotplug_libusb.c:500:() Adding USB device: /dev/usb:4e6.5810/0
00012960 readerfactory.c:979:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000514 readerfactory.c:849:() Loading IFD Handler 3.0
00000139 ifdhandler.c:1715:() Driver version: 1.3.13
00000428 ifdhandler.c:1728:() LogLevel: 0x0003
00000035 ifdhandler.c:1738:() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000407 ifdhandler.c:1748:() DriverOptions: 0x0000
00000046 ifdhandler.c:82:() lun: 0, device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000037 ccid_usb.c:167:() Reader index: 0, Device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000635 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau ([hidden email])
00000391 ccid_usb.c:294:() ProductString: Generic CCID driver
00000394 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00029684 ccid_usb.c:395:() Checking device: /dev/usb/4e6.5810/0
00000030 ccid_usb.c:449:() Trying to open USB bus/device: /dev/usb/4e6.5810/0
00000123 ccid_usb.c:512:() Found Vendor/Product: 04E6/5810 (Identive CLOUD 2700 R Smart Card Reader)
00000032 ccid_usb.c:515:() Using USB bus/device: /dev/usb/4e6.5810/0
00000033 ccid_usb.c:978:() request: 0x03
00006070 receive:
00000114 ccid_usb.c:921:() IFD does not support GET_DATA_RATES request: I/O error
00011870 ccid_usb.c:1003:() before (0)
^C03561153 pcscdaemon.c:649:() Received signal: 2
00000041 pcscdaemon.c:654:() Preparing for suicide

Thanks very much and Best Regards

William To




On Fri, Jun 17, 2016 at 4:20 PM, Ludovic Rousseau <[hidden email]> wrote:
2016-06-17 10:07 GMT+02:00 William To <[hidden email]>:
Hi All,

Hello,
 

I managed to successfully use the Identive CLOUD 2700 R smart card reader on an old version combination pcsc-lite 1.6.1  and ccid-1.3.13 under Solaris 11. The smart card I use is the ACOS5-64.

However I found an issue that is affecting normal operations and require me to manually remove and reinsert the smart card so that it gets recognized correctly.

Here is the debug output from the pcscd when I started it with a smart card in the slot.

00000000 debuglog.c:277:() debug level=debug
00000390 configfile.l:282:() Parsing conf file: /usr/local/etc/reader.conf
00000039 pcscdaemon.c:528:() pcsc-lite 1.6.1 daemon ready.
00379524 hotplug_libusb.c:500:() Adding USB device: /dev/usb:4e6.5810/0
00013976 readerfactory.c:979:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000495 readerfactory.c:849:() Loading IFD Handler 3.0
00000136 ifdhandler.c:1715:() Driver version: 1.3.13
00000451 ifdhandler.c:1728:() LogLevel: 0x0003
00000400 ifdhandler.c:1748:() DriverOptions: 0x0000
00000044 ifdhandler.c:82:() lun: 0, device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000679 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau ([hidden email])
00000390 ccid_usb.c:294:() ProductString: Generic CCID driver
00000389 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00029691 ccid_usb.c:512:() Found Vendor/Product: 04E6/5810 (Identive CLOUD 2700 R Smart Card Reader)
00000033 ccid_usb.c:515:() Using USB bus/device: /dev/usb/4e6.5810/0
00005407 ccid_usb.c:921:() IFD does not support GET_DATA_RATES request: I/O error

The subsequent output is present when I manually removed and then reinserted the smart card:

99999999 ifdhandler.c:394:() tag: 0xFB0, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00000087 readerfactory.c:273:() Using the pcscd polling thread
00003991 ifdhandler.c:394:() tag: 0xFAE, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00000074 ifdhandler.c:483:() Reader supports 1 slot(s)
00000043 hotplug_libusb.c:410:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000028 hotplug_libusb.c:420:() Polling forced every 1 second(s)
00007750 ifdhandler.c:1134:() action: PowerUp, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)
00171119 ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00
00000067 atrhandler.c:102:() Conv: 01, Y1: 0B, K: 0E
00000022 atrhandler.c:119:() TA1: 96, TB1: 00, TC1: FFFFFFFF, TD1: 00
00000022 atrhandler.c:153:() T=0 Protocol Found
00000022 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 1
00000022 Card ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00

The smart card operation will only work after this point.

I wonder whether there is anything to do with the I/O error for GET_DATA_RATES such that the card inserted when pcscd starts is not powered on.

I can't really do remove/insert every time because the card reader would be placed inside the computer case for security reasons.

Can you please provide _all_ the information as listed in http://pcsclite.alioth.debian.org/ccid.html#support ?

Thanks

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ludovic Rousseau


2016-06-17 10:32 GMT+02:00 William To <[hidden email]>:
Hi All,

Versions

  • CCID driver version  <-- 1.3.13
  • pcsc-lite version      <-- 1.6.1
  • smart card reader name    <-- identive 2700 R (04e6:5810)
  • the output of the command "/usr/sbin/pcscd --version"
pcsc-lite version 1.6.1.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2010 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Solaris i386-pc-solaris2.11 serial usb libusb usbdropdir=/usr/local/pcsc/drivers debugatr ipcdir=/var/run/pcscd sysconfdir=/usr/local/etc

Platform

  • Operating system or GNU/Linux distribution name and version   <-- Solaris 11.3
  • Smart card middleware name and version  <-- ??
  • Reader manufacturer name and reader model name  <-- identive 2700 R (04e6:5810)
  • Smart card name  <-- ACOS5-64

Issue: whenever pcscd is started with the card reader plugged in to usb port, and smart card plugged into the card reader slot, the pcscd does not recognize the currently inserted smart card, and require manual remove/insert cycle to recognize it.

Log:

00000000 debuglog.c:277:() debug level=debug
00000057 debuglog.c:306:() Debug options: APDU
00000379 configfile.l:282:() Parsing conf file: /usr/local/etc/reader.conf
00000033 pcscdaemon.c:528:() pcsc-lite 1.6.1 daemon ready.
00354708 hotplug_libusb.c:500:() Adding USB device: /dev/usb:4e6.5810/0
00012960 readerfactory.c:979:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000514 readerfactory.c:849:() Loading IFD Handler 3.0
00000139 ifdhandler.c:1715:() Driver version: 1.3.13
00000428 ifdhandler.c:1728:() LogLevel: 0x0003
00000035 ifdhandler.c:1738:() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000407 ifdhandler.c:1748:() DriverOptions: 0x0000
00000046 ifdhandler.c:82:() lun: 0, device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000037 ccid_usb.c:167:() Reader index: 0, Device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000635 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau ([hidden email])
00000391 ccid_usb.c:294:() ProductString: Generic CCID driver
00000394 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00029684 ccid_usb.c:395:() Checking device: /dev/usb/4e6.5810/0
00000030 ccid_usb.c:449:() Trying to open USB bus/device: /dev/usb/4e6.5810/0
00000123 ccid_usb.c:512:() Found Vendor/Product: 04E6/5810 (Identive CLOUD 2700 R Smart Card Reader)
00000032 ccid_usb.c:515:() Using USB bus/device: /dev/usb/4e6.5810/0
00000033 ccid_usb.c:978:() request: 0x03
00006070 receive:
00000114 ccid_usb.c:921:() IFD does not support GET_DATA_RATES request: I/O error
00011870 ccid_usb.c:1003:() before (0)
^C03561153 pcscdaemon.c:649:() Received signal: 2
00000041 pcscdaemon.c:654:() Preparing for suicide


I do not see any CCID communication in your trace.
I do not see any call to IFDHICCPresence().

Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?

The log line:
00000087 readerfactory.c:273:() Using the pcscd polling thread
was present in your first log but is no more present here. Do you use the same versions of pcsc-lite and libccid in the 2 log traces?

Did you have a smart card inserted when you generated the trace?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi  All, 


On Fri, Jun 17, 2016 at 7:15 PM, Ludovic Rousseau <[hidden email]> wrote:


2016-06-17 10:32 GMT+02:00 William To <[hidden email]>:
Hi All,

Versions

  • CCID driver version  <-- 1.3.13
  • pcsc-lite version      <-- 1.6.1
  • smart card reader name    <-- identive 2700 R (04e6:5810)
  • the output of the command "/usr/sbin/pcscd --version"
pcsc-lite version 1.6.1.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) <a href="tel:2001-2010" value="+85220012010" target="_blank">2001-2010 by Ludovic Rousseau <[hidden email]>.
Copyright (C) <a href="tel:2003-2004" value="+85220032004" target="_blank">2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Solaris i386-pc-solaris2.11 serial usb libusb usbdropdir=/usr/local/pcsc/drivers debugatr ipcdir=/var/run/pcscd sysconfdir=/usr/local/etc

Platform

  • Operating system or GNU/Linux distribution name and version   <-- Solaris 11.3
  • Smart card middleware name and version  <-- ??
  • Reader manufacturer name and reader model name  <-- identive 2700 R (04e6:5810)
  • Smart card name  <-- ACOS5-64

Issue: whenever pcscd is started with the card reader plugged in to usb port, and smart card plugged into the card reader slot, the pcscd does not recognize the currently inserted smart card, and require manual remove/insert cycle to recognize it.

Log:

00000000 debuglog.c:277:() debug level=debug
00000057 debuglog.c:306:() Debug options: APDU
00000379 configfile.l:282:() Parsing conf file: /usr/local/etc/reader.conf
00000033 pcscdaemon.c:528:() pcsc-lite 1.6.1 daemon ready.
00354708 hotplug_libusb.c:500:() Adding USB device: /dev/usb:4e6.5810/0
00012960 readerfactory.c:979:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000514 readerfactory.c:849:() Loading IFD Handler 3.0
00000139 ifdhandler.c:1715:() Driver version: 1.3.13
00000428 ifdhandler.c:1728:() LogLevel: 0x0003
00000035 ifdhandler.c:1738:() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000407 ifdhandler.c:1748:() DriverOptions: 0x0000
00000046 ifdhandler.c:82:() lun: 0, device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000037 ccid_usb.c:167:() Reader index: 0, Device: usb:04e6/5810:libusb:/dev/usb:4e6.5810/0
00000635 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau ([hidden email])
00000391 ccid_usb.c:294:() ProductString: Generic CCID driver
00000394 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00029684 ccid_usb.c:395:() Checking device: /dev/usb/4e6.5810/0
00000030 ccid_usb.c:449:() Trying to open USB bus/device: /dev/usb/4e6.5810/0
00000123 ccid_usb.c:512:() Found Vendor/Product: 04E6/5810 (Identive CLOUD 2700 R Smart Card Reader)
00000032 ccid_usb.c:515:() Using USB bus/device: /dev/usb/4e6.5810/0
00000033 ccid_usb.c:978:() request: 0x03
00006070 receive:
00000114 ccid_usb.c:921:() IFD does not support GET_DATA_RATES request: I/O error
00011870 ccid_usb.c:1003:() before (0)
^C03561153 pcscdaemon.c:649:() Received signal: 2
00000041 pcscdaemon.c:654:() Preparing for suicide


I do not see any CCID communication in your trace.
I do not see any call to IFDHICCPresence().
If I start pcscd with the card inserted into the reader and with the reader inserted to the usb port.  

Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?
I didn't modify the source code. I only modified the Info.plist and added the support for the card reader.  

The log line:
00000087 readerfactory.c:273:() Using the pcscd polling thread
was present in your first log but is no more present here. Do you use the same versions of pcsc-lite and libccid in the 2 log traces?

The first log was generated with the manual card removal/insertion. 
 
Did you have a smart card inserted when you generated the trace?

For both logs, card is inserted before pcscd starts. The second part of first log was generated when card is manually removed and inserted. 

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ludovic Rousseau
2016-06-19 2:14 GMT+02:00 William To <[hidden email]>:

On Fri, Jun 17, 2016 at 7:15 PM, Ludovic Rousseau <[hidden email]> wrote:
Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?
I didn't modify the source code. I only modified the Info.plist and added the support for the card reader.  

You are using pcsc-lite and libccid versions from 2010.
Do you use the binaries provided by Oracle?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi All,

I don't use the binaries from Oracle as they don't have binaries working with Solaris 11. I built that myself.

Regards

William To

On Mon, Jun 20, 2016 at 4:35 PM, Ludovic Rousseau <[hidden email]> wrote:
2016-06-19 2:14 GMT+02:00 William To <[hidden email]>:

On Fri, Jun 17, 2016 at 7:15 PM, Ludovic Rousseau <[hidden email]> wrote:
Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?
I didn't modify the source code. I only modified the Info.plist and added the support for the card reader.  

You are using pcsc-lite and libccid versions from 2010.
Do you use the binaries provided by Oracle?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
In reply to this post by Ludovic Rousseau
Hi All,

Unfortunately this is the only version that will compile and run under Solaris 11.

I have looked into the code and does not really understand why.

Regards

William To



On Mon, Jun 20, 2016 at 4:35 PM, Ludovic Rousseau <[hidden email]> wrote:
2016-06-19 2:14 GMT+02:00 William To <[hidden email]>:

On Fri, Jun 17, 2016 at 7:15 PM, Ludovic Rousseau <[hidden email]> wrote:
Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?
I didn't modify the source code. I only modified the Info.plist and added the support for the card reader.  

You are using pcsc-lite and libccid versions from 2010.
Do you use the binaries provided by Oracle?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ivo Raisr


On 23.6.2016 08:24, William To wrote:
Hi All,

Unfortunately this is the only version that will compile and run under Solaris 11.

Have a look at:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite
https://java.net/projects/solaris-userland/sources/gate/show/components/ccid

There are a set of patches against a recent pcsc-lite and libccid.

Kind regards,
Ivo Raisr

On Mon, Jun 20, 2016 at 4:35 PM, Ludovic Rousseau <[hidden email]> wrote:
2016-06-19 2:14 GMT+02:00 William To <[hidden email]>:

On Fri, Jun 17, 2016 at 7:15 PM, Ludovic Rousseau <[hidden email]> wrote:
Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?
I didn't modify the source code. I only modified the Info.plist and added the support for the card reader.  

You are using pcsc-lite and libccid versions from 2010.
Do you use the binaries provided by Oracle?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi Ivo,

I run Solaris 11.3 on x86 platform. Does that patch still apply?

Regards


William To

On Thu, Jun 23, 2016 at 2:36 PM, Ivo Raisr <[hidden email]> wrote:


On 23.6.2016 08:24, William To wrote:
Hi All,

Unfortunately this is the only version that will compile and run under Solaris 11.

Have a look at:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite
https://java.net/projects/solaris-userland/sources/gate/show/components/ccid

There are a set of patches against a recent pcsc-lite and libccid.

Kind regards,
Ivo Raisr

On Mon, Jun 20, 2016 at 4:35 PM, Ludovic Rousseau <[hidden email][hidden email]> wrote:
2016-06-19 2:14 GMT+02:00 William To <[hidden email][hidden email]>:

On Fri, Jun 17, 2016 at 7:15 PM, Ludovic Rousseau <[hidden email][hidden email]> wrote:
Have you modified pcsc-lite and/or libccid to get them compile on Solaris?
If yes, what are the modifications?
I didn't modify the source code. I only modified the Info.plist and added the support for the card reader.  

You are using pcsc-lite and libccid versions from 2010.
Do you use the binaries provided by Oracle?

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ivo Raisr


On 23.6.2016 08:53, William To wrote:
> Hi Ivo,
>
> I run Solaris 11.3 on x86 platform. Does that patch still apply?

Yes, they do. Do you have working libusb?
You can find patches here:
https://java.net/projects/solaris-userland/sources/gate/show/components/libusb-1

And as I said previously, we will integrate pcsc-lite and its dependencies
into Solaris 11.3 quite soon.

I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi All,

Thanks for pointing me to the solaris-userland for updated libusb / pcsc-lite / ccid. However I have trouble building the 32-bit pcsc-lite under that framework.

Does anybody know about any support mailing lists for solaris-userland? This issue is not very related to pcsc-lite so I would like to ask for help somewhere else.

Regards

William To

On Thu, Jun 23, 2016 at 2:58 PM, Ivo Raisr <[hidden email]> wrote:


On 23.6.2016 08:53, William To wrote:
Hi Ivo,

I run Solaris 11.3 on x86 platform. Does that patch still apply?

Yes, they do. Do you have working libusb?
You can find patches here:
https://java.net/projects/solaris-userland/sources/gate/show/components/libusb-1

And as I said previously, we will integrate pcsc-lite and its dependencies
into Solaris 11.3 quite soon.

I.


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

William To
Hi All,

I have built the updated pcsc-lite (1.8.14), ccid (1.4.20) and libusb (1.0.20) for 32 and 64 bits using the source repository from Ivo.

However this is what I got from the foreground debug output:

 sudo pcscd --debug --foreground
00000000 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/pcscdaemon.c:353:() pcscd set to foreground with debug send to stdout
00000701 configfile.l:346:() Parsing conf file: /etc/reader.conf.d
00000021 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/pcscdaemon.c:674:() pcsc-lite 1.8.14 daemon ready.
00051993 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:538:() Adding USB device: 235:2:0
00013896 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1012:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00002940 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:898:() Loading IFD Handler 3.0
00000377 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1043:() Open Port 0x200000 Failed (usb:04e6/5810:libusb-1.0:235:2:0)
00000014 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:336:() Identive CLOUD 2700 R Smart Card Reader (53691433210867) init failed.
00000008 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:559:() UnrefReader() count was: 1
00000007 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1063:() Attempting shutdown of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00.
00000006 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:935:() Unloading reader driver.
00000205 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:440:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000072 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:450:() Polling forced every 1 second(s)
47552065 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:627:() Removing USB device[0]: 235:2:0
01260260 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:538:() Adding USB device: 235:2:0
00014549 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1012:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000454 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:898:() Loading IFD Handler 3.0
00000208 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1043:() Open Port 0x200000 Failed (usb:04e6/5810:libusb-1.0:235:2:0)
00000011 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:336:() Identive CLOUD 2700 R Smart Card Reader (53691433210867) init failed.
00000008 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:559:() UnrefReader() count was: 1
00000007 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1063:() Attempting shutdown of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00.
00000006 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:935:() Unloading reader driver.
05070681 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:627:() Removing USB device[0]: 235:2:0
03466404 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/hotplug_libusb.c:538:() Adding USB device: 235:2:0
00014191 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1012:() Attempting startup of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000416 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:898:() Loading IFD Handler 3.0
00000206 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1043:() Open Port 0x200000 Failed (usb:04e6/5810:libusb-1.0:235:2:0)
00000011 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:336:() Identive CLOUD 2700 R Smart Card Reader (53691433210867) init failed.
00000008 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:559:() UnrefReader() count was: 1
00000006 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1063:() Attempting shutdown of Identive CLOUD 2700 R Smart Card Reader (53691433210867) 00 00.
00000006 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:935:() Unloading reader driver.
49689440 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/pcscdaemon.c:194:() Received signal: 15
00000029 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/pcscdaemon.c:214:() Direct suicide
00000007 /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/pcscdaemon.c:799:() cleaning /var/run/pcscd

I have also tried using another reader that is known to work and still the same results.

Regards

William To




On Thu, Jun 30, 2016 at 9:52 AM, William To <[hidden email]> wrote:
Hi All,

Thanks for pointing me to the solaris-userland for updated libusb / pcsc-lite / ccid. However I have trouble building the 32-bit pcsc-lite under that framework.

Does anybody know about any support mailing lists for solaris-userland? This issue is not very related to pcsc-lite so I would like to ask for help somewhere else.

Regards

William To

On Thu, Jun 23, 2016 at 2:58 PM, Ivo Raisr <[hidden email]> wrote:


On 23.6.2016 08:53, William To wrote:
Hi Ivo,

I run Solaris 11.3 on x86 platform. Does that patch still apply?

Yes, they do. Do you have working libusb?
You can find patches here:
https://java.net/projects/solaris-userland/sources/gate/show/components/libusb-1

And as I said previously, we will integrate pcsc-lite and its dependencies
into Solaris 11.3 quite soon.

I.


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ivo Raisr
In reply to this post by William To


On 30.6.2016 03:52, William To wrote:

> Hi All,
>
> Thanks for pointing me to the solaris-userland for updated libusb /
> pcsc-lite / ccid. However I have trouble building the 32-bit pcsc-lite
> under that framework.
>
> Does anybody know about any support mailing lists for
> solaris-userland? This issue is not very related to pcsc-lite so I
> would like to ask for help somewhere else.
>

Hi William,

If you have a support license, please raise an SR and it will be routed
to us accordingly.
Otherwise I am afraid there is no external support mailing list directly
for solaris-userland.

You can leverage public forums instead, such as:
https://community.oracle.com/community/server_%26_storage_systems/solaris
https://community.oracle.com/community/server_%26_storage_systems/application_development_in_c__c%2B%2B__and_fortran

http://stackoverflow.com/questions/tagged/solaris
http://unix.stackexchange.com/questions/tagged/solaris
http://serverfault.com/questions/tagged/solaris
http://superuser.com/questions/tagged/solaris
http://stackexchange.com/filters/448/solaris

I.



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ludovic Rousseau
In reply to this post by William To
2016-06-30 10:15 GMT+02:00 William To <[hidden email]>:
> Hi All,

Hello,

> I have built the updated pcsc-lite (1.8.14), ccid (1.4.20) and libusb
> (1.0.20) for 32 and 64 bits using the source repository from Ivo.
>
> However this is what I got from the foreground debug output:
>
>  sudo pcscd --debug --foreground
[...]
> /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:898:()
> Loading IFD Handler 3.0
> /export/home/wto/solaris-userland~gate/components/pcsc-lite/pcsc-lite-1.8.14/src/readerfactory.c:1043:()
> Open Port 0x200000 Failed (usb:04e6/5810:libusb-1.0:235:2:0)

It is strange that you get NO log message from the CCID driver.

I had a quick lock at
https://java.net/projects/solaris-userland/sources/gate/show/components/ccid
and https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite
but could not find an explanation.

Libccid calls log_msg() and log_xxd() functions exported by pcscd to
log messages.
You should have a look in this direction.

Log messages from the CCID driver would greatly help debug the problem.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ivo Raisr

On 30.6.2016 11:15, Ludovic Rousseau wrote:

> It is strange that you get NO log message from the CCID driver.

I think you need to configure debugging of ccid in
/usr/lib/64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist

Search for ifdLogLevel and explanation below.
After modifying ccid configuration, either replug the reader or restart
pcscd.

Then post again the debug log with ccid debugging turned on.

We use Identive SCR3310 v2.0 USB SC Reader for in-house testing and it
works ok for us.

I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ccid 1.3.13 IFD require manual smart card remove/insert to recognize the currently inserted smart card

Ludovic Rousseau
2016-06-30 19:26 GMT+02:00 Ivo Raisr <[hidden email]>:
>
> On 30.6.2016 11:15, Ludovic Rousseau wrote:
>
>> It is strange that you get NO log message from the CCID driver.
>
>
> I think you need to configure debugging of ccid in
> /usr/lib/64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist

In fact, William, you need to use the command exactly as documented in
https://pcsclite.alioth.debian.org/ccid.html#support

sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu
--color | tee log.txt

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle