timmerk / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
1 stars 0 forks source link

Cannot Read Moneo with cardpeek: application-level error #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to read a moneo card with cardpeek version 0.7.2

Hi,

I am experiencing an issue while trying to read a moneo card with my integrated 
card reader. I am not sure whether it comes from cardpeek or the driver of card 
reader or carpeek. All tests are done with Fedora 19 64 bits.

The cardreader is the one integrated in the Dell Latitude 6430u.
$ lsusb
Bus 002 Device 005: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader

When reading with cardpeek here is the log:
0000 INFO    Adding atr.lua script to menu
0001 INFO    Adding calypso.lua script to menu
0002 INFO    Adding emv.lua script to menu
0003 INFO    Adding e-passport.lua script to menu
0004 INFO    Adding gsm (beta).lua script to menu
0005 INFO    Adding mifare reader.lua script to menu
0006 INFO    Adding moneo.lua script to menu
0007 INFO    Adding vitale_2.lua script to menu
0008 INFO    Running Cardpeek 0.7.2 on Linux 3.10.10-200.fc19.x86_64 x86_64
0009 DEBUG   Found directory '/home/marbolangos/.cardpeek'
0010 DEBUG   Scripts are up to date.
0011 DEBUG   Lua is loaded.
0012 DEBUG   Running configuration script /home/marbolangos/.cardpeek/config.lua
0013 DEBUG   Found 1 PCSC readers
0014 INFO    Selected 'pcsc://Generic CCID Reader 00 00'
0015 INFO    Running script moneo.lua (please wait)
0016 DEBUG   Attempting to connect to 'pcsc://Generic CCID Reader 00 00'
0017 INFO    Reader maximum input length is 261 bytes
0018 INFO    Connection successful, protocol is T=0
0019 INFO    ATR is 10 bytes: 3B66000090D1020152B1
0020 INFO    ATR is 10 bytes: 3B66000090D1020152B1
0021 INFO    send: 00A4040006A0000000690000 [4S]
0022 ERROR   Failed to transmit command to card: Transaction failed. (error 
0x80100016).
0023 INFO    Recv: 6FFF  [Cardpeek application-level error]
0024 INFO    Disconnected reader

The reader tab shows:
RSET 3B 66 00 00 90 D1 02 01 52 B1                                       
SEND 00 A4 04 00 06 A0 00 00 00 69 00 00                                 
RECV 6FFF                                                # Cardpeek 
application-level error
     (nil)

I hope this can help, this card can be updated within the moneo website (under 
Windows) without any issue. It belongs to the CROUS Ile-de-France.

Original issue reported on code.google.com by Fabien.A...@gmail.com on 10 Sep 2013 at 8:45

GoogleCodeExporter commented 9 years ago
This looks like a bug in the driver of the reader.

Are you running Fedora in a virtual machine? I've had this type of error in 
virtual machines.

Original comment by L...@gmx.com on 12 Sep 2013 at 12:02

GoogleCodeExporter commented 9 years ago
Hi,
No this is an "hard" installation.

Original comment by Fabien.A...@gmail.com on 12 Sep 2013 at 12:04

GoogleCodeExporter commented 9 years ago
hi,

I'm running windows in a virtual machine (VMWare Fusion) and the card reader 
gets a reply when it connects and reset but when I try any other command it 
gives me a "Cardpeek application-level error"
error 0x8010002f

any ideas?
can this run on a virtual machine?

Original comment by zoharli...@gmail.com on 13 Feb 2014 at 6:35

GoogleCodeExporter commented 9 years ago
Getting smartcards to run on virtual machines through usb pass-through seems to 
be tricky. See for example this discussion related to vmware:
http://opensc.1086184.n5.nabble.com/Smartcard-recognized-by-pcsc-scan-but-not-op
ensc-tools-td13768.html

I use Virtualbox and strangely:
- On a linux host, it fails with Linux guests but works with windows (most of 
the time)
- On a Mac host, it works with both Linux and Windows guests very well.

I wish it would work better as it would simplify cardpeek dev as well.

Original comment by L...@gmx.com on 14 Feb 2014 at 8:13