Re: GemPC Express Reader
Joachim Breitner <[email protected]> Wed, 18 Feb 2009 18:08:17 +0100
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <1234976897.3831.30.camel@localhost> |
Hi Martin, Hi Ludovic, Am Mittwoch, den 18.02.2009, 17:47 +0100 schrieb Martin Preuss: > On Mittwoch, 18. Februar 2009, Joachim Breitner wrote: > [...] > > The attached patch sets the protocol as specified from the ATR. I also > > took the liberty to rename DriverIFD__ConnectSlot to > > DriverIFD_ConnectSlot, as the repeated trial-and-error-calling of > > DriverIFD__ConnectSlot seems to be no longer necessary. > [...] > > The trial-and-error method is still necessary because without that I can't > make the Kobil Kaan Advance connect a German medical card. So if you could > please revert that part of the patch I will insert it into Libchipcard. At what call does it fail exactly? The call to IFDHSetProtocolParameters, or somewhere else? > The trial-and-error stuff is only used when a powerup of the card doesn't work > (like with German medical cards in the forementioned reader); in such a case > the protocol to be used can be determined by trying the given range of > protocols. > > This shouldn't affect your reader at all, because your new code would make the > powerup function work on the first attempt. I can put it back in, but I wonder why it can not be detected in a smarter manner? Note that IFDHSetProtocolParameters will return IFD_PROTOCOL_NOT_SUPPORTED for all parameters besides 1 (for T=0) and 2 (for T=1), so the only things to try would be: * No call to IFDHSetProtocolParameters. * Setting it to T=0 * Setting it to T=1. If anyone of you knows for sure that the first option will never work, then there are only two options left to try. I’m also wondering why the retrying in your current code only happens on ConnectSlot, but not after a Reset – I’d expect it to be there necessary as well... Greetings, Joachim -- Joachim "nomeata" Breitner mail: [email protected] | ICQ# 74513189 | GPG-Key: 4743206C JID: [email protected] | http://www.joachim-breitner.de/ Debian Developer: [email protected] ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Libchipcard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libchipcard-devel
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmcQIEACgkQ9ijrk0dDIGwSqQCfeIm65/bSwnrdukS/S6U178MH cCEAn1AM0KetlC7jHG1efuL52RWuNbCs =Wl8X -----END PGP SIGNATURE-----