2011/8/31  <[email protected]>:
> Hi all,

Hello,

> 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

Before using a java program you should start with simpler programs.
pcsc_scan works and that is fine.
It is strange to then have the SCARD_W_UNRESPONSIVE_CARD error from
your java program.

Can you send an APDU using scriptor [1]?

The "VMware Virtual USB CCID" reader is a hack that uses the windows
PC/SC stack to access the reader. But I guess that is the only way to
access a PCMCIA reader in your configuration.

Bye

[1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/index.html

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to