<div dir="ltr"><div><div><div><div>Hi All, <br><br></div>I have done the crazy thing of adding the vendor/product ID and human readable name to the Info.plist file and attempted to perform read/write on the card inserted to the smart card reader, and here is what I got:<br><br>0000072 winscard_svc.c:290:() Thread is started: dwClientID=4, threadContext @808E288<br>00000036 winscard_svc.c:308:() Received command: CMD_VERSION from client 4<br>00000024 winscard_svc.c:324:() Client is protocol version 4:0<br>00000021 winscard_svc.c:349:() CMD_VERSION rv=0x0 for client 4<br>00000072 winscard_svc.c:308:() Received command: ESTABLISH_CONTEXT from client 4<br>00000029 winscard.c:218:() Establishing Context: 0x1034607<br>00000021 winscard_svc.c:405:() ESTABLISH_CONTEXT rv=0x0 for client 4<br>00000095 winscard_svc.c:308:() Received command: CMD_GET_READERS_STATE from client 4<br>00000240 winscard_svc.c:308:() Received command: CONNECT from client 4<br>00000027 winscard.c:278:() Attempting Connect to Identive CLOUD 2700 R Smart Card Reader (21121226200082) 00 00 using protocol: 3<br>00000023 ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00 <br>00000021 atrhandler.c:102:() Conv: 01, Y1: 0B, K: 0E<br>00000021 atrhandler.c:119:() TA1: 96, TB1: 00, TC1: FFFFFFFF, TD1: 00<br>00000019 atrhandler.c:153:() T=0 Protocol Found<br>00000019 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 1<br>00000020 ATR: 3B BE 96 00 00 41 05 20 00 00 00 00 00 00 00 00 00 90 00 <br>00000020 atrhandler.c:102:() Conv: 01, Y1: 0B, K: 0E<br>00000021 atrhandler.c:119:() TA1: 96, TB1: 00, TC1: FFFFFFFF, TD1: 00<br>00000018 atrhandler.c:153:() T=0 Protocol Found<br>00000021 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 1<br>00000019 prothandler.c:127:() Attempting PTS to T=0<br>00000028 ifdhandler.c:673:() protocol T=0, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br>00009888 winscard.c:423:() Active Protocol: T=0<br>00000039 winscard.c:444:() hCard Identity: 1d223<br>00000023 winscard_svc.c:447:() CONNECT rv=0x0 for client 4<br>00000156 winscard_svc.c:308:() Received command: GET_ATTRIB from client 4<br>00000053 ifdhandler.c:394:() tag: 0x90303, usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br>00000033 winscard_svc.c:720:() GET_ATTRIB rv=0x0 for client 4<br>00000135 winscard_svc.c:308:() Received command: TRANSMIT from client 4<br>00000050 winscard.c:1636:() Send Protocol: T=0<br>00000019 ifdhandler.c:1264:() usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br>00006547 winscard_svc.c:647:() TRANSMIT rv=0x0 for client 4<br>00000170 winscard_svc.c:308:() Received command: TRANSMIT from client 4<br>00000053 winscard.c:1636:() Send Protocol: T=0<br>00000026 ifdhandler.c:1264:() usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br>00003730 winscard_svc.c:647:() TRANSMIT rv=0x0 for client 4<br>00000196 winscard_svc.c:308:() Received command: TRANSMIT from client 4<br>00000056 winscard.c:1636:() Send Protocol: T=0<br>00000024 ifdhandler.c:1264:() usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br>00087784 winscard_svc.c:647:() TRANSMIT rv=0x0 for client 4<br>00000251 winscard_svc.c:308:() Received command: TRANSMIT from client 4<br>00000033 winscard.c:1636:() Send Protocol: T=0<br>00000023 ifdhandler.c:1264:() usb:04e6/5810:libusb:/dev/usb:4e6.5810/0 (lun: 0)<br><b>00015668 commands.c:1364:() overrun by 26 bytes</b><br>00000101 winscard_svc.c:647:() TRANSMIT rv=0x80100008 for client 4<br>00000435 winscard_svc.c:308:() Received command: DISCONNECT from client 4<br>00000034 winscard.c:848:() Active Contexts: 1<br>00000025 winscard_svc.c:487:() DISCONNECT rv=0x0 for client 4<br>00000089 winscard_svc.c:308:() Received command: RELEASE_CONTEXT from client 4<br>00000041 winscard.c:229:() Releasing Context: 0x1034607<br>00000025 winscard_svc.c:421:() RELEASE_CONTEXT rv=0x0 for client 4<br>00000062 winscard_svc.c:301:() Client die: 4<br>00000040 winscard_svc.c:948:() Thread is stopping: dwClientID=4, threadContext @808E288<br>00000022 winscard_svc.c:956:() Freeing SCONTEXT @808E288<br>20105953 pcscdaemon.c:649:() Received signal: 2<br><br></div>There is overrun by 26 bytes and the receive operation failed. <br><br></div>Regards<br><br></div>William To<br><br><br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 2:40 PM, William To <span dir="ltr"><<a href="mailto:william.to@erg.com.hk" target="_blank">william.to@erg.com.hk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi All, <br><br></div>This is is the output from ./src/parse for the reader I have on hand now:<br><br><br> idVendor: 0x04E6<br> iManufacturer: Identive<br> idProduct: 0x5810<br> iProduct: CLOUD 2700 R Smart Card Reader<br> bcdDevice: 0.15 (firmware release?)<br> bLength: 9<br> bDescriptorType: 4<br> bInterfaceNumber: 0<br> bAlternateSetting: 0<br> bNumEndpoints: 3<br> bulk-IN, bulk-OUT and Interrupt-IN<br> bInterfaceClass: 0x0B [Chip Card Interface Device Class (CCID)]<br> bInterfaceSubClass: 0<br> bInterfaceProtocol: 0<br> bulk transfer, optional interrupt-IN (CCID)<br> iInterface: CCID Interface<br> CCID Class Descriptor<br> bLength: 0x36<br> bDescriptorType: 0x21<br> bcdCCID: 1.10<br> bMaxSlotIndex: 0x00<br> bVoltageSupport: 0x07<br> 5.0V<br> 3.0V<br> 1.8V<br> dwProtocols: 0x0000 0x0003<br> T=0<br> T=1<br> dwDefaultClock: 4.800 MHz<br> dwMaximumClock: 16.000 MHz<br> bNumClockSupported: 0 (will use whatever is returned)<br> IFD does not support GET CLOCK FREQUENCIES request: I/O error<br> dwDataRate: 12903 bps<br> dwMaxDataRate: 600000 bps<br> bNumDataRatesSupported: 0 (will use whatever is returned)<br> IFD does not support GET_DATA_RATES request: I/O error<br> dwMaxIFSD: 254<br> dwSynchProtocols: 0x00000000<br> dwMechanical: 0x00000000<br> No special characteristics<br> dwFeatures: 0x000404BA<br> ....02 Automatic parameter configuration based on ATR data<br> ....08 Automatic ICC voltage selection<br> ....10 Automatic ICC clock frequency change according to parameters<br> ....20 Automatic baud rate change according to frequency and Fi, Di params<br> ....80 Automatic PPS made by the CCID<br> ..04.. Automatic IFSD exchange as first exchange (T=1)<br> 04.... Short and Extended APDU level exchange<br> dwMaxCCIDMessageLength: 271 bytes<br> bClassGetResponse: 0xFF<br> echoes the APDU class<br> bClassEnveloppe: 0xFF<br> echoes the APDU class<br> wLcdLayout: 0x0000<br> bPINSupport: 0x00<br> bMaxCCIDBusySlots: 1<br><br><br></div>I don't know whether it is only adding the USB vendor/product ID set to the Info.plist or large parts of the code would need to be backported just to support a new reader.<br><br></div><span class="">Thanks very much and Best Regards<br><br></span></div><span class="HOEnZb"><font color="#888888">William To<br><br><br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 2:23 PM, William To <span dir="ltr"><<a href="mailto:william.to@erg.com.hk" target="_blank">william.to@erg.com.hk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi All, <br><br></div>Unfortunately my project have code that must use Solaris so I have to continue using it. <br><br></div>However the card reader vendor I am working provided me with a reader sample with vendor ID / product ID that is in the "should work" list. What can I do to back port support of readers from ccid 1.4.xx to 1.3.xx, or is that even possible (I know the ccid driver is revised and updated for a good reason though).<br><br></div>Regards<br><br></div>Willia mTo<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, May 16, 2016 at 5:56 PM, Ludovic Rousseau <span dir="ltr"><<a href="mailto:ludovic.rousseau@gmail.com" target="_blank">ludovic.rousseau@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>2016-05-16 11:15 GMT+02:00 William To <span dir="ltr"><<a href="mailto:william.to@erg.com.hk" target="_blank">william.to@erg.com.hk</a>></span>:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi All,<br><br></div><div><div>I also hit another brick wall on building ccid 1.4.21 as following:<br><br></div></div></div><div><div>Using the configuration like this: <br>./configure LIBUSB_CFLAGS=-I/usr/include LIBUSB_LIBS="-L/usr/lib -lusb" --prefix=/usr/local PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib -lpcsclite" --enable-usbdropdir=/usr/local/pcsc/drivers --disable-libusb<br><br></div></div></div><div><div>I found that the ccid shared library was not built. Here are my output from the console:<br><br><br>gmake[1]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21'<br>Making all in readers<br>gmake[2]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/readers'<br>gmake[2]: Nothing to be done for 'all'.<br>gmake[2]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/readers'<br>Making all in examples<br>gmake[2]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/examples'<br> CC scardcontrol-scardcontrol.o<br> CC scardcontrol-PCSCv2part10.o<br> CCLD scardcontrol<br>gmake[2]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/examples'<br>Making all in contrib<br>gmake[2]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/contrib'<br>Making all in RSA_SecurID<br>gmake[3]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/contrib/RSA_SecurID'<br> CC RSA_SecurID_getpasswd-RSA_SecurID_getpasswd.o<br> CCLD RSA_SecurID_getpasswd<br>gmake[3]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/contrib/RSA_SecurID'<br>gmake[3]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/contrib'<br>gmake[3]: Nothing to be done for 'all-am'.<br>gmake[3]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/contrib'<br>gmake[2]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/contrib'<br>Making all in src<br><b>gmake[2]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/src'<br>gmake[2]: Nothing to be done for 'all'.<br></b>gmake[2]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21/src'<br>gmake[2]: Entering directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21'<br>gmake[2]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21'<br>gmake[1]: Leaving directory '/export/home/wto/work/nwfb_bdc/sam-nwfb/prerequisites/ccid-1.4.21'<br><br></div></div></div><div><div>I think it looks very strange when nothing is built under the src/ directory where the ccid source code resides. I wonder would that be caused by not using the libusb library so the build disables the entire ccid library?<br></div></div></div></div></blockquote><div><br></div><div>You used --disable-libusb so the USB driver is not build.<br></div><div>You have not used --enable-twinserial so the serial driver is not build either.<br> </div><br></div><div class="gmail_quote">You need to have a working libusb-1.0 in order to build my CCID driver for USB.<br clear="all"></div><br>I have no other option. Or maybe replace Solaris 11 by another operating system, like Debian GNU/Linux? :-)<br></div><span><div class="gmail_extra"><br></div><div class="gmail_extra">Bye<br><br></div><div class="gmail_extra">-- <br><div> Dr. Ludovic Rousseau</div>
</div></span></div>
<br></div></div><span>_______________________________________________<br>
Pcsclite-muscle mailing list<br>
<a href="mailto:Pcsclite-muscle@lists.alioth.debian.org" target="_blank">Pcsclite-muscle@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle" rel="noreferrer" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>