From szempy at gmail.com Fri Apr 28 09:13:58 2017 From: szempy at gmail.com (=?UTF-8?B?U3plbnRww6l0ZXJ5IElzdHbDoW4=?=) Date: Fri, 28 Apr 2017 12:13:58 +0300 Subject: [Pcsclite-muscle] More smart cards compile problem Message-ID: Hello First of all i am not that good in linux, but i need to compile the pcsc lite to be able to handle at least 128 smart cards, and i have made the proper changes according to this: https://github.com/LudovicRousseau/PCSC/issues/8 And made a batch file to make the proper changes and to compile the libraries, but i get this response from the pcsc_scan after running the file: PC/SC device scanner V 1.4.27 (c) 2001-2011, Ludovic Rousseau Compiled with PC/SC lite version: 1.8.20 Using reader plug'n play mechanism Scanning present readers... Waiting for the first reader...found one Scanning present readers... 0: " 1: " 2: " 3: " 4: " 5: " 6: " 7: " 8: " 9: " 10: " 11: " 12: " 13: " 14: " 15: " SCardGetStatusChange: Invalid parameter given. I am using ubuntu 16.04 LTS 32 bit version, there are no smart card attached to the computer, but the output from the pcsc_scan is the same if there are smart card readers attached to the computer. pcscd -version pcsc-lite version 1.8.20. Copyright (C) 1999-2002 by David Corcoran . Copyright (C) 2001-2015 by Ludovic Rousseau . Copyright (C) 2003-2004 by Damien Sauveron . Report bugs to . Enabled features: Linux i686-pc-linux-gnu serial usb libudev usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/usr/local/etc/reader.conf.d I have attached the log file from this: sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt after running a pcsc_scan Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- 00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug 00000898 debuglog.c:310:DebugLogSetCategory() Debug options: APDU 00000690 pcscdaemon.c:351:main() Force colored logs 00000793 utils.c:82:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory 00000652 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d 00000379 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. 00014534 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001 00001104 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/004/001 00003660 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/005/001 00000545 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 00000354 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 00000474 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0461, PID: 0x4E6F, path: /dev/bus/usb/006/002 00000437 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0461, PID: 0x4E6F, path: /dev/bus/usb/006/002 00000410 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/006/001 00000400 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x045E, PID: 0x00F6, path: /dev/bus/usb/006/003 00000488 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 00000578 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001 30362421 winscard_msg_srv.c:251:ProcessEventsServer() Common channel packet arrival 00000059 winscard_msg_srv.c:263:ProcessEventsServer() ProcessCommonChannelRequest detects: 7 00000012 pcscdaemon.c:132:SVCServiceRunLoop() A new context thread creation is requested: 7 00000132 winscard_svc.c:337:ContextThread() Authorized PC/SC client 00000012 winscard_svc.c:341:ContextThread() Thread is started: dwClientID=7, threadContext @0x985c3b0 00000022 winscard_svc.c:359:ContextThread() Received command: CMD_VERSION from client 7 00000018 winscard_svc.c:371:ContextThread() Client is protocol version 4:3 00000011 winscard_svc.c:391:ContextThread() CMD_VERSION rv=0x0 for client 7 00000115 winscard_svc.c:359:ContextThread() Received command: ESTABLISH_CONTEXT from client 7 00000025 winscard.c:215:SCardEstablishContext() Establishing Context: 0x29AB42CC 00000012 winscard_svc.c:455:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7 00000317 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 00000473 winscard_svc.c:359:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 7 00000102 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 00000053 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 00000040 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 00000696 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 00000051 winscard_svc.c:359:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 7 00000032 winscard_svc.c:359:ContextThread() Received command: CMD_GET_READERS_STATE from client 7 00002706 winscard_svc.c:778:ContextThread() Client die: 7 00000128 winscard.c:226:SCardReleaseContext() Releasing Context: 0x29AB42CC 00000014 winscard_svc.c:1013:MSGCleanupClient() Thread is stopping: dwClientID=7, threadContext @0x985c3b0 00000008 winscard_svc.c:1019:MSGCleanupClient() Freeing SCONTEXT @0x985c3b0 -------------- next part -------------- A non-text attachment was scrubbed... Name: install-pcscd.sh Type: application/x-sh Size: 934 bytes Desc: not available URL: From ludovic.rousseau at gmail.com Fri Apr 28 11:34:17 2017 From: ludovic.rousseau at gmail.com (Ludovic Rousseau) Date: Fri, 28 Apr 2017 13:34:17 +0200 Subject: [Pcsclite-muscle] More smart cards compile problem In-Reply-To: References: Message-ID: 2017-04-28 11:13 GMT+02:00 Szentp?tery Istv?n : > Hello > Hello, > First of all i am not that good in linux, but i need to compile the pcsc > lite to be able to handle at least 128 smart cards, and i have made the > proper changes according to this: https://github.com/ > LudovicRousseau/PCSC/issues/8 > And made a batch file to make the proper changes and to compile the > libraries, but i get this response from the pcsc_scan after running the > file: > > PC/SC device scanner > V 1.4.27 (c) 2001-2011, Ludovic Rousseau > Compiled with PC/SC lite version: 1.8.20 > Using reader plug'n play mechanism > Scanning present readers... > Waiting for the first reader...found one > Scanning present readers... > 0: " > 1: " > 2: " > 3: " > 4: " > 5: " > 6: " > 7: " > 8: " > 9: " > 10: " > 11: " > 12: " > 13: " > 14: " > 15: " > SCardGetStatusChange: Invalid parameter given. > > I am using ubuntu 16.04 LTS 32 bit version, there are no smart card > attached to the computer, but the output from the pcsc_scan is the same if > there are smart card readers attached to the computer. > > pcscd -version > pcsc-lite version 1.8.20. > Copyright (C) 1999-2002 by David Corcoran . > Copyright (C) 2001-2015 by Ludovic Rousseau . > Copyright (C) 2003-2004 by Damien Sauveron . > Report bugs to . > Enabled features: Linux i686-pc-linux-gnu serial usb libudev > usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd > configdir=/usr/local/etc/reader.conf.d > > I have attached the log file from this: > sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color > | tee log.txt > after running a pcsc_scan > https://ludovicrousseau.blogspot.fr/2010/10/pcsc-lite-upgrade-and-ubuntu-special.html Bye -- Dr. Ludovic Rousseau -------------- next part -------------- An HTML attachment was scrubbed... URL: