pysim/pySim
Philipp Maier 4146086d2f Fix select control parameter
sysmo-usim-sjs1 requires P2 to be set to 0x0C (request FCI) when
using the USIM application commands. The FCI is not used by pysim
anyway and might even cause problems with other cards.

This commit adds a pair of get/set methods to the SimCardCommands
class in order to set a default for the selection control
parameters (P1, P2). (Similar to the set/get methods for the class
byte)

The SysmoUSIMSJS1 class now calls the setter method for the
selection control parameters inside of its constructuor and sets
the selection control parameter default to "000C". This way we
can be sure that we only change the behaviour for sysmo-usim-sjs1
and do not break support for any other cards.

Change-Id: I1993a267c952bf37d5de1cb4e1107f445614c17b
2017-04-06 00:38:22 +02:00
..
transport transport: Change transport api to allow for wait_for_card/connect/disconnect 2010-12-09 13:31:58 +01:00
__init__.py cosmetic: missing newlines on last line of 2 files 2017-03-21 13:07:57 +01:00
cards.py Fix select control parameter 2017-04-06 00:38:22 +02:00
commands.py Fix select control parameter 2017-04-06 00:38:22 +02:00
exceptions.py Split all things into a more "library-like" package 2010-12-07 00:24:32 +01:00
utils.py Move encoder functions for ICCID, IMSI and PLMN to pySim.utils for consistency. 2013-07-13 08:53:21 +02:00