To: [email protected] Subject: RE: [Muscle] AU9520 usb reader not working with SCardTransmit (using ACOS5 card) Date: Sun, 29 Aug 2010 12:35:11 -0400
yes, I'm using ccid-1.4.0 and pcsc-lite 1.6.4, sorry for my bad explaining =(! I meant that i was using those libs in lucid with kernel 2.6... didn-t get the notification from the list of received mail, i'll try to make the log shorter then.... And sorry for posting the snippet of code in another thread, im making a mess :( the generated output from pcscd is: 00000000 debuglog.c:277:DebugLogSetLevel() debug level=debug 00000068 debuglog.c:306:DebugLogSetCategory() Debug options: APDU 00000380 configfile.l:242:DBGetReaderListDir() Parsing conf directory: /usr/local/etc/reader.conf.d 00000066 pcscdaemon.c:533:main() pcsc-lite 1.6.4 daemon ready. 00231810 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0002 00001262 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001 00001270 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001 00001234 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x4168, PID: 0x1004 00000762 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x4168, PID: 0x1004 00001054 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x058F, PID: 0x9520 00000008 hotplug_libhal.c:368:HPAddDevice() Adding USB device: usb_device_58f_9520_noserial_if0 01002344 readerfactory.c:959:RFInitializeReader() Attempting startup of Alcor Micro AU9520 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so 00000583 readerfactory.c:849:RFBindFunctions() Loading IFD Handler 3.0 00000086 ifdhandler.c:1739:init_driver() Driver version: 1.4.0 00000940 ifdhandler.c:1752:init_driver() LogLevel: 0x0003 00000023 ifdhandler.c:1762:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x0007 00000804 ifdhandler.c:1772:init_driver() DriverOptions: 0x0000 00000025 ifdhandler.c:83:IFDHCreateChannelByName() lun: 0, device: usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 00000031 ccid_usb.c:177:OpenUSBByName() Reader index: 0, Device: usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 00000860 ccid_usb.c:252:OpenUSBByName() Manufacturer: Ludovic Rousseau ([email protected]) 00000800 ccid_usb.c:262:OpenUSBByName() ProductString: Generic CCID driver 00000985 ccid_usb.c:268:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version. 00075950 ccid_usb.c:377:OpenUSBByName() Checking device: 6/3 00000014 ccid_usb.c:432:OpenUSBByName() Trying to open USB bus/device: 6/3 00000108 ccid_usb.c:498:OpenUSBByName() Found Vendor/Product: 058F/9520 (Alcor Micro AU9520) 00000007 ccid_usb.c:500:OpenUSBByName() Using USB bus/device: 6/3 00000007 ccid_usb.c:973:ControlUSB() request: 0x03 00004056 receive: 0F 07 00 00 C5 07 00 00 69 09 00 00 B7 09 00 00 F3 0C 00 00 1D 0E 00 00 8A 0F 00 00 D2 12 00 00 6D 13 00 00 E7 19 00 00 3B 1C 00 00 15 1F 00 00 A3 25 00 00 DA 26 00 00 CE 33 00 00 75 38 00 00 2A 3E 00 00 47 4B 00 00 B4 4D 00 00 B0 54 00 00 3F 5D 00 00 9B 67 00 00 EA 70 00 00 8F 74 00 00 54 7C 00 00 25 8D 00 00 8E 96 00 00 69 9B 00 00 5F A9 00 00 31 BC 00 00 43 C2 00 00 37 CF 00 00 D5 E1 00 00 1D E9 00 00 A8 F8 00 00 04 03 01 00 4A 1A 01 00 1B 2D 01 00 D2 36 01 00 BF 52 01 00 62 78 01 00 86 84 01 00 6D 9E 01 00 A9 C3 01 00 3B D2 01 00 08 06 02 00 93 34 02 00 37 5A 02 00 A4 6D 02 00 0D 09 03 00 DA 3C 03 00 52 87 03 00 48 DB 04 00 00000021 ccid_usb.c:953:get_data_rates() declared: 1807 bps ... 00000004 ccid_usb.c:953:get_data_rates() declared: 318280 bps 00012711 -> 000000 65 00 00 00 00 00 00 00 00 00 00002949 <- 000000 81 00 00 00 00 00 00 41 FE 01 00000035 ifdhandler.c:409:IFDHGetCapabilities() tag: 0xFB0, usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000019 readerfactory.c:276:RFAddReader() Using the reader polling thread 00002156 ifdhandler.c:409:IFDHGetCapabilities() tag: 0xFAE, usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000024 ifdhandler.c:497:IFDHGetCapabilities() Reader supports 1 slot(s) 00004051 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001 00007668 ifdhandler.c:1159:IFDHPowerICC() action: PowerUp, usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000025 -> 000000 62 00 00 00 00 00 04 00 00 00 00000293 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x04F2, PID: 0xB059 ... 00001208 hotplug_libhal.c:320:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001 00206201 <- 000000 80 13 00 00 00 00 04 00 00 00 3B BE 18 00 00 41 05 10 00 00 00 00 00 00 00 00 00 90 00 00000092 Card ATR: 3B BE 18 00 00 41 05 10 00 00 00 00 00 00 00 00 00 90 00 08499162 winscard_msg_srv.c:204:ProcessEventsServer() Common channel packet arrival 00000029 winscard_msg_srv.c:216:ProcessEventsServer() ProcessCommonChannelRequest detects: 9 00000008 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation is requested: 9 00000090 winscard_svc.c:291:ContextThread() Thread is started: dwClientID=9, threadContext @8A87678 00000022 winscard_svc.c:309:ContextThread() Received command: CMD_VERSION from client 9 00000012 winscard_svc.c:326:ContextThread() Client is protocol version 4:0 00000009 winscard_svc.c:349:ContextThread() CMD_VERSION rv=0x0 for client 9 00000044 winscard_svc.c:309:ContextThread() Received command: ESTABLISH_CONTEXT from client 9 00000023 winscard.c:218:SCardEstablishContext() Establishing Context: 0x103E89F 00000006 winscard_svc.c:405:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 9 00000033 winscard_svc.c:309:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000028 winscard_svc.c:309:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000030 winscard_svc.c:309:ContextThread() Received command: CONNECT from client 9 00000014 winscard.c:279:SCardConnect() Attempting Connect to Alcor Micro AU9520 00 00 using protocol: 3 00000010 prothandler.c:128:PHSetProtocol() Attempting PTS to T=0 00000011 ifdhandler.c:708:IFDHSetProtocolParameters() protocol T=0, usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000010 ifdhandler.c:1882:find_baud_rate() Card baud rate: 119354 ... 00000006 ifdhandler.c:1891:find_baud_rate() Reader can do: 115625 00000005 ifdhandler.c:1891:find_baud_rate() Reader can do: 119355 00000005 ifdhandler.c:829:IFDHSetProtocolParameters() Set speed to 119354 bauds 00000006 ifdhandler.c:1065:IFDHSetProtocolParameters() Communication timeout: 250949 ms 00000010 commands.c:2046:SetParameters() length: 5 bytes 00000015 -> 000000 61 05 00 00 00 00 06 00 00 00 18 00 00 0A 00 00003073 <- 000000 82 05 00 00 00 00 06 00 00 00 18 00 00 0A 00 00000013 winscard.c:424:SCardConnect() Active Protocol: T=0 00000008 winscard.c:444:SCardConnect() hCard Identity: 1e55e 00000009 winscard_svc.c:447:ContextThread() CONNECT rv=0x0 for client 9 00000131 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from client 9 00000013 winscard.c:1648:SCardTransmit() Send Protocol: T=0 00000009 APDU: 00 E0 00 00 0A 62 08 82 02 3F FF 83 02 3F 00 00000007 ifdhandler.c:1288:IFDHTransmitToICC() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000011 commands.c:1543:CmdXfrBlockTPDU_T0() T=0: 15 bytes 00000011 -> 000000 6F 0F 00 00 00 00 07 00 00 00 00 E0 00 00 0A 62 08 82 02 3F FF 83 02 3F 00 01009630 <- 000000 80 00 00 00 00 00 07 41 FE 00 00000040 commands.c:1317:CCID_Receive Card absent or mute 00000017 SW: 00000016 ifdwrapper.c:746:IFDTransmit() Card not transacted: 612 00000017 winscard.c:1673:SCardTransmit() Card not transacted: 0x80100016 00000016 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x80100016 for client 9 00000237 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from client 9 00000039 winscard.c:1648:SCardTransmit() Send Protocol: T=0 00000021 APDU: 00 A4 00 00 02 41 05 00000018 ifdhandler.c:1288:IFDHTransmitToICC() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000018 commands.c:1543:CmdXfrBlockTPDU_T0() T=0: 7 bytes 00000027 -> 000000 6F 07 00 00 00 00 08 00 00 00 00 A4 00 00 02 41 05 00005019 ccid_usb.c:652:ReadUSB() read failed (6/3): -99 Invalid argument 00000031 SW: 00000016 ifdwrapper.c:746:IFDTransmit() Card not transacted: 612 00000016 winscard.c:1673:SCardTransmit() Card not transacted: 0x80100016 00000017 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x80100016 for client 9 00000117 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from client 9 00000042 winscard.c:1648:SCardTransmit() Send Protocol: T=0 00000020 APDU: 00 E4 00 00 00 41 05 00000016 ifdhandler.c:1288:IFDHTransmitToICC() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000018 commands.c:1543:CmdXfrBlockTPDU_T0() T=0: 7 bytes 00000025 -> 000000 6F 07 00 00 00 00 09 00 00 00 00 E4 00 00 00 41 05 00004409 ccid_usb.c:652:ReadUSB() read failed (6/3): -99 Invalid argument 00000021 SW: 00000014 ifdwrapper.c:746:IFDTransmit() Card not transacted: 612 00000016 winscard.c:1673:SCardTransmit() Card not transacted: 0x80100016 00000015 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x80100016 for client 9 00000094 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from client 9 00000050 winscard.c:1648:SCardTransmit() Send Protocol: T=0 00000019 APDU: 00 A4 00 00 00 00000016 ifdhandler.c:1288:IFDHTransmitToICC() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000016 commands.c:1543:CmdXfrBlockTPDU_T0() T=0: 5 bytes 00000024 -> 000000 6F 05 00 00 00 00 0A 00 00 00 00 A4 00 00 00 00005882 ccid_usb.c:652:ReadUSB() read failed (6/3): -99 Invalid argument 00000023 SW: 00000015 ifdwrapper.c:746:IFDTransmit() Card not transacted: 612 00000016 winscard.c:1673:SCardTransmit() Card not transacted: 0x80100016 00000015 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x80100016 for client 9 00000105 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from client 9 00000050 winscard.c:1648:SCardTransmit() Send Protocol: T=0 00000036 APDU: 00 E0 00 00 1C 62 1A 80 02 00 30 82 01 01 83 02 41 05 88 01 00 8A 01 01 8C 07 00 00 00 00 00 00 00000018 ifdhandler.c:1288:IFDHTransmitToICC() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000017 commands.c:1543:CmdXfrBlockTPDU_T0() T=0: 32 bytes 00000041 -> 000000 6F 20 00 00 00 00 0B 00 00 00 00 E0 00 00 1C 62 1A 80 02 00 30 82 01 01 83 02 41 05 88 01 00 8A 01 01 8C 07 00 00 00 00 00 00 00003638 ccid_usb.c:652:ReadUSB() read failed (6/3): -99 Invalid argument 00000021 SW: 00000015 ifdwrapper.c:746:IFDTransmit() Card not transacted: 612 00000015 winscard.c:1673:SCardTransmit() Card not transacted: 0x80100016 00000016 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x80100016 for client 9 00000112 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from client 9 00000049 winscard.c:1648:SCardTransmit() Send Protocol: T=0 00000019 APDU: 00 B0 00 00 10 00000016 ifdhandler.c:1288:IFDHTransmitToICC() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000016 commands.c:1543:CmdXfrBlockTPDU_T0() T=0: 5 bytes 00000025 -> 000000 6F 05 00 00 00 00 0C 00 00 00 00 B0 00 00 10 00003935 ccid_usb.c:652:ReadUSB() read failed (6/3): -99 Invalid argument 00000022 SW: 00000015 ifdwrapper.c:746:IFDTransmit() Card not transacted: 612 00000016 winscard.c:1673:SCardTransmit() Card not transacted: 0x80100016 00000015 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x80100016 for client 9 00003104 winscard_svc.c:301:ContextThread() Client die: 9 00000015 winscard.c:229:SCardReleaseContext() Releasing Context: 0x103E89F 00000009 winscard.c:850:SCardDisconnect() Active Contexts: 1 00000012 winscard_svc.c:952:MSGCleanupClient() Thread is stopping: dwClientID=9, threadContext @8A87678 00000006 winscard_svc.c:958:MSGCleanupClient() Freeing SCONTEXT @8A87678 ^C04931073 pcscdaemon.c:654:signal_trap() Received signal: 2 00000028 pcscdaemon.c:659:signal_trap() Preparing for suicide 01000213 readerfactory.c:1267:RFCleanupReaders() entering cleaning function 00000045 readerfactory.c:1276:RFCleanupReaders() Stopping reader: Alcor Micro AU9520 00 00 00000023 eventhandler.c:170:EHDestroyEventHandler() Stomping thread. 00000020 ifdhandler.c:409:IFDHGetCapabilities() tag: 0xFB1, usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000019 ifdhandler.c:409:IFDHGetCapabilities() tag: 0xFB2, usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000017 eventhandler.c:195:EHDestroyEventHandler() Request stoping of polling thread 00000016 ifdhandler.c:374:IFDHStopPolling() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00001438 ccid_usb.c:1069:InterruptRead() InterruptRead (6/3): Success 00000035 eventhandler.c:536:EHStatusHandlerThread() Die 00000130 eventhandler.c:224:EHDestroyEventHandler() Thread stomped. 00000030 readerfactory.c:1005:RFUnInitializeReader() Attempting shutdown of Alcor Micro AU9520 00 00. 00000025 ifdhandler.c:297:IFDHCloseChannel() usb:058f/9520:libhal:/org/freedesktop/Hal/devices/usb_device_58f_9520_noserial_if0 (lun: 0) 00000026 -> 000000 63 00 00 00 00 00 0D 00 00 00 00001638 <- 000000 81 00 00 00 00 00 0D 01 00 01 00000023 ccid_usb.c:695:CloseUSB() Closing USB device: 6/3 00000023 ccid_usb.c:710:CloseUSB() Last slot closed. Release resources 00000084 readerfactory.c:886:RFUnloadReader() Unloading reader driver. 00000208 winscard_svc.c:127:ContextsDeinitialize() remaining threads: 0 00000020 pcscdaemon.c:606:at_exit() cleaning /var/run/pcscd trying to create a master file, selecting a file trough an ID, etc. The exact procedure works for an ACOS USB reader with an ACOS5 smart card. Many thanks for any help you could provide.
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
