Hi all, I'm new to the topic and got some serious muscle ache while trying to connect to a card in the following environment. Would be great if anybody could help me to understand what's going on.
* PC notebook with CardMan 4040 PCMCIA card reader, running Windows 7 64 bit * Ubuntu 11.04 64 bit running inside a VMware Player 3.1.4 VM These are the package versions I'm using: * pcsc-tools 1.4.17-1 * libccid 1.4.2-2 * pcscd 1.7.0-2ubuntu2 This is what pcsc_scan says when inserting a card: --- PC/SC device scanner V 1.4.17 (c) 2001-2009, Ludovic Rousseau <[email protected]> Compiled with PC/SC lite version: 1.5.5 Scanning present readers... 0: VMware Virtual USB CCID 00 00 Wed Aug 31 12:07:42 2011 Reader 0: VMware Virtual USB CCID 00 00 Card state: Card inserted, ATR: 3B FF 18 00 FF 81 31 FE 45 65 63 11 08 66 01 56 00 11 14 70 02 07 06 20 6B ATR: 3B FF 18 00 FF 81 31 FE 45 65 63 11 08 66 01 56 00 11 14 70 02 07 06 20 6B + TS = 3B --> Direct Convention + T0 = FF, Y(1): 1111, K: 15 (historical bytes) TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU 129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s TB(1) = 00 --> VPP is not electrically connected TC(1) = FF --> Extra guard time: 255 (special value) TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1 ----- TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1 ----- TA(3) = FE --> IFSC: 254 TB(3) = 45 --> Block Waiting Integer: 4 - Character Waiting Integer: 5 + Historical bytes: 65 63 11 08 66 01 56 00 11 14 70 02 07 06 20 Category indicator byte: 65 (proprietary format) + TCK = 6B (correct checksum) Possibly identified card (using /home/florian/.smartcard_list.txt): 3B FF 18 00 FF 81 31 FE 45 65 63 11 08 66 01 56 00 11 14 70 02 07 06 20 6B 3B FF .. 00 FF 81 31 .. 45 65 63 .. .. .. .. .. .. .. .. .. .. .. .. .. .. Debit card (Germany): ec-cash, GeldKarte(EUR), Maestro, Cirrus, ... 3B FF 18 00 FF 81 31 FE 45 65 63 11 08 66 01 56 00 11 14 70 02 07 06 20 6B 3B FF 18 00 FF 81 31 .. 45 65 63 .. .. .. .. .. .. .. .. .. .. .. .. .. .. Geldkarte (generic ATR) --- When trying to connect to the card with a small Java program using the javax.smartcardio API... --- Got default TerminalFactory: Provider = SunPCSC version 1.6, Type = PC/SC Terminal found: VMware Virtual USB CCID 00 00 Please insert a card within the next 10 seconds... javax.smartcardio.CardException: connect() failed at sun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:67) at SmartCardIOTest.<init>(SmartCardIOTest.java:40) at SmartCardIOTest.main(SmartCardIOTest.java:75) Caused by: sun.security.smartcardio.PCSCException: SCARD_W_UNRESPONSIVE_CARD at sun.security.smartcardio.PCSC.SCardConnect(Native Method) at sun.security.smartcardio.CardImpl.<init>(CardImpl.java:65) at sun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:61) ... 2 more --- ...the following entries are syslogged: --- Aug 31 12:08:03 ubuntu pcscd: commands.c:1353:CCID_Receive() Not enough data received: 0 bytes Aug 31 12:08:03 ubuntu pcscd: openct/proto-t1.c:766:t1_negotiate_ifsd() fatal: transmit/receive failed Aug 31 12:08:03 ubuntu pcscd: winscard_svc.c:447:ContextThread() CONNECT rv=0x80100066 for client 7 --- And finally, here are some information from the vmware.log regarding ccid stuff: --- Aug 31 11:17:19.912: vcpu-1| USB-CCID: Cancelling pending urbs on pipe 0x0. Aug 31 11:17:19.912: vcpu-1| USB-CCID: Cancelling pending urbs on pipe 0x1. Aug 31 11:17:19.912: vcpu-1| USB-CCID: Cancelling pending urbs on pipe 0x82. Aug 31 11:17:19.912: vcpu-1| USB-CCID: Cancelling pending urbs on pipe 0x83. Aug 31 11:26:04.128: vmx| USB-CCID: Unsupported CTRL request received. Aug 31 11:26:04.128: vmx| USB-CCID: bitmap:0xa1, request:0x3, wValue:0x0, wIndex:0x0, wLength:0x400 Aug 31 11:26:04.151: vmx| USB-CCID: GETSLOTSTATUS Bulk message recvd. Aug 31 11:26:11.246: vmx| Setting thread 43 stack size to 1048576. Aug 31 11:26:11.246: Worker#0| USB-CCID: Connected to the card in reader 'OMNIKEY CardMan 4040 0': active protocol: T1 Aug 31 11:26:17.356: Worker#0| USB-CCID: Disconnected the card in reader 'OMNIKEY CardMan 4040 0'. Aug 31 11:27:10.673: Worker#0| USB-CCID: Connected to the card in reader 'OMNIKEY CardMan 4040 0': active protocol: T1 --- Hope this is enough information to get some hints on how to resolve the problem. Best regards and thanks in advance Florian -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
