mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
Add API + shell command for sending TERMINAL PROFILE to card
This allows a very first start to play with PROACTIVE SIM Change-Id: Id8f23f7cebe0f9efce2c0ce4229509f35cd93d6a
This commit is contained in:
@@ -136,6 +136,10 @@ class LinkBase(abc.ABC):
|
||||
"""
|
||||
rv = self.send_apdu(pdu)
|
||||
|
||||
if sw == '9000' and sw_match(rv[1], '91xx'):
|
||||
# proactive sim as per TS 102 221 Setion 7.4.2
|
||||
rv = self.send_apdu_checksw('80120000' + rv[1][2:], sw)
|
||||
print("FETCH: %s", rv[0])
|
||||
if not sw_match(rv[1], sw):
|
||||
raise SwMatchError(rv[1], sw.lower(), self.sw_interpreter)
|
||||
return rv
|
||||
|
||||
Reference in New Issue
Block a user