From: Ludovic R. <lud...@gm...> - 2013-01-11 19:29:39
|
2013/1/11 Andris Berzins <pk...@in...>: > Hello, Hi, > I am using this code to obtain ATR: > channel = CardRequest(timeout=100, cardType=AnyCardType()).waitforcard().connection > channel.connect(CardConnection.T0_protocol) > print channel.getATR() > > > But this always returns "cold" ATR. How is it possible to obtain "warm" ATR? You have two options: - use SCardReconnect() [1] with SCARD_RESET_CARD but that is not available at the pyscard higher level API - use channel.connect(disposition=SCARD_RESET_CARD). On the second channel.connect() you should get the warm ATR Bye [1] http://pcsclite.alioth.debian.org/api/group__API.html#gad5d4393ca8c470112ad9468c44ed8940 -- Dr. Ludovic Rousseau |