Bug#486167: libchipcard-tools: geldkarte tool always fails

2008-06-18 Thread Hendrik Sattler

Zitat von Micha Lenk [EMAIL PROTECTED]:

as Martin already wrote: This bug apparently occurs with an O2Micro
Smart Card reader only. I have no such reader here and can't help fixing
the bug.

Does the suggested use of the IFD driver work for you?


I didn't find out how to do that, yet. I'll dig into the source...

HS





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486167: libchipcard-tools: geldkarte tool always fails

2008-06-17 Thread Micha Lenk
Hi Hendrik,

as Martin already wrote: This bug apparently occurs with an O2Micro
Smart Card reader only. I have no such reader here and can't help fixing
the bug.

Does the suggested use of the IFD driver work for you?

Regards
  Micha



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#486167: libchipcard-tools: geldkarte tool always fails

2008-06-13 Thread Hendrik Sattler
Package: libchipcard-tools
Version: 4.1.0-1
Severity: normal

Hi,

The tool geldkarte doesn't seem to work at all. The following output is the 
best I get:
$ geldkarte loaded
Waiting for card to be inserted: Started.
Waiting for card to be inserted: 4000 of 2
Waiting for card to be inserted: Finished.
3:2008/06/14 00-21-09:geldkarte3(22690):geldkarte.c:  114: Not a processor card
ERROR: Error executing command CardOpen (11).
3:2008/06/14 00-21-09:geldkarte3(22690):client.c:  361: Still 1 cards in use at 
LC_Client_free!

At least the indicates that the connection to the server works, 
/var/log/daemon.log also show this:
chipcardd[21925]: clr_clientready.c:  105: Client 4852f12a started 
(geldkarte, Gwen 3.3.2stable-0, ChipCard 4.1.0.0stable)
chipcardd[21925]: clr_startwait.c:   70: Client 4852f12a: StartWait 
[geldkarte/nobody]
chipcardd[21925]: devicemanager.c: 1730: Incrementing active reader count 
auto1-o2micro (4852f10a) [1]
chipcardd[21925]: dm_driver.c:  359: Incrementing active readers count of 
driver o2micro_ctapi [4852f10a](0-1)
chipcardd[21925]: devicemanager.c: 1487: Reader auto1-o2micro is up (Reader 
up and waiting)
chipcardd[21925]: devicemanager.c: 2270: New card  found in reader 
auto1-o2micro(4852f10a)
chipcardd[21925]: clientmanager.c:  197: Advertising card 0004 to all 
interested clients
chipcardd[21925]: clr_startwait.c:  136: Advertising card 0004 to client 
4852f12a [geldkarte/nobody]
chipcardd[21925]: clr_takecard.c:   83: Client 4852f12a: TakeCard 
[geldkarte/nobody]
chipcardd[21925]: clr_takecard.c:  166: Enqueued TakeCard request for card 
0004 and client 4852f12a
chipcardd[21925]: clr_takecard.c:  185: Working on TakeCard request 4852f130
chipcardd[21925]: cm_card.c:  183: Lock request granted
chipcardd[21925]: clr_takecard.c:  185: Working on TakeCard request 4852f130
chipcardd[21925]: lockmanager.c:  167: Lock request granted
chipcardd[21925]: clientmanager.c:  487: Resetting card 0004
chipcardd[21925]: cm_card.c:  280: Unlocking card from client 4852f12a
chipcardd[21925]: lockmanager.c:  222: Removing lock of client 4852f12a on 
slot
chipcardd[21925]: clientmanager.c:  398: Removing client 4852f12a 
[geldkarte/nobody]

