Fwd: Re: Problem with GemPC Twin

Stephan Kahnt <[email protected]>
Newsgroups gmane.comp.lib.libchipcard.devel
Organization inubit AG
Message-ID <[email protected]>
Hallo Martin,

denkst du, du kannst mir helfen? Konnte Ludovics Antwort dir helfen? Wenn ich 
irgendwas tun/testen kann, gern! Danke schonmal für deine Mühe.

-- 
Mit freundlichen Grüßen / Best regards

Stephan Kahnt

----------  Weitergeleitete Nachricht  ----------

Subject: Re: [Libchipcard-devel] Problem with GemPC Twin
Date: Donnerstag, 2. November 2006 14:26
From: Ludovic Rousseau <[email protected]>
To: Martin Preuss <[email protected]>
Cc: [email protected], Stephan Kahnt 
<[email protected]>

Le 02.11.2006, à 00:23:06, Martin Preuss a écrit:
> Hi,
>
> first of all: Please don't send the whole server debug logs, just the
> driver logs (see below). The rest is only distracting here (and Ludovic
> will have difficulties to find the interesting log since he doesn't know
> about the internals of Libchipcard).
>
> On Wednesday 01 November 2006 21:58, Stephan Kahnt wrote:
> [...]
>
> > Here is what I found in /var/log/chipcard3/drivers/ccid_ifd/driver.log:
>
> [...]
> That's one of the interesting logs.
> [...]
>
> > 5:2006/11/01 21-48-49:driver(8855):d_startreader.c:  201: Reader
> > "auto1-ccid_gempc_twin" logs to
> > "/var/log/chipcard3/drivers/ccid_ifd/auto1-ccid_gempc_twin.log"
>
> [...]
> That would be the other interesting file...
>
> > 5:2006/11/01 21-48-49:driver(8855):driverifd.c:  824: Creating channel
> > 0/usb:08e6/3437:libusb:003:003 5:2006/11/01
> > 21-48-49:driver(8855):driverifd.c: 1046: Detected Generic CCID driver
> > (1.0.1) 4:2006/11/01 21-48-49:driver(8855):driverifd.c: 1054: Old Generic
> > CCID driver, will not translate control codes 3:2006/11/01
> > 21-48-49:driver(8855):driverifd.c:  932: PCSC:
> > ifdhandler.c:95:IFDHCreateChannelByName() failed 3:2006/11/01
> > 21-48-49:driver(8855):driverifd.c:  932: PCSC:
> > ifdhandler.c:190:IFDHCreateChannel() failed 3:2006/11/01
> > 21-48-49:driver(8855):driverifd.c:  932: PCSC:
> > ifdhandler.c:190:IFDHCreateChannel() failed 3:2006/11/01
> > 21-48-50:driver(8855):driverifd.c:  932: PCSC:
> > ifdhandler.c:190:IFDHCreateChannel() failed 5:2006/11/01
>
> [...]
>
> > And in /var/log/chipcard3/drivers/ccid_ifd/auto1-ccid_gempc_twin.log
> > 5:2006/11/01 21-48-49:auto1-ccid_gempc_twin(8855):d_startreader.c:  220:
> > Init reader auto1-ccid_gempc_twin 3:2006/11/01
> > 21-48-50:auto1-ccid_gempc_twin(8855):driverifd.c:  855: CCID error on
> > createChannel 0/0: 612 3:2006/11/01
>
> [...]
>
> Ok, so the createChannel function fails, for Ludovic: IFDHCreateChannel is
> called here with arguments (0, 0) and it returns 612.

612 is IFD_COMMUNICATION_ERROR.

My CCID has a lot of usefull debug messages. I don't know if it is
possible to see them using libchipcard.
Does libchipcard implements log_msg() and log_xxd()?
See [1] as an example.

> However, I just found a GemPC Twin here and it also fails, but at a
> different point: It fails later when sending a command. The message is
> rather strange (error on protocol layer of T1).
>
> So for now this reader doesn't work for me either.
>
> Log:
> ---------------------------------------------------------------------------
>-----------------X8 5:2006/11/02 00-06-06:driver(20165):d_handle.c:   26:
> Incoming
> request "Driver_CardCommand"
> 6:2006/11/02 00-06-06:driver(20165):driverifd.c:  928: PCSC:
> ifdhandler.c:930:IFDHTransmitToICC() lun: 0
> 3:2006/11/02 00-06-06:driver(20165):driverifd.c:  932: PCSC:
> commands.c:833:CCID_Receive Procedure byte conflict
> 3:2006/11/02 00-06-06:driver(20165):driverifd.c:  932: PCSC:
> openct/proto-t1.c:221:t1_transceive() fatal: transmit/receive failed
> ---------------------------------------------------------------------------
>-----------------X8

Do you call IFDHSetProtocolParameters() with the correct parameters?
The Protocol flags is really important. The IFDHSetProtocolParameters()
function set the reader and the driver in the correct configuration.

Bye,

[1]
 http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/debug.c?op=file&r
ev=0&sc=0

--
 Dr. Ludovic Rousseau                        [email protected]
 -- Normaliser Unix c'est comme pasteuriser le camembert, L.R. --

-------------------------------------------------------



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.