Re: GemPC Express Reader (Was: Supp ort for Lenovo Integrated Smart Card Reader)
Martin Preuss <[email protected]> Thu, 12 Feb 2009 22:15:42 +0100
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Donnerstag, 12. Februar 2009, Joachim Breitner wrote: [...] > Ludovic: Is it a bug in libccid that IFDHPowerICC does not return > IFD_ERROR_POWER_ACTION even though the protocol bits have not set up, or > libchipcard wrong in only trying to set the protocol when there is an > error? What would be the correct way of setting the protocol? (Sorry if > these questions are too obvious, but I’m new to the code base...) [...] The driver actually returns "0" upon IFDHPowerICC which means "ok". That's why IFDHSetProtcol() isn't called (because all readers I worked with so far returned an error if the card couldn't be connected at this point, due to a false protocol etc, see my explanation for the Kobil reader). @Ludovic: If I understand you correctly IFDHSetProtocol must be set anyway? So maybe its just as easy as calling this function (we already try to extract the protocol from the ATR but so far the result isn't used). Regards Martin -- "Things are only impossible until they're not" Martin Preuss - http://www2.aquamaniac.de/ AqBanking - http://www.aqbanking.de/ LibChipcard - http://www.libchipcard.de/ ------------------------------------------------------------------------------ _______________________________________________ Libchipcard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libchipcard-devel