chipcardd[21925]: devicemanager.c: 1565: Reader auto1-o2micro too long idle, 
stopping
chipcardd[21925]: devicemanager.c: 1680: Reader auto1-o2micro is down as 
expected
chipcardd[21925]: devicemanager.c: 1695: Decrementing active reader count
chipcardd[21925]: dm_driver.c:  377: Decrementing active readers count of 
driver o2micro_ctapi [4852f10a](1-0)
chipcardd[21925]: cardmanager.c:  355: Free card no longer inserted, removing 
from list
chipcardd[21925]: devicemanager.c: 1242: Driver o2micro_ctapi is too long 
idle, stopping it
chipcardd[21925]: devicemanager.c: 1056: Driver terminated normally

The kvkcard read also fails:
$ kvkcard read
4:2008/06/14 00-30-21:chipcard3-client(23561):memorycard.c:  238: No ATR
3:2008/06/14 00-30-23:chipcard3-client(23561):kvkcard.c:  172: Unexpected tag 
length modifier a2
ERROR: Error executing command CardOpen (4).
3:2008/06/14 00-30-24:chipcard3-client(23561):client.c:  361: Still 1 cards in 
use at LC_Client_free!

The pcsc_scan tool on the two cards gives me:
$ pcsc_scan
PC/SC device scanner
V 1.4.14 (c) 2001-2008, Ludovic Rousseau [EMAIL PROTECTED]
Compiled with PC/SC lite version: 1.4.101
Scanning present readers
0: O2Micro SmartCardBus Reader 00 00

Sat Jun 14 00:22:56 2008
 Reader 0: O2Micro SmartCardBus Reader 00 00
  Card state: Card inserted,
  ATR: 3B FF 18 00 FF 81 31 FE 45 65 63 11 07 64 02 80 00 11 70 70 03 15 06 19 
FD

ATR: 3B FF 18 00 FF 81 31 FE 45 65 63 11 07 64 02 80 00 11 70 70 03 15 06 19 FD
+ TS = 3B -- Direct Convention
+ T0 = FF, Y(1): , K: 15 (historical bytes)
  TA(1) = 18 -- Fi=372, Di=12, 31 cycles/ETU (115200 bits/s at 3.57 MHz)
  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 07 64 02 80 00 11 70 70 03 15 06 19
  Category indicator byte: 65 (proprietary format)
+ TCK = FD (correct checksum)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B FF 18 00 FF 81 31 FE 45 65 63 11 07 64 02 80 00 11 70 70 03 15 06 19 FD
3B FF 18 00 FF 81 31 .. 45 65 63 .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Geldkarte (generic ATR)

[...]

Sat Jun 14 00:31:50 2008
 Reader 0: O2Micro SmartCardBus Reader 00 00
  Card state: Card inserted,
  ATR: A2 13 10 91

ATR: A2 13 10 91
+ TS = A2 -- UNDEFINED
+ T0 = 13, Y(1): 0001, K: 3 (historical bytes)
  TA(1) = 10 -- Fi=372, Di=RFU, 16 cycles/ETU (223200 bits/s at 3.57 MHz)
+ Historical bytes: 91
 ERROR! ATR is truncated: 2 byte(s) is/are missing
  Category indicator byte: 91 (proprietary format)
Your card is not a 

Bug#486167: libchipcard-tools: geldkarte tool always fails

2008-06-13 Thread Martin Preuss
Hi,

On Samstag, 14. Juni 2008, Hendrik Sattler wrote:
[...]
 The tool geldkarte doesn't seem to work at all. The following output is the
 best I get: $ geldkarte loaded
[...]

It does work (at least with other readers), however, the problem seems to be 
the driver for your reader. I had a few bug reports with this reader, but 
since I don't have such a device I can't work on a fix.

[...]
 Any idea what's going wrong? An ATR is obviously correctly received. It
 doesn't matter if pcscd is running or not. The lib_OZSCR.so is used with
 ctapi from libchipcard.
[...]

Maybe libchipcard could use the IFD driver instead. But again: I don't have 
the means to work on a solution without having such a reader at hand :-/


Regards
Martin



-- 
Things are only impossible until they're not

Martin Preuss - http://www.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]