pySim-shell: Add support for GSM-R SIM Cards with DF.EIRENE

GSM-R SIM cards have an additional directory (DF.EIRENE) with a number
of files.  This is all specified in the following document:

	UIC Reference P38 T 9001 5.0 "FFFIS for GSM-R SIM Cards"

Change-Id: I4034d09292a08d277d4abcbed9a0ec2808daaacb
This commit is contained in:
Harald Welte
2021-10-20 10:14:18 +02:00
parent 76667644ea
commit 2a33ad2c49
2 changed files with 260 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ from pySim.ts_51_011 import CardProfileSIM, DF_TELECOM, DF_GSM
from pySim.ts_102_221 import CardProfileUICC
from pySim.ts_31_102 import CardApplicationUSIM
from pySim.ts_31_103 import CardApplicationISIM
from pySim.gsm_r import DF_EIRENE
# we need to import this module so that the SysmocomSJA2 sub-class of
# CardModel is created, which will add the ATR-based matching and
@@ -90,6 +91,7 @@ def init_card(sl):
# FIXME: do this dynamically
rs.mf.add_file(DF_TELECOM())
rs.mf.add_file(DF_GSM())
rs.mf.add_file(DF_EIRENE())
CardModel.apply_matching_models(scc, rs)