pysim/pySim/transport
Vadim Yanitskiy fa617ac20d transport/pcsc: explicitly specify T0 protocol
From pyscard user's guide [1]:

   == Selecting the card communication protocol ==

   By defaults, the connect() method of the CardConnection object
   will try to connect using either the T=0 or T=1 protocol.
   To force a connection protocol, you can pass the required
   protocol to the connect() method.

This means that a PC/SC ifd handler may automatically choose T=1
as the highest protocol if the card indicates both in its ATR [2].

Since pySim only supports T=0, let's select it explicitly.

[1] https://pyscard.sourceforge.io/user-guide.html
[2] https://github.com/acshk/acsccid/issues/16#issuecomment-501101972

Change-Id: Ifed4574aab98a86c3ebbeb191f36a8282103e775
2020-02-27 02:10:50 +07:00
..
__init__.py python3 conversion: fix tabs and spaces inconsistency 2019-09-15 15:53:02 +02:00
calypso.py pySim/transport: introduce Calypso based reader interface 2018-10-29 01:58:11 +07:00
pcsc.py transport/pcsc: explicitly specify T0 protocol 2020-02-27 02:10:50 +07:00
serial.py Py2 -> Py3: use the floor division operator // where possible 2020-02-15 19:11:50 +00:00