gerrit-log
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
July 2024
- 1 participants
- 1379 discussions
[M] Change in pysim[master]: pySim.apdu.ts_102_222: APDU decoding for administrative commands
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37533?usp=email )
Change subject: pySim.apdu.ts_102_222: APDU decoding for administrative commands
......................................................................
pySim.apdu.ts_102_222: APDU decoding for administrative commands
Change-Id: I77c97221da19e1a67d96f7cfb69785baefc675c0
---
A pySim/apdu/ts_102_222.py
M pySim/apdu_source/gsmtap.py
M pySim/apdu_source/pyshark_gsmtap.py
M pySim/apdu_source/tca_loader_log.py
4 files changed, 76 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/33/37533/1
diff --git a/pySim/apdu/ts_102_222.py b/pySim/apdu/ts_102_222.py
new file mode 100644
index 0000000..e4416bd
--- /dev/null
+++ b/pySim/apdu/ts_102_222.py
@@ -0,0 +1,61 @@
+# coding=utf-8
+"""APDU definitions/decoders of ETSI TS 102 222.
+
+(C) 2022-2024 by Harald Welte <laforge(a)osmocom.org>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""
+
+from typing import Optional, Dict
+import logging
+
+from construct import GreedyRange, Struct
+
+from pySim.construct import *
+from pySim.apdu import ApduCommand, ApduCommandSet
+from pySim.ts_102_221 import FcpTemplate
+
+logger = logging.getLogger(__name__)
+
+# TS 102 222 Section 6.3
+class CreateFile(ApduCommand, n='CREATE FILE', ins=0xE0, cla=['0X', '4X', 'EX']):
+ _apdu_case = 3
+ _tlv = FcpTemplate
+
+# TS 102 222 Section 6.4
+class DeleteFile(ApduCommand, n='DELETE FILE', ins=0xE4, cla=['0X', '4X']):
+ _apdu_case = 3
+ _construct = Struct('file_id'/Bytes(2))
+
+# TS 102 222 Section 6.7
+class TerminateDF(ApduCommand, n='TERMINATE DF', ins=0xE6, cla=['0X', '4X']):
+ _apdu_case = 1
+
+# TS 102 222 Section 6.8
+class TerminateEF(ApduCommand, n='TERMINATE EF', ins=0xE8, cla=['0X', '4X']):
+ _apdu_case = 1
+
+# TS 102 222 Section 6.9
+class TerminateCardUsage(ApduCommand, n='TERMINATE CARD USAGE', ins=0xFE, cla=['0X', '4X']):
+ _apdu_case = 1
+
+# TS 102 222 Section 6.10
+class ResizeFile(ApduCommand, n='RESIZE FILE', ins=0xD4, cla=['8X', 'CX', 'EX']):
+ _apdu_case = 3
+ _construct_p1 = Enum(Byte, mode_0=0, mode_1=1)
+ _tlv = FcpTemplate
+
+
+ApduCommands = ApduCommandSet('TS 102 222', cmds=[CreateFile, DeleteFile, TerminateDF,
+ TerminateEF, TerminateCardUsage, ResizeFile])
diff --git a/pySim/apdu_source/gsmtap.py b/pySim/apdu_source/gsmtap.py
index bcfb66d..bc2f4f8 100644
--- a/pySim/apdu_source/gsmtap.py
+++ b/pySim/apdu_source/gsmtap.py
@@ -19,12 +19,13 @@
from pySim.gsmtap import GsmtapSource
from pySim.apdu.ts_102_221 import ApduCommands as UiccApduCommands
+from pySim.apdu.ts_102_222 import ApduCommands as UiccAdmApduCommands
from pySim.apdu.ts_31_102 import ApduCommands as UsimApduCommands
from pySim.apdu.global_platform import ApduCommands as GpApduCommands
from . import ApduSource, PacketType, CardReset
-ApduCommands = UiccApduCommands + UsimApduCommands + GpApduCommands
+ApduCommands = UiccApduCommands + UiccAdmApduCommands + UsimApduCommands + GpApduCommands
class GsmtapApduSource(ApduSource):
"""ApduSource for handling GSMTAP-SIM messages received via UDP, such as
diff --git a/pySim/apdu_source/pyshark_gsmtap.py b/pySim/apdu_source/pyshark_gsmtap.py
index 83745e9..af53ec8 100644
--- a/pySim/apdu_source/pyshark_gsmtap.py
+++ b/pySim/apdu_source/pyshark_gsmtap.py
@@ -24,12 +24,13 @@
from pySim.gsmtap import GsmtapMessage
from pySim.apdu.ts_102_221 import ApduCommands as UiccApduCommands
+from pySim.apdu.ts_102_222 import ApduCommands as UiccAdmApduCommands
from pySim.apdu.ts_31_102 import ApduCommands as UsimApduCommands
from pySim.apdu.global_platform import ApduCommands as GpApduCommands
from . import ApduSource, PacketType, CardReset
-ApduCommands = UiccApduCommands + UsimApduCommands + GpApduCommands
+ApduCommands = UiccApduCommands + UiccAdmApduCommands + UsimApduCommands + GpApduCommands
logger = logging.getLogger(__name__)
diff --git a/pySim/apdu_source/tca_loader_log.py b/pySim/apdu_source/tca_loader_log.py
index 6efc605..c7827e7 100644
--- a/pySim/apdu_source/tca_loader_log.py
+++ b/pySim/apdu_source/tca_loader_log.py
@@ -20,12 +20,13 @@
from pySim.gsmtap import GsmtapSource
from pySim.apdu.ts_102_221 import ApduCommands as UiccApduCommands
+from pySim.apdu.ts_102_222 import ApduCommands as UiccAdmApduCommands
from pySim.apdu.ts_31_102 import ApduCommands as UsimApduCommands
from pySim.apdu.global_platform import ApduCommands as GpApduCommands
from . import ApduSource, PacketType, CardReset
-ApduCommands = UiccApduCommands + UsimApduCommands + GpApduCommands
+ApduCommands = UiccApduCommands + UiccAdmApduCommands + UsimApduCommands + GpApduCommands
class TcaLoaderLogApduSource(ApduSource):
"""ApduSource for reading log files created by TCALoader."""
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37533?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I77c97221da19e1a67d96f7cfb69785baefc675c0
Gerrit-Change-Number: 37533
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
19 Jul '24
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37531?usp=email )
Change subject: pySim.apdu: Refactor cmd_to_dict() method
......................................................................
pySim.apdu: Refactor cmd_to_dict() method
Let's factor out the "automatic processing using _tlv / _construct" as a
separate method. This way we enable a derived class to first call that
automatic processing method, and then amend its output in a second step.
Change-Id: I1f066c0f1502020c88d99026c25bf2e283c3b4f5
---
M pySim/apdu/__init__.py
1 file changed, 32 insertions(+), 15 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/31/37531/1
diff --git a/pySim/apdu/__init__.py b/pySim/apdu/__init__.py
index 02ccbad..6613e91 100644
--- a/pySim/apdu/__init__.py
+++ b/pySim/apdu/__init__.py
@@ -292,22 +292,26 @@
if callable(method):
return method()
else:
- r = {}
- method = getattr(self, '_decode_p1p2', None)
- if callable(method):
- r = self._decode_p1p2()
+ return self._cmd_to_dict()
+
+ def _cmd_to_dict(self) -> Dict:
+ """back-end function performing automatic decoding using _construct / _tlv."""
+ r = {}
+ method = getattr(self, '_decode_p1p2', None)
+ if callable(method):
+ r = self._decode_p1p2()
+ else:
+ r['p1'] = parse_construct(self._construct_p1, self.p1.to_bytes(1, 'big'))
+ r['p2'] = parse_construct(self._construct_p2, self.p2.to_bytes(1, 'big'))
+ r['p3'] = self.p3
+ if self.cmd_data:
+ if self._tlv:
+ ie = self._tlv()
+ ie.from_tlv(self.cmd_data)
+ r['body'] = ie.to_dict()
else:
- r['p1'] = parse_construct(self._construct_p1, self.p1.to_bytes(1, 'big'))
- r['p2'] = parse_construct(self._construct_p2, self.p2.to_bytes(1, 'big'))
- r['p3'] = self.p3
- if self.cmd_data:
- if self._tlv:
- ie = self._tlv()
- ie.from_tlv(self.cmd_data)
- r['body'] = ie.to_dict()
- else:
- r['body'] = parse_construct(self._construct, self.cmd_data)
- return r
+ r['body'] = parse_construct(self._construct, self.cmd_data)
+ return r
def rsp_to_dict(self) -> Dict:
"""Convert the Response part of the APDU to a dict."""
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37531?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I1f066c0f1502020c88d99026c25bf2e283c3b4f5
Gerrit-Change-Number: 37531
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[S] Change in pysim[master]: pySim.ota: Add construct definition for SIM File + TK Param definition
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37536?usp=email )
Change subject: pySim.ota: Add construct definition for SIM File + TK Param definition
......................................................................
pySim.ota: Add construct definition for SIM File + TK Param definition
Change-Id: Ie5aa2babaf66af49eb5223e5e9d4451089baf055
---
M pySim/ota.py
1 file changed, 22 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/36/37536/1
diff --git a/pySim/ota.py b/pySim/ota.py
index 751461a..bb5a1f6 100644
--- a/pySim/ota.py
+++ b/pySim/ota.py
@@ -1,6 +1,6 @@
"""Code related to SIM/UICC OTA according to TS 102 225 + TS 31.115."""
-# (C) 2021-2023 by Harald Welte <laforge(a)osmocom.org>
+# (C) 2021-2024 by Harald Welte <laforge(a)osmocom.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
import struct
from typing import Optional, Tuple
from construct import Enum, Int8ub, Int16ub, Struct, Bytes, GreedyBytes, BitsInteger, BitStruct
-from construct import Flag, Padding, Switch, this
+from construct import Flag, Padding, Switch, this, PrefixedArray, GreedyRange
from pySim.construct import *
from pySim.utils import b2h
@@ -99,6 +99,17 @@
'tar'/Bytes(3),
'secured_data'/GreedyBytes)
+# TS 102 226 Section 8.2.1.3.2.1
+SimFileAccessAndToolkitAppSpecParams = Struct('access_domain'/Prefixed(Int8ub, GreedyBytes),
+ 'prio_level_of_tk_app_inst'/Int8ub,
+ 'max_num_of_timers'/Int8ub,
+ 'max_text_length_for_menu_entry'/Int8ub,
+ 'menu_entries'/PrefixedArray(Int8ub, Struct('id'/Int8ub,
+ 'pos'/Int8ub)),
+ 'max_num_of_channels'/Int8ub,
+ 'msl'/Prefixed(Int8ub, GreedyBytes),
+ 'tar_values'/Prefixed(Int8ub, GreedyRange(Bytes(3))))
+
class OtaKeyset:
"""The OTA related data (key material, counter) to be used in encrypt/decrypt."""
def __init__(self, algo_crypt: str, kic_idx: int, kic: bytes,
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37536?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie5aa2babaf66af49eb5223e5e9d4451089baf055
Gerrit-Change-Number: 37536
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37535?usp=email )
Change subject: pySim.apdu: Get rid of HexAdapter
......................................................................
pySim.apdu: Get rid of HexAdapter
In the past, we always wrapped a HexAdapter around bytes-like data in
order to make sure it's printed as hex-digits. However, now that we are
doing JSON output it's much easier to let the pySim.utils.JsonEncoder
take care of this in a generic way.
We should do a similar migrtaion all over pySim (pySim-shell,
filesystem, etc.) - but for now only do it in the low-hanging fruit of
pySim-trace aka pySim.apdu
Change-Id: I0cde40b2db08b4db9c10c1ece9ca6fdd42aa9154
---
M pySim/apdu/__init__.py
M pySim/apdu/ts_102_221.py
M pySim/apdu/ts_31_102.py
3 files changed, 41 insertions(+), 23 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/35/37535/1
diff --git a/pySim/apdu/__init__.py b/pySim/apdu/__init__.py
index fbe7e6b..469b2fa 100644
--- a/pySim/apdu/__init__.py
+++ b/pySim/apdu/__init__.py
@@ -150,8 +150,8 @@
# fall-back constructs if the derived class provides no override
_construct_p1 = Byte
_construct_p2 = Byte
- _construct = HexAdapter(GreedyBytes)
- _construct_rsp = HexAdapter(GreedyBytes)
+ _construct = GreedyBytes
+ _construct_rsp = GreedyBytes
_tlv = None
_tlv_rsp = None
diff --git a/pySim/apdu/ts_102_221.py b/pySim/apdu/ts_102_221.py
index eaac868..491c0d3 100644
--- a/pySim/apdu/ts_102_221.py
+++ b/pySim/apdu/ts_102_221.py
@@ -99,7 +99,7 @@
logger.warning('SELECT UNKNOWN FID %s', file_hex)
elif mode == 'df_name':
# Select by AID (can be sub-string!)
- aid = self.cmd_dict['body']
+ aid = b2h(self.cmd_dict['body'])
sels = lchan.rs.mf.get_app_selectables(['AIDS'])
adf = self._find_aid_substr(sels, aid)
if adf:
@@ -115,7 +115,7 @@
self.file = lchan.selected_file
if 'body' in self.rsp_dict:
# not every SELECT is asking for the FCP in response...
- return lchan.selected_file.decode_select_response(self.rsp_dict['body'])
+ return lchan.selected_file.decode_select_response(b2h(self.rsp_dict['body']))
return None
@@ -128,7 +128,7 @@
def process_on_lchan(self, lchan):
if self.cmd_dict['p2'] == 'response_like_select':
- return lchan.selected_file.decode_select_response(self.rsp_dict['body'])
+ return lchan.selected_file.decode_select_response(b2h(self.rsp_dict['body']))
def _decode_binary_p1p2(p1, p2) -> Dict:
ret = {}
diff --git a/pySim/apdu/ts_31_102.py b/pySim/apdu/ts_31_102.py
index c335773..58f91a2 100644
--- a/pySim/apdu/ts_31_102.py
+++ b/pySim/apdu/ts_31_102.py
@@ -42,28 +42,28 @@
BitsInteger(4),
'authentication_context'/Enum(BitsInteger(3), gsm=0, umts=1,
vgcs_vbs=2, gba=4))
- _cs_cmd_gsm_3g = Struct('_rand_len'/Int8ub, 'rand'/HexAdapter(Bytes(this._rand_len)),
- '_autn_len'/COptional(Int8ub), 'autn'/If(this._autn_len, HexAdapter(Bytes(this._autn_len))))
- _cs_cmd_vgcs = Struct('_vsid_len'/Int8ub, 'vservice_id'/HexAdapter(Bytes(this._vsid_len)),
- '_vkid_len'/Int8ub, 'vk_id'/HexAdapter(Bytes(this._vkid_len)),
- '_vstk_rand_len'/Int8ub, 'vstk_rand'/HexAdapter(Bytes(this._vstk_rand_len)))
- _cmd_gba_bs = Struct('_rand_len'/Int8ub, 'rand'/HexAdapter(Bytes(this._rand_len)),
- '_autn_len'/Int8ub, 'autn'/HexAdapter(Bytes(this._autn_len)))
- _cmd_gba_naf = Struct('_naf_id_len'/Int8ub, 'naf_id'/HexAdapter(Bytes(this._naf_id_len)),
- '_impi_len'/Int8ub, 'impi'/HexAdapter(Bytes(this._impi_len)))
+ _cs_cmd_gsm_3g = Struct('_rand_len'/Int8ub, 'rand'/Bytes(this._rand_len),
+ '_autn_len'/COptional(Int8ub), 'autn'/If(this._autn_len, Bytes(this._autn_len)))
+ _cs_cmd_vgcs = Struct('_vsid_len'/Int8ub, 'vservice_id'/Bytes(this._vsid_len),
+ '_vkid_len'/Int8ub, 'vk_id'/Bytes(this._vkid_len),
+ '_vstk_rand_len'/Int8ub, 'vstk_rand'/Bytes(this._vstk_rand_len))
+ _cmd_gba_bs = Struct('_rand_len'/Int8ub, 'rand'/Bytes(this._rand_len),
+ '_autn_len'/Int8ub, 'autn'/Bytes(this._autn_len))
+ _cmd_gba_naf = Struct('_naf_id_len'/Int8ub, 'naf_id'/Bytes(this._naf_id_len),
+ '_impi_len'/Int8ub, 'impi'/Bytes(this._impi_len))
_cs_cmd_gba = Struct('tag'/Int8ub, 'body'/Switch(this.tag, { 0xDD: 'bootstrap'/_cmd_gba_bs,
0xDE: 'naf_derivation'/_cmd_gba_naf }))
- _cs_rsp_gsm = Struct('_len_sres'/Int8ub, 'sres'/HexAdapter(Bytes(this._len_sres)),
- '_len_kc'/Int8ub, 'kc'/HexAdapter(Bytes(this._len_kc)))
- _rsp_3g_ok = Struct('_len_res'/Int8ub, 'res'/HexAdapter(Bytes(this._len_res)),
- '_len_ck'/Int8ub, 'ck'/HexAdapter(Bytes(this._len_ck)),
- '_len_ik'/Int8ub, 'ik'/HexAdapter(Bytes(this._len_ik)),
- '_len_kc'/COptional(Int8ub), 'kc'/If(this._len_kc, HexAdapter(Bytes(this._len_kc))))
- _rsp_3g_sync = Struct('_len_auts'/Int8ub, 'auts'/HexAdapter(Bytes(this._len_auts)))
+ _cs_rsp_gsm = Struct('_len_sres'/Int8ub, 'sres'/Bytes(this._len_sres),
+ '_len_kc'/Int8ub, 'kc'/Bytes(this._len_kc))
+ _rsp_3g_ok = Struct('_len_res'/Int8ub, 'res'/Bytes(this._len_res),
+ '_len_ck'/Int8ub, 'ck'/Bytes(this._len_ck),
+ '_len_ik'/Int8ub, 'ik'/Bytes(this._len_ik),
+ '_len_kc'/COptional(Int8ub), 'kc'/If(this._len_kc, Bytes(this._len_kc)))
+ _rsp_3g_sync = Struct('_len_auts'/Int8ub, 'auts'/Bytes(this._len_auts))
_cs_rsp_3g = Struct('tag'/Int8ub, 'body'/Switch(this.tag, { 0xDB: 'success'/_rsp_3g_ok,
0xDC: 'sync_fail'/_rsp_3g_sync}))
- _cs_rsp_vgcs = Struct(Const(b'\xDB'), '_vstk_len'/Int8ub, 'vstk'/HexAdapter(Bytes(this._vstk_len)))
- _cs_rsp_gba_naf = Struct(Const(b'\xDB'), '_ks_ext_naf_len'/Int8ub, 'ks_ext_naf'/HexAdapter(Bytes(this._ks_ext_naf_len)))
+ _cs_rsp_vgcs = Struct(Const(b'\xDB'), '_vstk_len'/Int8ub, 'vstk'/Bytes(this._vstk_len))
+ _cs_rsp_gba_naf = Struct(Const(b'\xDB'), '_ks_ext_naf_len'/Int8ub, 'ks_ext_naf'/Bytes(this._ks_ext_naf_len))
def _decode_cmd(self) -> Dict:
r = {}
r['p1'] = parse_construct(self._construct_p1, self.p1.to_bytes(1, 'big'))
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37535?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I0cde40b2db08b4db9c10c1ece9ca6fdd42aa9154
Gerrit-Change-Number: 37535
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[M] Change in pysim[master]: pySim.apdu.global_platform: Decode the INSTALL command parameters
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37537?usp=email )
Change subject: pySim.apdu.global_platform: Decode the INSTALL command parameters
......................................................................
pySim.apdu.global_platform: Decode the INSTALL command parameters
Change-Id: I1c323c1cb1be504c6ad5b7efb0fa85d87eaa8cf7
---
M pySim/apdu/global_platform.py
M pySim/global_platform/__init__.py
2 files changed, 109 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/37/37537/1
diff --git a/pySim/apdu/global_platform.py b/pySim/apdu/global_platform.py
index bdba24e..894d864 100644
--- a/pySim/apdu/global_platform.py
+++ b/pySim/apdu/global_platform.py
@@ -1,7 +1,7 @@
# coding=utf-8
"""APDU definition/decoder of GlobalPLatform Card Spec (currently 2.1.1)
-(C) 2022 by Harald Welte <laforge(a)osmocom.org>
+(C) 2022-2024 by Harald Welte <laforge(a)osmocom.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,7 +17,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+from construct import FlagsEnum, Struct
+from pySim.tlv import flatten_dict_lists
from pySim.apdu import ApduCommand, ApduCommandSet
+from pySim.construct import *
+from pySim.global_platform import InstallParameters
class GpDelete(ApduCommand, n='DELETE', ins=0xE4, cla=['8X', 'CX', 'EX']):
_apdu_case = 4
@@ -40,8 +44,29 @@
class GpGetStatus(ApduCommand, n='GET STATUS', ins=0xF2, cla=['8X', 'CX', 'EX']):
_apdu_case = 4
+# GPCS Section 11.5.2
class GpInstall(ApduCommand, n='INSTALL', ins=0xE6, cla=['8X', 'CX', 'EX']):
_apdu_case = 4
+ _construct_p1 = FlagsEnum(Byte, more_commands=0x80, for_registry_update=0x40,
+ for_personalization=0x20, for_extradition=0x10,
+ for_make_selectable=0x08, for_install=0x04, for_load=0x02)
+ _construct_p2 = Enum(Byte, no_info_provided=0x00, beginning_of_combined=0x01,
+ end_of_combined=0x03)
+ _construct = Struct('load_file_aid'/Prefixed(Int8ub, GreedyBytes),
+ 'module_aid'/Prefixed(Int8ub, GreedyBytes),
+ 'application_aid'/Prefixed(Int8ub, GreedyBytes),
+ 'privileges'/Prefixed(Int8ub, GreedyBytes),
+ 'install_parameters'/Prefixed(Int8ub, GreedyBytes), # TODO: InstallParameters
+ 'install_token'/Prefixed(Int8ub, GreedyBytes))
+ def _decode_cmd(self):
+ # first use _construct* above
+ res = self._cmd_to_dict()
+ # then do TLV decode of install_parameters
+ ip = InstallParameters()
+ ip.from_tlv(res['body']['install_parameters'])
+ res['body']['install_parameters'] = flatten_dict_lists(ip.to_dict())
+ return res
+
class GpLoad(ApduCommand, n='LOAD', ins=0xE8, cla=['8X', 'CX', 'EX']):
_apdu_case = 4
diff --git a/pySim/global_platform/__init__.py b/pySim/global_platform/__init__.py
index 0be316b..075a189 100644
--- a/pySim/global_platform/__init__.py
+++ b/pySim/global_platform/__init__.py
@@ -30,6 +30,80 @@
from pySim.filesystem import *
from pySim.tlv import *
from pySim.profile import CardProfile
+from pySim.ota import SimFileAccessAndToolkitAppSpecParams
+
+# GPCS Table 11-48 Load Parameter Tags
+class NonVolatileCodeMinMemoryReq(BER_TLV_IE, tag=0xC6):
+ _construct = GreedyInteger()
+
+# GPCS Table 11-48 Load Parameter Tags
+class VolatileMinMemoryReq(BER_TLV_IE, tag=0xC7):
+ _construct = GreedyInteger()
+
+# GPCS Table 11-48 Load Parameter Tags
+class NonVolatileDataMinMemoryReq(BER_TLV_IE, tag=0xC8):
+ _construct = GreedyInteger()
+
+# GPCS Table 11-49: Install Parameter Tags
+class GlobalServiceParams(BER_TLV_IE, tag=0xCB):
+ pass
+
+# GPCS Table 11-49: Install Parameter Tags
+class VolatileReservedMemory(BER_TLV_IE, tag=0xD7):
+ _construct = GreedyInteger()
+
+# GPCS Table 11-49: Install Parameter Tags
+class NonVolatileReservedMemory(BER_TLV_IE, tag=0xD8):
+ _construct = GreedyInteger()
+
+# GPCS Table 11-49: Install Parameter Tags
+class Ts102226SpecificParameter(BER_TLV_IE, tag=0xCA):
+ _construct = SimFileAccessAndToolkitAppSpecParams
+
+# GPCS Table 11-48 Load Parameter Tags
+class LoadFileDataBlockFormatId(BER_TLV_IE, tag=0xCD):
+ pass
+
+# GPCS Table 11-50: Make Selectable Parameter Tags
+class ImplicitSelectionParam(BER_TLV_IE, tag=0xCF):
+ pass
+
+# GPCS Table 11-48 Load Parameter Tags
+class LoadFileDtaBlockParameters(BER_TLV_IE, tag=0xDD):
+ pass
+
+# GPCS Table 11-48 Load Parameter Tags / 11-49: Install Parameter Tags
+class SystemSpecificParams(BER_TLV_IE, tag=0xEF,
+ nested=[NonVolatileCodeMinMemoryReq,
+ VolatileMinMemoryReq,
+ NonVolatileDataMinMemoryReq,
+ GlobalServiceParams,
+ VolatileReservedMemory,
+ NonVolatileReservedMemory,
+ Ts102226SpecificParameter,
+ LoadFileDataBlockFormatId,
+ ImplicitSelectionParam,
+ LoadFileDtaBlockParameters]):
+ pass
+
+# GPCS Table 11-49: Install Parameter Tags
+class ApplicationSpecificParams(BER_TLV_IE, tag=0xC9):
+ _construct = GreedyBytes
+
+class Ts102226SpecificTemplate(BER_TLV_IE, tag=0xEA):
+ pass
+
+class CrtForDigitalSignature(BER_TLV_IE, tag=0xB6):
+ # FIXME: nested
+ pass
+
+
+class InstallParameters(TLV_IE_Collection, nested=[ApplicationSpecificParams,
+ SystemSpecificParams,
+ Ts102226SpecificTemplate,
+ CrtForDigitalSignature]):
+ pass
+
sw_table = {
'Warnings': {
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37537?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I1c323c1cb1be504c6ad5b7efb0fa85d87eaa8cf7
Gerrit-Change-Number: 37537
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[L] Change in pysim[master]: pySim-trace: display decoded result as JSON, not as python dict
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37534?usp=email )
Change subject: pySim-trace: display decoded result as JSON, not as python dict
......................................................................
pySim-trace: display decoded result as JSON, not as python dict
This means users can copy+paste or otherwise post-process the data in a
standard format.
Change-Id: I3135f2f52b8d61684a71b836915b43da5c48422b
---
M pySim-trace.py
M pysim-testdata/pySim-trace_test_gsmtap.pcapng.ok
2 files changed, 290 insertions(+), 276 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/34/37534/1
diff --git a/pySim-trace.py b/pySim-trace.py
index 3257cb7..74dc8b9 100755
--- a/pySim-trace.py
+++ b/pySim-trace.py
@@ -8,6 +8,7 @@
from pySim.apdu import *
from pySim.runtime import RuntimeState
+from pySim.utils import JsonEncoder
from pySim.cards import UiccCardBase
from pySim.commands import SimCardCommands
from pySim.profile import CardProfile
@@ -97,7 +98,8 @@
"""Output a single decoded + processed ApduCommand."""
if self.show_raw_apdu:
print(apdu)
- print("%02u %-16s %-35s %-8s %s %s" % (inst.lchan_nr, inst._name, inst.path_str, inst.col_id, inst.col_sw, inst.processed))
+ print("%02u %-16s %-35s %-8s %s %s" % (inst.lchan_nr, inst._name, inst.path_str, inst.col_id,
+ inst.col_sw, json.dumps(inst.processed, cls=JsonEncoder)))
print("===============================")
def format_reset(self, apdu: CardReset):
diff --git a/pysim-testdata/pySim-trace_test_gsmtap.pcapng.ok b/pysim-testdata/pySim-trace_test_gsmtap.pcapng.ok
index 9c17b69..ed76fd5 100644
--- a/pysim-testdata/pySim-trace_test_gsmtap.pcapng.ok
+++ b/pysim-testdata/pySim-trace_test_gsmtap.pcapng.ok
@@ -9,610 +9,610 @@
USIM: a0000000871002
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 READ BINARY MF/EF.PL - 9000 [None, None, None, None, None]
+00 READ BINARY MF/EF.PL - 9000 [null, null, null, null, null]
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 READ RECORD MF/EF.DIR 01 9000 {'application_template': [{'application_id': b'\xa0\x00\x00\x00\x87\x10\x02\xff\xff\xff\xff\x89\x07\t\x00\x00'}, {'application_label': 'USim1'}, {'discretionary_template': b'\xa0\x0c\x80\x01\x17\x81\x02_`\x82\x03EAP'}]}
+00 READ RECORD MF/EF.DIR 01 9000 {"application_template": [{"application_id": "a0000000871002ffffffff8907090000"}, {"application_label": "USim1"}, {"discretionary_template": "a00c80011781025f608203454150"}]}
===============================
-00 READ RECORD MF/EF.DIR 02 9000 {'application_template': [{'application_id': b'\xa0\x00\x00\x00\x87\x10\x04\xff\xff\xff\xff\x89\x07\t\x00\x00'}, {'application_label': 'ISim1'}]}
+00 READ RECORD MF/EF.DIR 02 9000 {"application_template": [{"application_id": "a0000000871004ffffffff8907090000"}, {"application_label": "ISim1"}]}
===============================
-00 READ RECORD MF/EF.DIR 03 9000 {'application_template': None}
+00 READ RECORD MF/EF.DIR 03 9000 {"application_template": null}
===============================
-00 READ RECORD MF/EF.DIR 04 9000 {'application_template': None}
+00 READ RECORD MF/EF.DIR 04 9000 {"application_template": null}
===============================
-00 READ RECORD MF/EF.DIR 05 9000 {'application_template': None}
+00 READ RECORD MF/EF.DIR 05 9000 {"application_template": null}
===============================
-00 READ RECORD MF/EF.DIR 06 9000 {'application_template': None}
+00 READ RECORD MF/EF.DIR 06 9000 {"application_template": null}
===============================
-00 READ RECORD MF/EF.DIR 07 9000 {'application_template': None}
+00 READ RECORD MF/EF.DIR 07 9000 {"application_template": null}
===============================
-00 READ RECORD MF/EF.DIR 08 9000 {'application_template': None}
+00 READ RECORD MF/EF.DIR 08 9000 {"application_template": null}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 READ RECORD MF/ADF.USIM/EF.ECC 01 9000 None
+00 READ RECORD MF/ADF.USIM/EF.ECC 01 9000 null
===============================
-00 READ RECORD MF/ADF.USIM/EF.ECC 02 9000 None
+00 READ RECORD MF/ADF.USIM/EF.ECC 02 9000 null
===============================
-00 READ RECORD MF/ADF.USIM/EF.ECC 03 9000 None
+00 READ RECORD MF/ADF.USIM/EF.ECC 03 9000 null
===============================
-00 READ RECORD MF/ADF.USIM/EF.ECC 04 9000 None
+00 READ RECORD MF/ADF.USIM/EF.ECC 04 9000 null
===============================
-00 READ RECORD MF/ADF.USIM/EF.ECC 05 9000 None
+00 READ RECORD MF/ADF.USIM/EF.ECC 05 9000 null
===============================
-00 READ BINARY MF/ADF.USIM/EF.LI - 9000 [None, None, None, None, None]
+00 READ BINARY MF/ADF.USIM/EF.LI - 9000 [null, null, null, null, null]
===============================
-00 UNBLOCK PIN - 63ca {'scope': 'global_mf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 10}
+00 UNBLOCK PIN - 63ca {"scope": "global_mf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 10}
===============================
-00 VERIFY PIN - 63c3 {'scope': 'global_mf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 3}
+00 VERIFY PIN - 63c3 {"scope": "global_mf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 3}
===============================
-00 UNBLOCK PIN - 63ca {'scope': 'specific_df_adf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 10}
+00 UNBLOCK PIN - 63ca {"scope": "specific_df_adf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 10}
===============================
-00 VERIFY PIN - 63c3 {'scope': 'specific_df_adf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 3}
+00 VERIFY PIN - 63c3 {"scope": "specific_df_adf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 3}
===============================
-00 READ BINARY MF/ADF.USIM/EF.AD - 9000 {'ms_operation_mode': 'normal', 'additional_info': {'ciphering_indicator': False, 'csg_display_control': False, 'prose_services': False, 'extended_drx': False}, 'rfu': 0, 'mnc_len': 2, 'extensions': b''}
+00 READ BINARY MF/ADF.USIM/EF.AD - 9000 {"ms_operation_mode": "normal", "additional_info": {"ciphering_indicator": false, "csg_display_control": false, "prose_services": false, "extended_drx": false}, "rfu": 0, "mnc_len": 2, "extensions": ""}
===============================
-00 READ BINARY MF/ADF.USIM/EF.IMSI - 9000 {'imsi': '901700000046734'}
+00 READ BINARY MF/ADF.USIM/EF.IMSI - 9000 {"imsi": "901700000046734"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.ACC - 9000 {'ACC0': True, 'ACC1': False, 'ACC2': False, 'ACC3': False, 'ACC4': False, 'ACC5': False, 'ACC6': False, 'ACC7': False, 'ACC8': False, 'ACC9': False, 'ACC10': False, 'ACC11': False, 'ACC12': False, 'ACC13': False, 'ACC14': False, 'ACC15': False}
+00 READ BINARY MF/ADF.USIM/EF.ACC - 9000 {"ACC0": true, "ACC1": false, "ACC2": false, "ACC3": false, "ACC4": false, "ACC5": false, "ACC6": false, "ACC7": false, "ACC8": false, "ACC9": false, "ACC10": false, "ACC11": false, "ACC12": false, "ACC13": false, "ACC14": false, "ACC15": false}
===============================
-00 READ BINARY MF/ADF.USIM/EF.LOCI - 9000 {'tmsi': 'ffffffff', 'lai': {'mcc_mnc': 'fff-ff', 'lac': 'fffe'}, 'rfu': 255, 'lu_status': 3}
+00 READ BINARY MF/ADF.USIM/EF.LOCI - 9000 {"tmsi": "ffffffff", "lai": {"mcc_mnc": "fff-ff", "lac": "fffe"}, "rfu": 255, "lu_status": 3}
===============================
-00 READ BINARY MF/ADF.USIM/EF.PSLOCI - 9000 {'ptmsi': 'ffffffff', 'ptmsi_sig': 'ffffff', 'rai': 'ffff00fffeff', 'rau_status': 2}
+00 READ BINARY MF/ADF.USIM/EF.PSLOCI - 9000 {"ptmsi": "ffffffff", "ptmsi_sig": "ffffff", "rai": "ffff00fffeff", "rau_status": 2}
===============================
-00 READ BINARY MF/ADF.USIM/EF.UST - 9000 {1: {'activated': False, 'description': 'Local Phone Book'}, 2: {'activated': True, 'description': 'Fixed Dialling Numbers (FDN)'}, 3: {'activated': True, 'description': 'Extension 2'}, 4: {'activated': True, 'description': 'Service Dialling Numbers (SDN)'}, 5: {'activated': True, 'description': 'Extension3'}, 6: {'activated': True, 'description': 'Barred Dialling Numbers (BDN)'}, 7: {'activated': False, 'description': 'Extension4'}, 8: {'activated': True, 'description': 'Outgoing Call Information (OCI and OCT)'}, 9: {'activated': True, 'description': 'Incoming Call Information (ICI and ICT)'}, 10: {'activated': True, 'description': 'Short Message Storage (SMS)'}, 11: {'activated': True, 'description': 'Short Message Status Reports (SMSR)'}, 12: {'activated': True, 'description': 'Short Message Service Parameters (SMSP)'}, 13: {'activated': True, 'description': 'Advice of Charge (AoC)'}, 14: {'activated': True, 'description': 'Capability Configuration Parameters 2 (CCP2)'}, 15: {'activated': True, 'description': 'Cell Broadcast Message Identifier'}, 16: {'activated': True, 'description': 'Cell Broadcast Message Identifier Ranges'}, 17: {'activated': True, 'description': 'Group Identifier Level 1'}, 18: {'activated': True, 'description': 'Group Identifier Level 2'}, 19: {'activated': True, 'description': 'Service Provider Name'}, 20: {'activated': True, 'description': 'User controlled PLMN selector with Access Technology'}, 21: {'activated': True, 'description': 'MSISDN'}, 22: {'activated': False, 'description': 'Image (IMG)'}, 23: {'activated': False, 'description': 'Support of Localised Service Areas (SoLSA)'}, 24: {'activated': True, 'description': 'Enhanced Multi-Level Precedence and Pre-emption Service'}, 25: {'activated': True, 'description': 'Automatic Answer for eMLPP'}, 26: {'activated': False, 'description': 'RFU'}, 27: {'activated': True, 'description': 'GSM Access'}, 28: {'activated': True, 'description': 'Data download via SMS-PP'}, 29: {'activated': True, 'description': 'Data download via SMS-CB'}, 30: {'activated': False, 'description': 'Call Control by USIM'}, 31: {'activated': False, 'description': 'MO-SMS Control by USIM'}, 32: {'activated': True, 'description': 'RUN AT COMMAND command'}, 33: {'activated': True, 'description': 'shall be set to 1'}, 34: {'activated': True, 'description': 'Enabled Services Table'}, 35: {'activated': True, 'description': 'APN Control List (ACL)'}, 36: {'activated': False, 'description': 'Depersonalisation Control Keys'}, 37: {'activated': False, 'description': 'Co-operative Network List'}, 38: {'activated': True, 'description': 'GSM security context'}, 39: {'activated': True, 'description': 'CPBCCH Information'}, 40: {'activated': True, 'description': 'Investigation Scan'}, 41: {'activated': False, 'description': 'MexE'}, 42: {'activated': True, 'description': 'Operator controlled PLMN selector with Access Technology'}, 43: {'activated': True, 'description': 'HPLMN selector with Access Technology'}, 44: {'activated': True, 'description': 'Extension 5'}, 45: {'activated': True, 'description': 'PLMN Network Name'}, 46: {'activated': True, 'description': 'Operator PLMN List'}, 47: {'activated': False, 'description': 'Mailbox Dialling Numbers'}, 48: {'activated': False, 'description': 'Message Waiting Indication Status'}, 49: {'activated': False, 'description': 'Call Forwarding Indication Status'}, 50: {'activated': False, 'description': 'Reserved and shall be ignored'}, 51: {'activated': True, 'description': 'Service Provider Display Information'}, 52: {'activated': False, 'description': 'Multimedia Messaging Service (MMS)'}, 53: {'activated': False, 'description': 'Extension 8'}, 54: {'activated': False, 'description': 'Call control on GPRS by USIM'}, 55: {'activated': False, 'description': 'MMS User Connectivity Parameters'}, 56: {'activated': False, 'description': "Network's indication of alerting in the MS (NIA)"}, 57: {'activated': False, 'description': 'VGCS Group Identifier List (EFVGCS and EFVGCSS)'}, 58: {'activated': False, 'description': 'VBS Group Identifier List (EFVBS and EFVBSS)'}, 59: {'activated': False, 'description': 'Pseudonym'}, 60: {'activated': True, 'description': 'User Controlled PLMN selector for I-WLAN access'}, 61: {'activated': False, 'description': 'Operator Controlled PLMN selector for I-WLAN access'}, 62: {'activated': False, 'description': 'User controlled WSID list'}, 63: {'activated': False, 'description': 'Operator controlled WSID list'}, 64: {'activated': False, 'description': 'VGCS security'}, 65: {'activated': False, 'description': 'VBS security'}, 66: {'activated': False, 'description': 'WLAN Reauthentication Identity'}, 67: {'activated': False, 'description': 'Multimedia Messages Storage'}, 68: {'activated': False, 'description': 'Generic Bootstrapping Architecture (GBA)'}, 69: {'activated': False, 'description': 'MBMS security'}, 70: {'activated': False, 'description': 'Data download via USSD and USSD application mode'}, 71: {'activated': True, 'description': 'Equivalent HPLMN'}, 72: {'activated': False, 'description': 'Additional TERMINAL PROFILE after UICC activation'}, 73: {'activated': True, 'description': 'Equivalent HPLMN Presentation Indication'}, 74: {'activated': False, 'description': 'Last RPLMN Selection Indication'}, 75: {'activated': False, 'description': 'OMA BCAST Smart Card Profile'}, 76: {'activated': False, 'description': 'GBA-based Local Key Establishment Mechanism'}, 77: {'activated': False, 'description': 'Terminal Applications'}, 78: {'activated': False, 'description': 'Service Provider Name Icon'}, 79: {'activated': False, 'description': 'PLMN Network Name Icon'}, 80: {'activated': False, 'description': 'Connectivity Parameters for USIM IP connections'}, 81: {'activated': False, 'description': 'Home I-WLAN Specific Identifier List'}, 82: {'activated': False, 'description': 'I-WLAN Equivalent HPLMN Presentation Indication'}, 83: {'activated': False, 'description': 'I-WLAN HPLMN Priority Indication'}, 84: {'activated': False, 'description': 'I-WLAN Last Registered PLMN'}, 85: {'activated': True, 'description': 'EPS Mobility Management Information'}, 86: {'activated': True, 'description': 'Allowed CSG Lists and corresponding indications'}, 87: {'activated': True, 'description': 'Call control on EPS PDN connection by USIM'}, 88: {'activated': False, 'description': 'HPLMN Direct Access'}, 89: {'activated': True, 'description': 'eCall Data'}, 90: {'activated': True, 'description': 'Operator CSG Lists and corresponding indications'}, 91: {'activated': False, 'description': 'Support for SM-over-IP'}, 92: {'activated': False, 'description': 'Support of CSG Display Control'}, 93: {'activated': True, 'description': 'Communication Control for IMS by USIM'}, 94: {'activated': True, 'description': 'Extended Terminal Applications'}, 95: {'activated': False, 'description': 'Support of UICC access to IMS'}, 96: {'activated': False, 'description': 'Non-Access Stratum configuration by USIM'}, 97: {'activated': False, 'description': 'PWS configuration by USIM'}, 98: {'activated': False, 'description': 'RFU'}, 99: {'activated': False, 'description': 'URI support by UICC'}, 100: {'activated': False, 'description': 'Extended EARFCN support'}, 101: {'activated': False, 'description': 'ProSe'}, 102: {'activated': False, 'description': 'USAT Application Pairing'}, 103: {'activated': False, 'description': 'Media Type support'}, 104: {'activated': False, 'description': 'IMS call disconnection cause'}, 105: {'activated': False, 'description': 'URI support for MO SHORT MESSAGE CONTROL'}, 106: {'activated': False, 'description': 'ePDG configuration Information support'}, 107: {'activated': False, 'description': 'ePDG configuration Information configured'}, 108: {'activated': False, 'description': 'ACDC support'}, 109: {'activated': False, 'description': 'MCPTT'}, 110: {'activated': False, 'description': 'ePDG configuration Information for Emergency Service support'}, 111: {'activated': False, 'description': 'ePDG configuration Information for Emergency Service configured'}, 112: {'activated': False, 'description': 'eCall Data over IMS'}, 113: {'activated': False, 'description': 'URI support for SMS-PP DOWNLOAD as defined in 3GPP TS 31.111 [12]'}, 114: {'activated': False, 'description': 'From Preferred'}, 115: {'activated': False, 'description': 'IMS configuration data'}, 116: {'activated': False, 'description': 'TV configuration'}, 117: {'activated': False, 'description': '3GPP PS Data Off'}, 118: {'activated': False, 'description': '3GPP PS Data Off Service List'}, 119: {'activated': False, 'description': 'V2X'}, 120: {'activated': False, 'description': 'XCAP Configuration Data'}, 121: {'activated': False, 'description': 'EARFCN list for MTC/NB-IOT UEs'}, 122: {'activated': True, 'description': '5GS Mobility Management Information'}, 123: {'activated': True, 'description': '5G Security Parameters'}, 124: {'activated': True, 'description': 'Subscription identifier privacy support'}, 125: {'activated': False, 'description': 'SUCI calculation by the USIM'}, 126: {'activated': True, 'description': 'UAC Access Identities support'}, 127: {'activated': False, 'description': 'Expect control plane-based Steering of Roaming information during initial registration in VPLMN'}, 128: {'activated': False, 'description': 'Call control on PDU Session by USIM'}, 129: {'activated': False, 'description': '5GS Operator PLMN List'}, 130: {'activated': False, 'description': 'Support for SUPI of type NSI or GLI or GCI'}, 131: {'activated': False, 'description': '3GPP PS Data Off separate Home and Roaming lists'}, 132: {'activated': False, 'description': 'Support for URSP by USIM'}, 133: {'activated': False, 'description': '5G Security Parameters extended'}, 134: {'activated': False, 'description': 'MuD and MiD configuration data'}, 135: {'activated': False, 'description': 'Support for Trusted non-3GPP access networks by USIM'}, 136: {'activated': False, 'description': 'Support for multiple records of NAS security context storage for multiple registration'}, 137: {'activated': False, 'description': 'Pre-configured CAG information list'}, 138: {'activated': False, 'description': 'SOR-CMCI storage in USIM'}, 139: {'activated': False, 'description': '5G ProSe'}, 140: {'activated': False, 'description': 'Storage of disaster roaming information in USIM'}, 141: {'activated': False, 'description': 'Pre-configured eDRX parameters'}, 142: {'activated': False, 'description': '5G NSWO support'}, 143: {'activated': False, 'description': 'PWS configuration for SNPN in USIM'}, 144: {'activated': False, 'description': 'Multiplier Coefficient for Higher Priority PLMN search via NG-RAN satellite access'}, 145: {'activated': False, 'description': 'K_AUSF derivation configuration'}, 146: {'activated': False, 'description': 'Network Identifier for SNPN (NID)'}, 147: {'activated': False}, 148: {'activated': False}, 149: {'activated': False}, 150: {'activated': False}, 151: {'activated': False}, 152: {'activated': False}, 153: {'activated': False}, 154: {'activated': False}, 155: {'activated': False}, 156: {'activated': False}, 157: {'activated': False}, 158: {'activated': False}, 159: {'activated': False}, 160: {'activated': False}}
+00 READ BINARY MF/ADF.USIM/EF.UST - 9000 {"1": {"activated": false, "description": "Local Phone Book"}, "2": {"activated": true, "description": "Fixed Dialling Numbers (FDN)"}, "3": {"activated": true, "description": "Extension 2"}, "4": {"activated": true, "description": "Service Dialling Numbers (SDN)"}, "5": {"activated": true, "description": "Extension3"}, "6": {"activated": true, "description": "Barred Dialling Numbers (BDN)"}, "7": {"activated": false, "description": "Extension4"}, "8": {"activated": true, "description": "Outgoing Call Information (OCI and OCT)"}, "9": {"activated": true, "description": "Incoming Call Information (ICI and ICT)"}, "10": {"activated": true, "description": "Short Message Storage (SMS)"}, "11": {"activated": true, "description": "Short Message Status Reports (SMSR)"}, "12": {"activated": true, "description": "Short Message Service Parameters (SMSP)"}, "13": {"activated": true, "description": "Advice of Charge (AoC)"}, "14": {"activated": true, "description": "Capability Configuration Parameters 2 (CCP2)"}, "15": {"activated": true, "description": "Cell Broadcast Message Identifier"}, "16": {"activated": true, "description": "Cell Broadcast Message Identifier Ranges"}, "17": {"activated": true, "description": "Group Identifier Level 1"}, "18": {"activated": true, "description": "Group Identifier Level 2"}, "19": {"activated": true, "description": "Service Provider Name"}, "20": {"activated": true, "description": "User controlled PLMN selector with Access Technology"}, "21": {"activated": true, "description": "MSISDN"}, "22": {"activated": false, "description": "Image (IMG)"}, "23": {"activated": false, "description": "Support of Localised Service Areas (SoLSA)"}, "24": {"activated": true, "description": "Enhanced Multi-Level Precedence and Pre-emption Service"}, "25": {"activated": true, "description": "Automatic Answer for eMLPP"}, "26": {"activated": false, "description": "RFU"}, "27": {"activated": true, "description": "GSM Access"}, "28": {"activated": true, "description": "Data download via SMS-PP"}, "29": {"activated": true, "description": "Data download via SMS-CB"}, "30": {"activated": false, "description": "Call Control by USIM"}, "31": {"activated": false, "description": "MO-SMS Control by USIM"}, "32": {"activated": true, "description": "RUN AT COMMAND command"}, "33": {"activated": true, "description": "shall be set to 1"}, "34": {"activated": true, "description": "Enabled Services Table"}, "35": {"activated": true, "description": "APN Control List (ACL)"}, "36": {"activated": false, "description": "Depersonalisation Control Keys"}, "37": {"activated": false, "description": "Co-operative Network List"}, "38": {"activated": true, "description": "GSM security context"}, "39": {"activated": true, "description": "CPBCCH Information"}, "40": {"activated": true, "description": "Investigation Scan"}, "41": {"activated": false, "description": "MexE"}, "42": {"activated": true, "description": "Operator controlled PLMN selector with Access Technology"}, "43": {"activated": true, "description": "HPLMN selector with Access Technology"}, "44": {"activated": true, "description": "Extension 5"}, "45": {"activated": true, "description": "PLMN Network Name"}, "46": {"activated": true, "description": "Operator PLMN List"}, "47": {"activated": false, "description": "Mailbox Dialling Numbers"}, "48": {"activated": false, "description": "Message Waiting Indication Status"}, "49": {"activated": false, "description": "Call Forwarding Indication Status"}, "50": {"activated": false, "description": "Reserved and shall be ignored"}, "51": {"activated": true, "description": "Service Provider Display Information"}, "52": {"activated": false, "description": "Multimedia Messaging Service (MMS)"}, "53": {"activated": false, "description": "Extension 8"}, "54": {"activated": false, "description": "Call control on GPRS by USIM"}, "55": {"activated": false, "description": "MMS User Connectivity Parameters"}, "56": {"activated": false, "description": "Network's indication of alerting in the MS (NIA)"}, "57": {"activated": false, "description": "VGCS Group Identifier List (EFVGCS and EFVGCSS)"}, "58": {"activated": false, "description": "VBS Group Identifier List (EFVBS and EFVBSS)"}, "59": {"activated": false, "description": "Pseudonym"}, "60": {"activated": true, "description": "User Controlled PLMN selector for I-WLAN access"}, "61": {"activated": false, "description": "Operator Controlled PLMN selector for I-WLAN access"}, "62": {"activated": false, "description": "User controlled WSID list"}, "63": {"activated": false, "description": "Operator controlled WSID list"}, "64": {"activated": false, "description": "VGCS security"}, "65": {"activated": false, "description": "VBS security"}, "66": {"activated": false, "description": "WLAN Reauthentication Identity"}, "67": {"activated": false, "description": "Multimedia Messages Storage"}, "68": {"activated": false, "description": "Generic Bootstrapping Architecture (GBA)"}, "69": {"activated": false, "description": "MBMS security"}, "70": {"activated": false, "description": "Data download via USSD and USSD application mode"}, "71": {"activated": true, "description": "Equivalent HPLMN"}, "72": {"activated": false, "description": "Additional TERMINAL PROFILE after UICC activation"}, "73": {"activated": true, "description": "Equivalent HPLMN Presentation Indication"}, "74": {"activated": false, "description": "Last RPLMN Selection Indication"}, "75": {"activated": false, "description": "OMA BCAST Smart Card Profile"}, "76": {"activated": false, "description": "GBA-based Local Key Establishment Mechanism"}, "77": {"activated": false, "description": "Terminal Applications"}, "78": {"activated": false, "description": "Service Provider Name Icon"}, "79": {"activated": false, "description": "PLMN Network Name Icon"}, "80": {"activated": false, "description": "Connectivity Parameters for USIM IP connections"}, "81": {"activated": false, "description": "Home I-WLAN Specific Identifier List"}, "82": {"activated": false, "description": "I-WLAN Equivalent HPLMN Presentation Indication"}, "83": {"activated": false, "description": "I-WLAN HPLMN Priority Indication"}, "84": {"activated": false, "description": "I-WLAN Last Registered PLMN"}, "85": {"activated": true, "description": "EPS Mobility Management Information"}, "86": {"activated": true, "description": "Allowed CSG Lists and corresponding indications"}, "87": {"activated": true, "description": "Call control on EPS PDN connection by USIM"}, "88": {"activated": false, "description": "HPLMN Direct Access"}, "89": {"activated": true, "description": "eCall Data"}, "90": {"activated": true, "description": "Operator CSG Lists and corresponding indications"}, "91": {"activated": false, "description": "Support for SM-over-IP"}, "92": {"activated": false, "description": "Support of CSG Display Control"}, "93": {"activated": true, "description": "Communication Control for IMS by USIM"}, "94": {"activated": true, "description": "Extended Terminal Applications"}, "95": {"activated": false, "description": "Support of UICC access to IMS"}, "96": {"activated": false, "description": "Non-Access Stratum configuration by USIM"}, "97": {"activated": false, "description": "PWS configuration by USIM"}, "98": {"activated": false, "description": "RFU"}, "99": {"activated": false, "description": "URI support by UICC"}, "100": {"activated": false, "description": "Extended EARFCN support"}, "101": {"activated": false, "description": "ProSe"}, "102": {"activated": false, "description": "USAT Application Pairing"}, "103": {"activated": false, "description": "Media Type support"}, "104": {"activated": false, "description": "IMS call disconnection cause"}, "105": {"activated": false, "description": "URI support for MO SHORT MESSAGE CONTROL"}, "106": {"activated": false, "description": "ePDG configuration Information support"}, "107": {"activated": false, "description": "ePDG configuration Information configured"}, "108": {"activated": false, "description": "ACDC support"}, "109": {"activated": false, "description": "MCPTT"}, "110": {"activated": false, "description": "ePDG configuration Information for Emergency Service support"}, "111": {"activated": false, "description": "ePDG configuration Information for Emergency Service configured"}, "112": {"activated": false, "description": "eCall Data over IMS"}, "113": {"activated": false, "description": "URI support for SMS-PP DOWNLOAD as defined in 3GPP TS 31.111 [12]"}, "114": {"activated": false, "description": "From Preferred"}, "115": {"activated": false, "description": "IMS configuration data"}, "116": {"activated": false, "description": "TV configuration"}, "117": {"activated": false, "description": "3GPP PS Data Off"}, "118": {"activated": false, "description": "3GPP PS Data Off Service List"}, "119": {"activated": false, "description": "V2X"}, "120": {"activated": false, "description": "XCAP Configuration Data"}, "121": {"activated": false, "description": "EARFCN list for MTC/NB-IOT UEs"}, "122": {"activated": true, "description": "5GS Mobility Management Information"}, "123": {"activated": true, "description": "5G Security Parameters"}, "124": {"activated": true, "description": "Subscription identifier privacy support"}, "125": {"activated": false, "description": "SUCI calculation by the USIM"}, "126": {"activated": true, "description": "UAC Access Identities support"}, "127": {"activated": false, "description": "Expect control plane-based Steering of Roaming information during initial registration in VPLMN"}, "128": {"activated": false, "description": "Call control on PDU Session by USIM"}, "129": {"activated": false, "description": "5GS Operator PLMN List"}, "130": {"activated": false, "description": "Support for SUPI of type NSI or GLI or GCI"}, "131": {"activated": false, "description": "3GPP PS Data Off separate Home and Roaming lists"}, "132": {"activated": false, "description": "Support for URSP by USIM"}, "133": {"activated": false, "description": "5G Security Parameters extended"}, "134": {"activated": false, "description": "MuD and MiD configuration data"}, "135": {"activated": false, "description": "Support for Trusted non-3GPP access networks by USIM"}, "136": {"activated": false, "description": "Support for multiple records of NAS security context storage for multiple registration"}, "137": {"activated": false, "description": "Pre-configured CAG information list"}, "138": {"activated": false, "description": "SOR-CMCI storage in USIM"}, "139": {"activated": false, "description": "5G ProSe"}, "140": {"activated": false, "description": "Storage of disaster roaming information in USIM"}, "141": {"activated": false, "description": "Pre-configured eDRX parameters"}, "142": {"activated": false, "description": "5G NSWO support"}, "143": {"activated": false, "description": "PWS configuration for SNPN in USIM"}, "144": {"activated": false, "description": "Multiplier Coefficient for Higher Priority PLMN search via NG-RAN satellite access"}, "145": {"activated": false, "description": "K_AUSF derivation configuration"}, "146": {"activated": false, "description": "Network Identifier for SNPN (NID)"}, "147": {"activated": false}, "148": {"activated": false}, "149": {"activated": false}, "150": {"activated": false}, "151": {"activated": false}, "152": {"activated": false}, "153": {"activated": false}, "154": {"activated": false}, "155": {"activated": false}, "156": {"activated": false}, "157": {"activated": false}, "158": {"activated": false}, "159": {"activated": false}, "160": {"activated": false}}
===============================
-00 READ BINARY MF/ADF.USIM/EF.EPSLOCI - 9000 {'guti': '0bf6ffffffffffffffffffff', 'last_visited_registered_tai': 'fffffffffe', 'eps_update_status': 'not_updated'}
+00 READ BINARY MF/ADF.USIM/EF.EPSLOCI - 9000 {"guti": "0bf6ffffffffffffffffffff", "last_visited_registered_tai": "fffffffffe", "eps_update_status": "not_updated"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.Keys - 9000 {'ksi': 7, 'ck': 'ffffffffffffffffffffffffffffffff', 'ik': 'ffffffffffffffffffffffffffffffff'}
+00 READ BINARY MF/ADF.USIM/EF.Keys - 9000 {"ksi": 7, "ck": "ffffffffffffffffffffffffffffffff", "ik": "ffffffffffffffffffffffffffffffff"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.KeysPS - 9000 {'ksi': 7, 'ck': 'ffffffffffffffffffffffffffffffff', 'ik': 'ffffffffffffffffffffffffffffffff'}
+00 READ BINARY MF/ADF.USIM/EF.KeysPS - 9000 {"ksi": 7, "ck": "ffffffffffffffffffffffffffffffff", "ik": "ffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.EPSNSC 01 9000 {'eps_nas__security__context': [{'ksi_asme': 7}, {'k_asme': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, {'uplink_nas_count': 4294967295}, {'downlink_nas_count': 4294967295}, {'i_dof_nas_algorithms': '00'}]}
+00 READ RECORD MF/ADF.USIM/EF.EPSNSC 01 9000 {"eps_nas__security__context": [{"ksi_asme": 7}, {"k_asme": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, {"uplink_nas_count": 4294967295}, {"downlink_nas_count": 4294967295}, {"i_dof_nas_algorithms": "00"}]}
===============================
-00 READ BINARY MF/ADF.USIM/EF.START-HFN - 9000 {'start_cs': 0, 'start_ps': 0}
+00 READ BINARY MF/ADF.USIM/EF.START-HFN - 9000 {"start_cs": 0, "start_ps": 0}
===============================
-00 READ BINARY MF/ADF.USIM/EF.THRESHOLD - 9000 {'max_start': 16777215}
+00 READ BINARY MF/ADF.USIM/EF.THRESHOLD - 9000 {"max_start": 16777215}
===============================
-00 READ BINARY MF/ADF.USIM/DF.GSM-ACCESS/EF.Kc - 9000 {'kc': 'ffffffffffffffff', 'cksn': 7}
+00 READ BINARY MF/ADF.USIM/DF.GSM-ACCESS/EF.Kc - 9000 {"kc": "ffffffffffffffff", "cksn": 7}
===============================
-00 READ BINARY MF/ADF.USIM/DF.GSM-ACCESS/EF.KcGPRS - 9000 {'kc': 'ffffffffffffffff', 'cksn': 7}
+00 READ BINARY MF/ADF.USIM/DF.GSM-ACCESS/EF.KcGPRS - 9000 {"kc": "ffffffffffffffff", "cksn": 7}
===============================
-00 READ BINARY MF/ADF.USIM/EF.EST - 9000 {1: {'activated': False, 'description': 'Fixed Dialling Numbers (FDN)'}, 2: {'activated': False, 'description': 'Barred Dialling Numbers (BDN)'}, 3: {'activated': False, 'description': 'APN Control List (ACL)'}, 4: {'activated': False}, 5: {'activated': False}, 6: {'activated': False}, 7: {'activated': False}, 8: {'activated': False}, 9: {'activated': False}, 10: {'activated': False}, 11: {'activated': False}, 12: {'activated': False}, 13: {'activated': False}, 14: {'activated': False}, 15: {'activated': False}, 16: {'activated': False}, 17: {'activated': False}, 18: {'activated': False}, 19: {'activated': False}, 20: {'activated': False}, 21: {'activated': False}, 22: {'activated': False}, 23: {'activated': False}, 24: {'activated': False}, 25: {'activated': False}, 26: {'activated': False}, 27: {'activated': False}, 28: {'activated': False}, 29: {'activated': False}, 30: {'activated': False}, 31: {'activated': False}, 32: {'activated': False}, 33: {'activated': False}, 34: {'activated': False}, 35: {'activated': False}, 36: {'activated': False}, 37: {'activated': False}, 38: {'activated': False}, 39: {'activated': False}, 40: {'activated': False}, 41: {'activated': False}, 42: {'activated': False}, 43: {'activated': False}, 44: {'activated': False}, 45: {'activated': False}, 46: {'activated': False}, 47: {'activated': False}, 48: {'activated': False}, 49: {'activated': False}, 50: {'activated': False}, 51: {'activated': False}, 52: {'activated': False}, 53: {'activated': False}, 54: {'activated': False}, 55: {'activated': False}, 56: {'activated': False}, 57: {'activated': False}, 58: {'activated': False}, 59: {'activated': False}, 60: {'activated': False}, 61: {'activated': False}, 62: {'activated': False}, 63: {'activated': False}, 64: {'activated': False}, 65: {'activated': False}, 66: {'activated': False}, 67: {'activated': False}, 68: {'activated': False}, 69: {'activated': False}, 70: {'activated': False}, 71: {'activated': False}, 72: {'activated': False}}
+00 READ BINARY MF/ADF.USIM/EF.EST - 9000 {"1": {"activated": false, "description": "Fixed Dialling Numbers (FDN)"}, "2": {"activated": false, "description": "Barred Dialling Numbers (BDN)"}, "3": {"activated": false, "description": "APN Control List (ACL)"}, "4": {"activated": false}, "5": {"activated": false}, "6": {"activated": false}, "7": {"activated": false}, "8": {"activated": false}, "9": {"activated": false}, "10": {"activated": false}, "11": {"activated": false}, "12": {"activated": false}, "13": {"activated": false}, "14": {"activated": false}, "15": {"activated": false}, "16": {"activated": false}, "17": {"activated": false}, "18": {"activated": false}, "19": {"activated": false}, "20": {"activated": false}, "21": {"activated": false}, "22": {"activated": false}, "23": {"activated": false}, "24": {"activated": false}, "25": {"activated": false}, "26": {"activated": false}, "27": {"activated": false}, "28": {"activated": false}, "29": {"activated": false}, "30": {"activated": false}, "31": {"activated": false}, "32": {"activated": false}, "33": {"activated": false}, "34": {"activated": false}, "35": {"activated": false}, "36": {"activated": false}, "37": {"activated": false}, "38": {"activated": false}, "39": {"activated": false}, "40": {"activated": false}, "41": {"activated": false}, "42": {"activated": false}, "43": {"activated": false}, "44": {"activated": false}, "45": {"activated": false}, "46": {"activated": false}, "47": {"activated": false}, "48": {"activated": false}, "49": {"activated": false}, "50": {"activated": false}, "51": {"activated": false}, "52": {"activated": false}, "53": {"activated": false}, "54": {"activated": false}, "55": {"activated": false}, "56": {"activated": false}, "57": {"activated": false}, "58": {"activated": false}, "59": {"activated": false}, "60": {"activated": false}, "61": {"activated": false}, "62": {"activated": false}, "63": {"activated": false}, "64": {"activated": false}, "65": {"activated": false}, "66": {"activated": false}, "67": {"activated": false}, "68": {"activated": false}, "69": {"activated": false}, "70": {"activated": false}, "71": {"activated": false}, "72": {"activated": false}}
===============================
-00 READ BINARY MF/ADF.USIM/EF.GID1 - 9000 {'raw': 'ffffffffffffffffffff'}
+00 READ BINARY MF/ADF.USIM/EF.GID1 - 9000 {"raw": "ffffffffffffffffffff"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.GID2 - 9000 {'raw': 'ffffffffffffffffffff'}
+00 READ BINARY MF/ADF.USIM/EF.GID2 - 9000 {"raw": "ffffffffffffffffffff"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.NETPAR - 9000 {'raw': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ BINARY MF/ADF.USIM/EF.NETPAR - 9000 {"raw": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
00 READ BINARY MF/ADF.USIM/EF.HPPLMN - 9000 5
===============================
-00 READ BINARY MF/ADF.USIM/EF.HPLMNwAcT - 9000 [{'mcc': '001', 'mnc': '01', 'act': ['E-UTRAN NB-S1', 'E-UTRAN WB-S1', 'EC-GSM-IoT', 'GSM', 'GSM COMPACT', 'NG-RAN', 'UTRAN', 'cdma2000 1xRTT', 'cdma2000 HRPD']}, None, None, None, None, None, None, None, None, None, None, None]
+00 READ BINARY MF/ADF.USIM/EF.HPLMNwAcT - 9000 [{"mcc": "001", "mnc": "01", "act": ["E-UTRAN NB-S1", "E-UTRAN WB-S1", "EC-GSM-IoT", "GSM", "GSM COMPACT", "NG-RAN", "UTRAN", "cdma2000 1xRTT", "cdma2000 HRPD"]}, null, null, null, null, null, null, null, null, null, null, null]
===============================
-00 READ BINARY MF/ADF.USIM/EF.PLMNwAcT - 9000 [{'mcc': '001', 'mnc': '01', 'act': ['E-UTRAN NB-S1', 'E-UTRAN WB-S1', 'EC-GSM-IoT', 'GSM', 'GSM COMPACT', 'NG-RAN', 'UTRAN', 'cdma2000 1xRTT', 'cdma2000 HRPD']}, None, None, None, None, None, None, None, None, None, None, None]
+00 READ BINARY MF/ADF.USIM/EF.PLMNwAcT - 9000 [{"mcc": "001", "mnc": "01", "act": ["E-UTRAN NB-S1", "E-UTRAN WB-S1", "EC-GSM-IoT", "GSM", "GSM COMPACT", "NG-RAN", "UTRAN", "cdma2000 1xRTT", "cdma2000 HRPD"]}, null, null, null, null, null, null, null, null, null, null, null]
===============================
-00 READ BINARY MF/ADF.USIM/EF.OPLMNwAcT - 9000 [{'mcc': '001', 'mnc': '01', 'act': ['E-UTRAN NB-S1', 'E-UTRAN WB-S1', 'EC-GSM-IoT', 'GSM', 'GSM COMPACT', 'NG-RAN', 'UTRAN', 'cdma2000 1xRTT', 'cdma2000 HRPD']}, None, None, None, None, None, None, None, None, None, None, None]
+00 READ BINARY MF/ADF.USIM/EF.OPLMNwAcT - 9000 [{"mcc": "001", "mnc": "01", "act": ["E-UTRAN NB-S1", "E-UTRAN WB-S1", "EC-GSM-IoT", "GSM", "GSM COMPACT", "NG-RAN", "UTRAN", "cdma2000 1xRTT", "cdma2000 HRPD"]}, null, null, null, null, null, null, null, null, null, null, null]
===============================
-00 READ BINARY MF/ADF.USIM/EF.FPLMN - 9000 [{'mcc': '262', 'mnc': '01'}, {'mcc': '262', 'mnc': '02'}, {'mcc': '262', 'mnc': '03'}, None]
+00 READ BINARY MF/ADF.USIM/EF.FPLMN - 9000 [{"mcc": "262", "mnc": "01"}, {"mcc": "262", "mnc": "02"}, {"mcc": "262", "mnc": "03"}, null]
===============================
00 READ BINARY MF/ADF.USIM/EF.CBMID - 9000 [[65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535]]
===============================
-00 READ RECORD MF/ADF.USIM/EF.ACM 01 9000 {'raw': '000000'}
+00 READ RECORD MF/ADF.USIM/EF.ACM 01 9000 {"raw": "000000"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.ACMmax - 9000 {'acm_max': 0}
+00 READ BINARY MF/ADF.USIM/EF.ACMmax - 9000 {"acm_max": 0}
===============================
-00 READ BINARY MF/ADF.USIM/EF.EHPLMN - 9000 [{'mcc': '001', 'mnc': '01'}, None, None, None]
+00 READ BINARY MF/ADF.USIM/EF.EHPLMN - 9000 [{"mcc": "001", "mnc": "01"}, null, null, null]
===============================
-00 READ BINARY MF/ADF.USIM/EF.EHPLMNPI - 9000 {'presentation_ind': 'display_all'}
+00 READ BINARY MF/ADF.USIM/EF.EHPLMNPI - 9000 {"presentation_ind": "display_all"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.EHPLMNPI - 9000 {'presentation_ind': 'no_preference'}
+00 READ BINARY MF/ADF.USIM/EF.EHPLMNPI - 9000 {"presentation_ind": "no_preference"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.SPN - 9000 {'rfu': 0, 'hide_in_oplmn': True, 'show_in_hplmn': True, 'spn': 'Magic'}
+00 READ BINARY MF/ADF.USIM/EF.SPN - 9000 {"rfu": 0, "hide_in_oplmn": true, "show_in_hplmn": true, "spn": "Magic"}
===============================
-00 READ BINARY MF/ADF.USIM/EF.SPDI - 9000 {'raw': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ BINARY MF/ADF.USIM/EF.SPDI - 9000 {"raw": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.PNN 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.PNN 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "sw": "9000"}}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.OPL 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffff'}, 'rsp': {'body': [1], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.OPL 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffff"}, "rsp": {"body": [1], "sw": "9000"}}
===============================
-00 GET STATUS - 9000 {'p1': 1, 'p2': 1, 'cmd': '8410a0000000871002ffffffff8907090000'}
+00 GET STATUS - 9000 {"p1": 1, "p2": 1, "cmd": "8410a0000000871002ffffffff8907090000"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.ARR 03 9000 [[{'access_mode': ['read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+00 READ RECORD MF/ADF.USIM/EF.ARR 03 9000 [[{"access_mode": ["read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.PBR 01 9000 {'raw': 'a81ec0034f3a01c1034f3202c3034f5414c5034f0904c6034f5212c9034f2109a90ac4034f1108ca034f500daa14c2034f4a03c7034f4b06c8034f5313cb034f4f16ffffff'}
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.PBR 01 9000 {"raw": "a81ec0034f3a01c1034f3202c3034f5414c5034f0904c6034f5212c9034f2109a90ac4034f1108ca034f500daa14c2034f4a03c7034f4b06c8034f5313cb034f4f16ffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {'msisdn': None}
+00 READ RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {"msisdn": null}
===============================
-00 UPDATE RECORD MF/ADF.USIM/EF.EPSNSC 01 9000 {'eps_nas__security__context': [{'ksi_asme': 7}, {'k_asme': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, {'uplink_nas_count': 4294967295}, {'downlink_nas_count': 4294967295}, {'i_dof_nas_algorithms': '00'}]}
+00 UPDATE RECORD MF/ADF.USIM/EF.EPSNSC 01 9000 {"eps_nas__security__context": [{"ksi_asme": 7}, {"k_asme": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, {"uplink_nas_count": 4294967295}, {"downlink_nas_count": 4294967295}, {"i_dof_nas_algorithms": "00"}]}
===============================
-00 UPDATE BINARY MF/ADF.USIM/EF.EPSLOCI - 9000 {'guti': '0bf6ffffffffffffffffffff', 'last_visited_registered_tai': 'fffffffffe', 'eps_update_status': 'not_updated'}
+00 UPDATE BINARY MF/ADF.USIM/EF.EPSLOCI - 9000 {"guti": "0bf6ffffffffffffffffffff", "last_visited_registered_tai": "fffffffffe", "eps_update_status": "not_updated"}
===============================
-00 UPDATE RECORD MF/ADF.USIM/EF.EPSNSC 01 9000 {'eps_nas__security__context': [{'ksi_asme': 7}, {'k_asme': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, {'uplink_nas_count': 4294967295}, {'downlink_nas_count': 4294967295}, {'i_dof_nas_algorithms': '00'}]}
+00 UPDATE RECORD MF/ADF.USIM/EF.EPSNSC 01 9000 {"eps_nas__security__context": [{"ksi_asme": 7}, {"k_asme": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, {"uplink_nas_count": 4294967295}, {"downlink_nas_count": 4294967295}, {"i_dof_nas_algorithms": "00"}]}
===============================
00 READ BINARY MF/ADF.USIM/EF.CBMI - 9000 [[65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535]]
===============================
-00 READ BINARY MF/ADF.USIM/EF.CBMIR - 9000 [[{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}]]
+00 READ BINARY MF/ADF.USIM/EF.CBMIR - 9000 [[{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}]]
===============================
-00 READ BINARY MF/ADF.USIM/EF.SMSS - 9000 {'last_used_tpmr': 255, 'memory_capacity_exceeded': False}
+00 READ BINARY MF/ADF.USIM/EF.SMSS - 9000 {"last_used_tpmr": 255, "memory_capacity_exceeded": false}
===============================
-00 READ RECORD MF/ADF.USIM/EF.ARR 04 9000 [[{'access_mode': ['update_erase', 'read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+00 READ RECORD MF/ADF.USIM/EF.ARR 04 9000 [[{"access_mode": ["update_erase", "read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.SMSP 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [2], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.SMSP 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [2], "sw": "9000"}}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSP 01 9000 {'alpha_id': '', 'parameter_indicators': {'tp_dest_addr': False, 'tp_sc_addr': True, 'tp_pid': True, 'tp_dcs': True, 'tp_vp': True}, 'tp_dest_addr': {'length': 255, 'ton_npi': {'ext': True, 'type_of_number': 'reserved_for_extension', 'numbering_plan_id': 'reserved_for_extension'}, 'call_number': ''}, 'tp_sc_addr': {'length': 5, 'ton_npi': {'ext': True, 'type_of_number': 'unknown', 'numbering_plan_id': 'isdn_e164'}, 'call_number': '0015555f'}, 'tp_pid': '00', 'tp_dcs': '00', 'tp_vp_minutes': 5}
+00 READ RECORD MF/ADF.USIM/EF.SMSP 01 9000 {"alpha_id": "", "parameter_indicators": {"tp_dest_addr": false, "tp_sc_addr": true, "tp_pid": true, "tp_dcs": true, "tp_vp": true}, "tp_dest_addr": {"length": 255, "ton_npi": {"ext": true, "type_of_number": "reserved_for_extension", "numbering_plan_id": "reserved_for_extension"}, "call_number": ""}, "tp_sc_addr": {"length": 5, "ton_npi": {"ext": true, "type_of_number": "unknown", "numbering_plan_id": "isdn_e164"}, "call_number": "0015555f"}, "tp_pid": "00", "tp_dcs": "00", "tp_vp_minutes": 5}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.SMS 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': '00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.SMS 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "sw": "9000"}}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.SMSR 01 6a83 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': '00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'sw': '6a83'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.SMSR 01 6a83 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"sw": "6a83"}}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 01 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 01 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 02 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 02 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 03 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 03 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 04 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 04 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 05 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 05 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 06 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 06 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 07 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 07 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 08 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 08 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 09 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 09 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 10 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 10 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 11 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 11 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 12 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 12 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 13 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 13 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 14 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 14 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 15 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 15 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 16 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 16 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 17 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 17 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 18 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 18 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 19 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 19 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SMSR 20 9000 {'sms_record_id': 255, 'sms_status_report': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}
+00 READ RECORD MF/ADF.USIM/EF.SMSR 20 9000 {"sms_record_id": 255, "sms_status_report": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.FDN 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.FDN 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "sw": "9000"}}
===============================
-00 READ RECORD MF/ADF.USIM/EF.FDN 01 9000 {'alpha_id': '', 'len_of_bcd': 255, 'ton_npi': {'ext': True, 'type_of_number': 'reserved_for_extension', 'numbering_plan_id': 'reserved_for_extension'}, 'dialing_nr': '', 'cap_conf_id': 255, 'ext2_record_id': 255}
+00 READ RECORD MF/ADF.USIM/EF.FDN 01 9000 {"alpha_id": "", "len_of_bcd": 255, "ton_npi": {"ext": true, "type_of_number": "reserved_for_extension", "numbering_plan_id": "reserved_for_extension"}, "dialing_nr": "", "cap_conf_id": 255, "ext2_record_id": 255}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.SDN 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.SDN 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "sw": "9000"}}
===============================
-00 READ RECORD MF/ADF.USIM/EF.SDN 01 9000 {'alpha_id': '', 'len_of_bcd': 255, 'ton_npi': {'ext': True, 'type_of_number': 'reserved_for_extension', 'numbering_plan_id': 'reserved_for_extension'}, 'dialing_nr': '', 'cap_conf_id': 255, 'ext3_record_id': 255}
+00 READ RECORD MF/ADF.USIM/EF.SDN 01 9000 {"alpha_id": "", "len_of_bcd": 255, "ton_npi": {"ext": true, "type_of_number": "reserved_for_extension", "numbering_plan_id": "reserved_for_extension"}, "dialing_nr": "", "cap_conf_id": 255, "ext3_record_id": 255}
===============================
-00 SEARCH RECORD MF/DF.TELECOM/EF.FDN 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/EF.FDN 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "sw": "9000"}}
===============================
-00 SEARCH RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [2, 3, 4, 5, 6], 'sw': '9000'}}
+00 SEARCH RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [2, 3, 4, 5, 6], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/EF.FDN 01 9000 {'alpha_id': '', 'len_of_bcd': 255, 'ton_npi': {'ext': True, 'type_of_number': 'reserved_for_extension', 'numbering_plan_id': 'reserved_for_extension'}, 'dialing_nr': '', 'cap_conf_id': 255, 'ext2_record_id': 255}
+00 READ RECORD MF/DF.TELECOM/EF.FDN 01 9000 {"alpha_id": "", "len_of_bcd": 255, "ton_npi": {"ext": true, "type_of_number": "reserved_for_extension", "numbering_plan_id": "reserved_for_extension"}, "dialing_nr": "", "cap_conf_id": 255, "ext2_record_id": 255}
===============================
-00 READ RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {'msisdn': None}
+00 READ RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {"msisdn": null}
===============================
-00 SEARCH RECORD MF/DF.TELECOM/EF.SDN 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/EF.SDN 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/EF.SDN 01 9000 {'alpha_id': '', 'len_of_bcd': 255, 'ton_npi': {'ext': True, 'type_of_number': 'reserved_for_extension', 'numbering_plan_id': 'reserved_for_extension'}, 'dialing_nr': '', 'cap_conf_id': 255, 'ext3_record_id': 255}
+00 READ RECORD MF/DF.TELECOM/EF.SDN 01 9000 {"alpha_id": "", "len_of_bcd": 255, "ton_npi": {"ext": true, "type_of_number": "reserved_for_extension", "numbering_plan_id": "reserved_for_extension"}, "dialing_nr": "", "cap_conf_id": 255, "ext3_record_id": 255}
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 6a83 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffff'}, 'rsp': {'sw': '6a83'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 6a83 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffff"}, "rsp": {"sw": "6a83"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 9000 47726f75702031ffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 9000 "47726f75702031ffffffffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 02 9000 47726f75702032ffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 02 9000 "47726f75702032ffffffffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 03 9000 47726f75702033ffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 03 9000 "47726f75702033ffffffffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 04 9000 47726f75702034ffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 04 9000 "47726f75702034ffffffffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 05 9000 47726f75702035ffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 05 9000 "47726f75702035ffffffffffffffffff"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 6a83 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffff'}, 'rsp': {'sw': '6a83'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 6a83 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffff"}, "rsp": {"sw": "6a83"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 9000 576f726bffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 01 9000 "576f726bffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 02 9000 486f6d65ffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 02 9000 "486f6d65ffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 03 9000 4d6f62696c65ffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 03 9000 "4d6f62696c65ffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 04 9000 466178ffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 04 9000 "466178ffffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 05 9000 4d61696effffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 05 9000 "4d61696effffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 06 9000 5061676572ffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 06 9000 "5061676572ffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 07 9000 456d61696cffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 07 9000 "456d61696cffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 08 9000 54656d70ffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 08 9000 "54656d70ffffffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 09 9000 4f6666696365ffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 09 9000 "4f6666696365ffffffff"
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 10 9000 4f7468657273ffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK 10 9000 "4f7468657273ffffffff"
===============================
-00 READ BINARY MF/DF.TELECOM/DF.PHONEBOOK/EF.PSC - 9000 {'raw': '00000000'}
+00 READ BINARY MF/DF.TELECOM/DF.PHONEBOOK/EF.PSC - 9000 {"raw": "00000000"}
===============================
-00 READ BINARY MF/DF.TELECOM/DF.PHONEBOOK/EF.PUID - 9000 {'raw': '0000'}
+00 READ BINARY MF/DF.TELECOM/DF.PHONEBOOK/EF.PUID - 9000 {"raw": "0000"}
===============================
-00 READ BINARY MF/DF.TELECOM/DF.PHONEBOOK/EF.CC - 9000 {'raw': '0000'}
+00 READ BINARY MF/DF.TELECOM/DF.PHONEBOOK/EF.CC - 9000 {"raw": "0000"}
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': '0000'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "0000"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 0000
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "0000"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': '0000'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "0000"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 0000
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "0000"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 ffffffffffffffffffffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "ffffffffffffffffffffffffffffffffffff"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': '000000'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "000000"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 000000
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "000000"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 ffffffffffffffffffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "ffffffffffffffffffffffffffffffffff"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 ffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "ffff"
===============================
-00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {'cmd': {'file': 'currently_selected_ef', 'mode': 'forward_search', 'record_number': 1, 'search_string': 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'}, 'rsp': {'body': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], 'sw': '9000'}}
+00 SEARCH RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 {"cmd": {"file": "currently_selected_ef", "mode": "forward_search", "record_number": 1, "search_string": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, "rsp": {"body": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], "sw": "9000"}}
===============================
-00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM/DF.PHONEBOOK/EF.CC 01 9000 "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
===============================
-01 UNBLOCK PIN - 63ca {'scope': 'global_mf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 10}
+01 UNBLOCK PIN - 63ca {"scope": "global_mf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 10}
===============================
-01 VERIFY PIN - 63c3 {'scope': 'global_mf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 3}
+01 VERIFY PIN - 63c3 {"scope": "global_mf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 3}
===============================
-01 UNBLOCK PIN - 63ca {'scope': 'specific_df_adf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 10}
+01 UNBLOCK PIN - 63ca {"scope": "specific_df_adf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 10}
===============================
-01 VERIFY PIN - 63c3 {'scope': 'specific_df_adf', 'referenced_data_nr': 1, 'mode': 'check_remaining_attempts', 'remaining_attempts': 3}
+01 VERIFY PIN - 63c3 {"scope": "specific_df_adf", "referenced_data_nr": 1, "mode": "check_remaining_attempts", "remaining_attempts": 3}
===============================
-00 READ RECORD MF/EF.ARR 02 9000 [[{'access_mode': ['read_search_compare']}, {'always': None}], [{'access_mode': ['update_erase']}, {'never': None}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+00 READ RECORD MF/EF.ARR 02 9000 [[{"access_mode": ["read_search_compare"]}, {"always": null}], [{"access_mode": ["update_erase"]}, {"never": null}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-00 READ RECORD MF/ADF.USIM/EF.ARR 06 9000 [[{'access_mode': ['read_search_compare']}, {'always': None}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+00 READ RECORD MF/ADF.USIM/EF.ARR 06 9000 [[{"access_mode": ["read_search_compare"]}, {"always": null}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{'access_mode': ['read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{"access_mode": ["read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{'access_mode': ['read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{"access_mode": ["read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{'access_mode': ['read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{"access_mode": ["read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{'access_mode': ['read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{"access_mode": ["read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{'access_mode': ['read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record', 'update_erase']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+01 READ RECORD MF/ADF.ISIM/EF.ARR 03 9000 [[{"access_mode": ["read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record", "update_erase"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-01 READ RECORD MF/ADF.ISIM/EF.ARR 04 9000 [[{'access_mode': ['update_erase', 'read_search_compare']}, {'control_reference_template': 'PIN1'}], [{'access_mode': ['activate_file_or_record', 'deactivate_file_or_record']}, {'control_reference_template': 'ADM1'}], [{'command_header': {'INS': 212}}, {'control_reference_template': 'ADM1'}]]
+01 READ RECORD MF/ADF.ISIM/EF.ARR 04 9000 [[{"access_mode": ["update_erase", "read_search_compare"]}, {"control_reference_template": "PIN1"}], [{"access_mode": ["activate_file_or_record", "deactivate_file_or_record"]}, {"control_reference_template": "ADM1"}], [{"command_header": {"INS": 212}}, {"control_reference_template": "ADM1"}]]
===============================
-00 READ RECORD MF/ADF.USIM/EF.MBI 01 9000 {'mbi_voicemail': 255, 'mbi_fax': 255, 'mbi_email': 255, 'mbi_other': 255, 'mbi_videocall': None}
+00 READ RECORD MF/ADF.USIM/EF.MBI 01 9000 {"mbi_voicemail": 255, "mbi_fax": 255, "mbi_email": 255, "mbi_other": 255, "mbi_videocall": null}
===============================
-00 READ RECORD MF/DF.TELECOM 01 9000 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+00 READ RECORD MF/DF.TELECOM 01 9000 "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
===============================
-01 READ BINARY MF/ADF.ISIM/EF.IMPI - 9000 {'nai': ''}
+01 READ BINARY MF/ADF.ISIM/EF.IMPI - 9000 {"nai": ""}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 01 9000 {'impu': ''}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 01 9000 {"impu": ""}
===============================
-01 READ BINARY MF/ADF.ISIM/EF.DOMAIN - 9000 {'domain': ''}
+01 READ BINARY MF/ADF.ISIM/EF.DOMAIN - 9000 {"domain": ""}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 01 9000 {'pcscf_address': None}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 01 9000 {"pcscf_address": null}
===============================
-01 READ BINARY MF/ADF.ISIM/EF.IST - 9000 {1: {'activated': True, 'description': 'P-CSCF address'}, 2: {'activated': False, 'description': 'Generic Bootstrapping Architecture (GBA)'}, 3: {'activated': False, 'description': 'HTTP Digest'}, 4: {'activated': True, 'description': 'GBA-based Local Key Establishment Mechanism'}, 5: {'activated': True, 'description': 'Support of P-CSCF discovery for IMS Local Break Out'}, 6: {'activated': False, 'description': 'Short Message Storage (SMS)'}, 7: {'activated': False, 'description': 'Short Message Status Reports (SMSR)'}, 8: {'activated': False, 'description': 'Support for SM-over-IP including data download via SMS-PP as defined in TS 31.111 [31]'}, 9: {'activated': False, 'description': 'Communication Control for IMS by ISIM'}, 10: {'activated': True, 'description': 'Support of UICC access to IMS'}, 11: {'activated': False, 'description': 'URI support by UICC'}, 12: {'activated': False, 'description': 'Media Type support'}, 13: {'activated': False, 'description': 'IMS call disconnection cause'}, 14: {'activated': False, 'description': 'URI support for MO SHORT MESSAGE CONTROL'}, 15: {'activated': False, 'description': 'MCPTT'}, 16: {'activated': False, 'description': 'URI support for SMS-PP DOWNLOAD as defined in 3GPP TS 31.111 [31]'}, 17: {'activated': False, 'description': 'From Preferred'}, 18: {'activated': False, 'description': 'IMS configuration data'}, 19: {'activated': False, 'description': 'XCAP Configuration Data'}, 20: {'activated': False, 'description': 'WebRTC URI'}, 21: {'activated': False, 'description': 'MuD and MiD configuration data'}, 22: {'activated': False, 'description': 'IMS Data Channel indication'}, 23: {'activated': False}, 24: {'activated': False}}
+01 READ BINARY MF/ADF.ISIM/EF.IST - 9000 {"1": {"activated": true, "description": "P-CSCF address"}, "2": {"activated": false, "description": "Generic Bootstrapping Architecture (GBA)"}, "3": {"activated": false, "description": "HTTP Digest"}, "4": {"activated": true, "description": "GBA-based Local Key Establishment Mechanism"}, "5": {"activated": true, "description": "Support of P-CSCF discovery for IMS Local Break Out"}, "6": {"activated": false, "description": "Short Message Storage (SMS)"}, "7": {"activated": false, "description": "Short Message Status Reports (SMSR)"}, "8": {"activated": false, "description": "Support for SM-over-IP including data download via SMS-PP as defined in TS 31.111 [31]"}, "9": {"activated": false, "description": "Communication Control for IMS by ISIM"}, "10": {"activated": true, "description": "Support of UICC access to IMS"}, "11": {"activated": false, "description": "URI support by UICC"}, "12": {"activated": false, "description": "Media Type support"}, "13": {"activated": false, "description": "IMS call disconnection cause"}, "14": {"activated": false, "description": "URI support for MO SHORT MESSAGE CONTROL"}, "15": {"activated": false, "description": "MCPTT"}, "16": {"activated": false, "description": "URI support for SMS-PP DOWNLOAD as defined in 3GPP TS 31.111 [31]"}, "17": {"activated": false, "description": "From Preferred"}, "18": {"activated": false, "description": "IMS configuration data"}, "19": {"activated": false, "description": "XCAP Configuration Data"}, "20": {"activated": false, "description": "WebRTC URI"}, "21": {"activated": false, "description": "MuD and MiD configuration data"}, "22": {"activated": false, "description": "IMS Data Channel indication"}, "23": {"activated": false}, "24": {"activated": false}}
===============================
-01 READ BINARY MF/ADF.ISIM/EF.GBABP - 9000 None
+01 READ BINARY MF/ADF.ISIM/EF.GBABP - 9000 null
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 02 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 02 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 02 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 02 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 READ RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {'msisdn': None}
+00 READ RECORD MF/ADF.USIM/EF.MSISDN 01 9000 {"msisdn": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 03 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 03 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 03 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 03 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
00 UPDATE BINARY MF/ADF.USIM/EF.CBMI - 9000 [[65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535], [65535]]
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 04 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 04 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 04 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 04 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
-00 UPDATE BINARY MF/ADF.USIM/EF.CBMIR - 9000 [[{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}], [{'lower': 65535, 'upper': 65535}]]
+00 UPDATE BINARY MF/ADF.USIM/EF.CBMIR - 9000 [[{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}], [{"lower": 65535, "upper": 65535}]]
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 05 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 05 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 05 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 05 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 06 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 06 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 06 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 06 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 07 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 07 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 07 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 07 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.IMPU 08 9000 {'impu': None}
+01 READ RECORD MF/ADF.ISIM/EF.IMPU 08 9000 {"impu": null}
===============================
-01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 08 9000 {'pcscf_address': {'type_of_address': 255, 'address': None}}
+01 READ RECORD MF/ADF.ISIM/EF.P-CSCF 08 9000 {"pcscf_address": {"type_of_address": 255, "address": null}}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'open_channel', 'created_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "open_channel", "created_channel": 2}
===============================
-00 MANAGE CHANNEL 02 9000 {'mode': 'close_channel', 'closed_channel': 2}
+00 MANAGE CHANNEL 02 9000 {"mode": "close_channel", "closed_channel": 2}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
CardReset(3b9f96801f878031e073fe211b674a4c753034054ba9)
===============================
-00 READ BINARY MF/EF.ICCID - 9000 {'iccid': '8988211000000465008'}
+00 READ BINARY MF/EF.ICCID - 9000 {"iccid": "8988211000000465008"}
===============================
-00 TERMINAL PROFILE - 9000 {'p1': 0, 'p2': 0, 'cmd': 'ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008'}
+00 TERMINAL PROFILE - 9000 {"p1": 0, "p2": 0, "cmd": "ffffffff7f9d00dfbf00001fe2000000c36b000700004000500000000008"}
===============================
-00 MANAGE CHANNEL 01 9000 {'mode': 'open_channel', 'created_channel': 1}
+00 MANAGE CHANNEL 01 9000 {"mode": "open_channel", "created_channel": 1}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
-00 GET STATUS - 9000 {'p1': 0, 'p2': 12}
+00 GET STATUS - 9000 {"p1": 0, "p2": 12}
===============================
682 APDUs parsed, stop iteration.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37534?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I3135f2f52b8d61684a71b836915b43da5c48422b
Gerrit-Change-Number: 37534
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[S] Change in osmo-hnbgw[master]: kpi_ranap: Avoid null pointer de-ref during HNB shutdown
by pespin 19 Jul '24
by pespin 19 Jul '24
19 Jul '24
Attention is currently required from: iedemam, laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/37530?usp=email )
Change subject: kpi_ranap: Avoid null pointer de-ref during HNB shutdown
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/37530?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I9a304b9e0cbc18dbf7b699f4aae6b91ca0c16173
Gerrit-Change-Number: 37530
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: iedemam <michael(a)kapsulate.com>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: iedemam <michael(a)kapsulate.com>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Fri, 19 Jul 2024 13:33:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
1
0
[L] Change in pysim[master]: move parts of pySim.ts_31_103 to pySim.ts_31_103_shared
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/37524?usp=email )
Change subject: move parts of pySim.ts_31_103 to pySim.ts_31_103_shared
......................................................................
move parts of pySim.ts_31_103 to pySim.ts_31_103_shared
This is requird to make some definitions available to USIM / ts_31_102
without introducing circular dependencies.
Change-Id: I32e29f400d2da047e821bf732316b21805b5a1e2
---
M pySim/ts_31_103.py
A pySim/ts_31_103_shared.py
2 files changed, 151 insertions(+), 113 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/pySim/ts_31_103.py b/pySim/ts_31_103.py
index 2a71449..0de0d62 100644
--- a/pySim/ts_31_103.py
+++ b/pySim/ts_31_103.py
@@ -29,6 +29,7 @@
from pySim.ts_51_011 import EF_AD, EF_SMS, EF_SMSS, EF_SMSR, EF_SMSP
from pySim.ts_31_102 import ADF_USIM, EF_FromPreferred
from pySim.ts_31_102_telecom import EF_UServiceTable
+from pySim.ts_31_103_shared import *
import pySim.ts_102_221
from pySim.ts_102_221 import EF_ARR
from pySim.construct import *
@@ -190,119 +191,6 @@
super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
self._tlv = EF_NAFKCA.NafKeyCentreAddress
-# TS 31.103 Section 4.2.16
-class EF_UICCIARI(LinFixedEF):
- class iari(BER_TLV_IE, tag=0x80):
- _construct = Utf8Adapter(GreedyBytes)
-
- def __init__(self, fid='6fe7', sfid=None, name='EF.UICCIARI', desc='UICC IARI', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._tlv = EF_UICCIARI.iari
-
-# TS 31.103 Section 4.2.18
-class EF_IMSConfigData(BerTlvEF):
- class ImsConfigDataEncoding(BER_TLV_IE, tag=0x80):
- _construct = HexAdapter(Bytes(1))
- class ImsConfigData(BER_TLV_IE, tag=0x81):
- _construct = GreedyString
- # pylint: disable=undefined-variable
- class ImsConfigDataCollection(TLV_IE_Collection, nested=[ImsConfigDataEncoding, ImsConfigData]):
- pass
- def __init__(self, fid='6ff8', sfid=None, name='EF.IMSConfigData', desc='IMS Configuration Data', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._tlv = EF_IMSConfigData.ImsConfigDataCollection
-
-# TS 31.103 Section 4.2.19
-class EF_XCAPConfigData(BerTlvEF):
- class Access(BER_TLV_IE, tag=0x81):
- pass
- class ApplicationName(BER_TLV_IE, tag=0x82):
- pass
- class ProviderID(BER_TLV_IE, tag=0x83):
- pass
- class URI(BER_TLV_IE, tag=0x84):
- pass
- class XcapAuthenticationUserName(BER_TLV_IE, tag=0x85):
- pass
- class XcapAuthenticationPassword(BER_TLV_IE, tag=0x86):
- pass
- class XcapAuthenticationType(BER_TLV_IE, tag=0x87):
- pass
- class AddressType(BER_TLV_IE, tag=0x88):
- pass
- class Address(BER_TLV_IE, tag=0x89):
- pass
- class PDPAuthenticationType(BER_TLV_IE, tag=0x8a):
- pass
- class PDPAuthenticationName(BER_TLV_IE, tag=0x8b):
- pass
- class PDPAuthenticationSecret(BER_TLV_IE, tag=0x8c):
- pass
-
- class AccessForXCAP(BER_TLV_IE, tag=0x81):
- pass
- class NumberOfXcapConnParPolicy(BER_TLV_IE, tag=0x82):
- _construct = Int8ub
- # pylint: disable=undefined-variable
- class XcapConnParamsPolicyPart(BER_TLV_IE, tag=0xa1, nested=[Access, ApplicationName, ProviderID, URI,
- XcapAuthenticationUserName, XcapAuthenticationPassword,
- XcapAuthenticationType, AddressType, Address, PDPAuthenticationType,
- PDPAuthenticationName, PDPAuthenticationSecret]):
- pass
- class XcapConnParamsPolicy(BER_TLV_IE, tag=0xa0, nested=[AccessForXCAP, NumberOfXcapConnParPolicy, XcapConnParamsPolicyPart]):
- pass
- class XcapConnParamsPolicyDO(BER_TLV_IE, tag=0x80, nested=[XcapConnParamsPolicy]):
- pass
- def __init__(self, fid='6ffc', sfid=None, name='EF.XCAPConfigData', desc='XCAP Configuration Data', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._tlv = EF_XCAPConfigData.XcapConnParamsPolicy
-
-# TS 31.103 Section 4.2.20
-class EF_WebRTCURI(TransparentEF):
- class uri(BER_TLV_IE, tag=0x80):
- _construct = Utf8Adapter(GreedyBytes)
-
- def __init__(self, fid='6ffa', sfid=None, name='EF.WebRTCURI', desc='WebRTC URI', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._tlv = EF_WebRTCURI.uri
-
-# TS 31.103 Section 4.2.21
-class EF_MuDMiDConfigData(BerTlvEF):
- class MudMidConfigDataEncoding(BER_TLV_IE, tag=0x80):
- _construct = HexAdapter(Bytes(1))
- class MudMidConfigData(BER_TLV_IE, tag=0x81):
- _construct = GreedyString
- # pylint: disable=undefined-variable
- class MudMidConfigDataCollection(TLV_IE_Collection, nested=[MudMidConfigDataEncoding, MudMidConfigData]):
- pass
- def __init__(self, fid='6ffe', sfid=None, name='EF.MuDMiDConfigData',
- desc='MuD and MiD Configuration Data', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._tlv = EF_MuDMiDConfigData.MudMidConfigDataCollection
-
-# TS 31.103 Section 4.2.22
-class EF_AC_GBAUAPI(LinFixedEF):
- """The use of this EF is eescribed in 3GPP TS 31.130"""
- class AppletNafAccessControl(BER_TLV_IE, tag=0x80):
- # the use of Int8ub as length field in Prefixed is strictly speaking incorrect, as it is a BER-TLV
- # length field whihc will consume two bytes from length > 127 bytes. However, AIDs and NAF IDs can
- # safely be assumed shorter than that
- _construct = Struct('aid'/Prefixed(Int8ub, GreedyBytes),
- 'naf_id'/Prefixed(Int8ub, GreedyBytes))
- def __init__(self, fid='6f0a', sfid=None, name='EF.GBAUAPI',
- desc='Access Control to GBA_U_API', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._tlv = EF_AC_GBAUAPI.AppletNafAccessControl
-
-# TS 31.103 Section 4.2.23
-class EF_IMSDCI(TransparentEF):
- """See Management object as defined in 3GPP TS 24.275."""
- def __init__(self, fid='6f0b', sfid=None, name='EF.IMSDCI', desc='IMS Data Channel Indication', **kwargs):
- super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
- self._construct = Enum(Byte, ims_dc_not_allowed=0x00,
- ims_dc_allowed_after_ims_session=0x01,
- ims_dc_allowed_simultaneous_ims_session=0x02)
-
class ADF_ISIM(CardADF):
def __init__(self, aid='a0000000871004', has_fs=True, name='ADF.ISIM', fid=None, sfid=None,
diff --git a/pySim/ts_31_103_shared.py b/pySim/ts_31_103_shared.py
new file mode 100644
index 0000000..98b5954
--- /dev/null
+++ b/pySim/ts_31_103_shared.py
@@ -0,0 +1,138 @@
+"""
+Definitions from 3GPP TS 31.103 V18.1.0 which are shared by both USIM (31.102) and ISIM (31.103) and
+hence need to be in a separate python module to avoid circular dependencies.
+"""
+
+# Copyright (C) 2021-2024 Harald Welte <laforge(a)osmocom.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+from construct import Struct, Switch, Bytes, GreedyString, GreedyBytes, Int8ub, Prefixed, Enum, Byte
+from pySim.construct import HexAdapter, Utf8Adapter
+from pySim.filesystem import *
+from pySim.tlv import BER_TLV_IE, TLV_IE_Collection
+
+# TS 31.103 Section 4.2.16
+class EF_UICCIARI(LinFixedEF):
+ class iari(BER_TLV_IE, tag=0x80):
+ _construct = Utf8Adapter(GreedyBytes)
+
+ def __init__(self, fid='6fe7', sfid=None, name='EF.UICCIARI', desc='UICC IARI', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_UICCIARI.iari
+
+# TS 31.103 Section 4.2.18
+class EF_IMSConfigData(BerTlvEF):
+ class ImsConfigDataEncoding(BER_TLV_IE, tag=0x80):
+ _construct = HexAdapter(Bytes(1))
+ class ImsConfigData(BER_TLV_IE, tag=0x81):
+ _construct = GreedyString
+ # pylint: disable=undefined-variable
+ class ImsConfigDataCollection(TLV_IE_Collection, nested=[ImsConfigDataEncoding, ImsConfigData]):
+ pass
+ def __init__(self, fid='6ff8', sfid=None, name='EF.IMSConfigData', desc='IMS Configuration Data', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_IMSConfigData.ImsConfigDataCollection
+
+# TS 31.103 Section 4.2.19
+class EF_XCAPConfigData(BerTlvEF):
+ class Access(BER_TLV_IE, tag=0x81):
+ pass
+ class ApplicationName(BER_TLV_IE, tag=0x82):
+ pass
+ class ProviderID(BER_TLV_IE, tag=0x83):
+ pass
+ class URI(BER_TLV_IE, tag=0x84):
+ pass
+ class XcapAuthenticationUserName(BER_TLV_IE, tag=0x85):
+ pass
+ class XcapAuthenticationPassword(BER_TLV_IE, tag=0x86):
+ pass
+ class XcapAuthenticationType(BER_TLV_IE, tag=0x87):
+ pass
+ class AddressType(BER_TLV_IE, tag=0x88):
+ pass
+ class Address(BER_TLV_IE, tag=0x89):
+ pass
+ class PDPAuthenticationType(BER_TLV_IE, tag=0x8a):
+ pass
+ class PDPAuthenticationName(BER_TLV_IE, tag=0x8b):
+ pass
+ class PDPAuthenticationSecret(BER_TLV_IE, tag=0x8c):
+ pass
+
+ class AccessForXCAP(BER_TLV_IE, tag=0x81):
+ pass
+ class NumberOfXcapConnParPolicy(BER_TLV_IE, tag=0x82):
+ _construct = Int8ub
+ # pylint: disable=undefined-variable
+ class XcapConnParamsPolicyPart(BER_TLV_IE, tag=0xa1, nested=[Access, ApplicationName, ProviderID, URI,
+ XcapAuthenticationUserName, XcapAuthenticationPassword,
+ XcapAuthenticationType, AddressType, Address, PDPAuthenticationType,
+ PDPAuthenticationName, PDPAuthenticationSecret]):
+ pass
+ class XcapConnParamsPolicy(BER_TLV_IE, tag=0xa0, nested=[AccessForXCAP, NumberOfXcapConnParPolicy, XcapConnParamsPolicyPart]):
+ pass
+ class XcapConnParamsPolicyDO(BER_TLV_IE, tag=0x80, nested=[XcapConnParamsPolicy]):
+ pass
+ def __init__(self, fid='6ffc', sfid=None, name='EF.XCAPConfigData', desc='XCAP Configuration Data', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_XCAPConfigData.XcapConnParamsPolicy
+
+# TS 31.103 Section 4.2.20
+class EF_WebRTCURI(TransparentEF):
+ class uri(BER_TLV_IE, tag=0x80):
+ _construct = Utf8Adapter(GreedyBytes)
+
+ def __init__(self, fid='6ffa', sfid=None, name='EF.WebRTCURI', desc='WebRTC URI', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_WebRTCURI.uri
+
+# TS 31.103 Section 4.2.21
+class EF_MuDMiDConfigData(BerTlvEF):
+ class MudMidConfigDataEncoding(BER_TLV_IE, tag=0x80):
+ _construct = HexAdapter(Bytes(1))
+ class MudMidConfigData(BER_TLV_IE, tag=0x81):
+ _construct = GreedyString
+ # pylint: disable=undefined-variable
+ class MudMidConfigDataCollection(TLV_IE_Collection, nested=[MudMidConfigDataEncoding, MudMidConfigData]):
+ pass
+ def __init__(self, fid='6ffe', sfid=None, name='EF.MuDMiDConfigData',
+ desc='MuD and MiD Configuration Data', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_MuDMiDConfigData.MudMidConfigDataCollection
+
+# TS 31.103 Section 4.2.22
+class EF_AC_GBAUAPI(LinFixedEF):
+ """The use of this EF is eescribed in 3GPP TS 31.130"""
+ class AppletNafAccessControl(BER_TLV_IE, tag=0x80):
+ # the use of Int8ub as length field in Prefixed is strictly speaking incorrect, as it is a BER-TLV
+ # length field whihc will consume two bytes from length > 127 bytes. However, AIDs and NAF IDs can
+ # safely be assumed shorter than that
+ _construct = Struct('aid'/Prefixed(Int8ub, GreedyBytes),
+ 'naf_id'/Prefixed(Int8ub, GreedyBytes))
+ def __init__(self, fid='6f0a', sfid=None, name='EF.GBAUAPI',
+ desc='Access Control to GBA_U_API', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_AC_GBAUAPI.AppletNafAccessControl
+
+# TS 31.103 Section 4.2.23
+class EF_IMSDCI(TransparentEF):
+ """See Management object as defined in 3GPP TS 24.275."""
+ def __init__(self, fid='6f0b', sfid=None, name='EF.IMSDCI', desc='IMS Data Channel Indication', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._construct = Enum(Byte, ims_dc_not_allowed=0x00,
+ ims_dc_allowed_after_ims_session=0x01,
+ ims_dc_allowed_simultaneous_ims_session=0x02)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37524?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I32e29f400d2da047e821bf732316b21805b5a1e2
Gerrit-Change-Number: 37524
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
1
0
[S] Change in pysim[master]: [cosmetic] ts_31_102: Note in comment which release introdcued recent...
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/37525?usp=email )
(
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: [cosmetic] ts_31_102: Note in comment which release introdcued recent files
......................................................................
[cosmetic] ts_31_102: Note in comment which release introdcued recent files
Change-Id: I0c1250b532992ae954b1d8ab20993cb9fa947695
---
M pySim/ts_31_102.py
1 file changed, 20 insertions(+), 11 deletions(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py
index 2536603..f160d8e 100644
--- a/pySim/ts_31_102.py
+++ b/pySim/ts_31_102.py
@@ -850,7 +850,7 @@
self._construct = Struct('status'/PaddedString(2, 'ascii'),
'link_to_ef_ipd'/Int8ub, 'rfu'/Byte)
-# TS 31.102 Section 4.2.103
+# TS 31.102 Section 4.2.103 (Rel 13)
class EF_ePDGId(TransparentEF):
_test_de_encode = [
( '801100657064672e6f736d6f636f6d2e6f7267', {'e_pdg_id': {"type_of_ePDG_address": "FQDN", "ePDG_address" : "epdg.osmocom.org" } } ),
@@ -868,7 +868,7 @@
super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
self._tlv = EF_ePDGId.ePDGId
-# TS 31.102 Section 4.2.104
+# TS 31.102 Section 4.2.104 (Rel 13)
class EF_ePDGSelection(TransparentEF):
_test_de_encode = [
( '800600f110000100', {'e_pdg_selection': [{'plmn': '001-01', 'epdg_priority': 1, 'epdg_fqdn_format': 'operator_identified' }] }),
@@ -883,14 +883,14 @@
super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
self._tlv = EF_ePDGSelection.ePDGSelection
-# TS 31.102 Section 4.2.106
+# TS 31.102 Section 4.2.106 (Rel 14)
class EF_FromPreferred(TransparentEF):
def __init__(self, fid='6ff7', sfid=None, name='EF.FromPreferred', size=(1, 1),
desc='From Preferred', **kwargs):
super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size, **kwargs)
self._construct = BitStruct('rfu'/BitsRFU(7), 'from_preferred'/Flag)
-# TS 31.102 Section 4.2.114
+# TS 31.102 Section 4.2.114 (Rel 18)
class EF_eAKA(TransparentEF):
def __init__(self, fid='6f01', sfid=None, name='EF.eAKA', size=(1, 1),
desc='enhanced AKA support', **kwargs):
@@ -992,10 +992,10 @@
######################################################################
-# DF.5GS
+# DF.5GS (Rel 15)
######################################################################
-# TS 31.102 Section 4.4.11.2
+# TS 31.102 Section 4.4.11.2 (Rel 15)
class EF_5GS3GPPLOCI(TransparentEF):
def __init__(self, fid='4f01', sfid=0x01, name='EF.5GS3GPPLOCI', size=(20, 20),
desc='5S 3GP location information', **kwargs):
@@ -1006,7 +1006,7 @@
'last_visited_registered_tai_in_5gs'/HexAdapter(Bytes(6)),
'5gs_update_status'/upd_status_constr)
-# TS 31.102 Section 4.4.11.7
+# TS 31.102 Section 4.4.11.7 (Rel 15)
class EF_UAC_AIC(TransparentEF):
_test_de_encode = [
( '03', { "uac_access_id_config": { "multimedia_priority_service": True,
@@ -1019,7 +1019,7 @@
mission_critical_service=2)
self._construct = Struct('uac_access_id_config'/cfg_constr)
-# TS 31.102 Section 4.4.11.9
+# TS 31.102 Section 4.4.11.9 (Rel 15)
class EF_OPL5G(LinFixedEF):
def __init__(self, fid='4f08', sfid=0x08, name='EF.OPL5G', desc='5GS Operator PLMN List', **kwargs):
super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, rec_len=(10, None), **kwargs)
@@ -1027,7 +1027,7 @@
'tac_max'/HexAdapter(Bytes(3)))
self._construct = Struct('tai'/Tai, 'pnn_record_id'/Int8ub)
-# TS 31.102 Section 4.4.11.10
+# TS 31.102 Section 4.4.11.10 (Rel 15)
class EF_SUPI_NAI(TransparentEF):
class NetworkSpecificIdentifier(TLV_IE, tag=0x80):
# RFC 7542 encoded as UTF-8 string
@@ -1049,7 +1049,7 @@
super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
self._tlv = EF_SUPI_NAI.NAI_TLV_Collection
-# TS 31.102 Section 4.4.11.11
+# TS 31.102 Section 4.4.11.11 (Rel 15)
class EF_Routing_Indicator(TransparentEF):
def __init__(self, fid='4f0a', sfid=0x0a, name='EF.Routing_Indicator', desc='Routing Indicator', **kwargs):
super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
@@ -1061,7 +1061,7 @@
self._construct = Struct('routing_indicator'/Rpad(BcdAdapter(Bytes(2)), 'f', 2),
'rfu'/HexAdapter(Bytes(2)))
-# TS 31.102 Section 4.4.11.13
+# TS 31.102 Section 4.4.11.13 (Rel 16)
class EF_TN3GPPSNN(TransparentEF):
class ServingNetworkName(BER_TLV_IE, tag=0x80):
_construct = Utf8Adapter(GreedyBytes)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37525?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I0c1250b532992ae954b1d8ab20993cb9fa947695
Gerrit-Change-Number: 37525
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
1
0
[M] Change in pysim[master]: ts_31_102: Make use of ts_31_103_shared and add Rel 18 files
by laforge 19 Jul '24
by laforge 19 Jul '24
19 Jul '24
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/37526?usp=email )
Change subject: ts_31_102: Make use of ts_31_103_shared and add Rel 18 files
......................................................................
ts_31_102: Make use of ts_31_103_shared and add Rel 18 files
Change-Id: I68ca15084f9654468bd37526c02a66322085b25b
---
M pySim/ts_31_102.py
1 file changed, 134 insertions(+), 1 deletion(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py
index f160d8e..497044f 100644
--- a/pySim/ts_31_102.py
+++ b/pySim/ts_31_102.py
@@ -30,7 +30,7 @@
from construct import Optional as COptional
from construct import Int32ub, Nibble, GreedyRange, Struct, FlagsEnum, Switch, this, Int16ub, Padding
-from construct import Bytewise, Int24ub, PaddedString
+from construct import Bytewise, Int24ub, PaddedString, PrefixedArray, If
import pySim.ts_102_221
from pySim.ts_51_011 import EF_ACMmax, EF_AAeM, EF_eMLPP, EF_CMI, EF_PNN
@@ -43,6 +43,8 @@
from pySim.tlv import *
from pySim.filesystem import *
from pySim.ts_31_102_telecom import DF_PHONEBOOK, EF_UServiceTable
+from pySim.ts_31_103_shared import EF_IMSConfigData, EF_XCAPConfigData, EF_MuDMiDConfigData
+from pySim.ts_31_103_shared import EF_AC_GBAUAPI, EF_IMSDCI
from pySim.construct import *
from pySim.utils import is_hexstr
from pySim.cat import SMS_TPDU, DeviceIdentities, SMSPPDownload
@@ -897,6 +899,14 @@
super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size, **kwargs)
self._construct = BitStruct('rfu'/BitsRFU(7), 'enhanced_sqn_calculation_supported'/Flag)
+# TS 31.102 Section 4.2.115 (Rel 18)
+class EF_OCST(TransparentEF):
+ def __init__(self, fid='6f02', sfid=None, name='EF.OCST', size=(2, 100),
+ desc='Operator controlled signal threshold per access technology', **kwargs):
+ super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size, **kwargs)
+ self._construct = Struct('sense'/FlagsEnum(Byte, sense_enabled=1),
+ 'ocst_tlv'/GreedyBytes)
+
######################################################################
# DF.GSM-ACCESS
@@ -1278,6 +1288,56 @@
# contains TLV structure despite being TransparentEF, not BER-TLV ?!?
self._tlv = EF_5G_PROSE_UIR.ProSeConfigDataForUeToNetworkRelayUE
+# TS 31.102 Section 4.4.13.8 (Rel 18)
+class EF_5G_PROSE_U2URU(TransparentEF):
+ class ValidityTimer(BER_TLV_IE, tag=0x85):
+ _construct = Bytes(5)
+ class ServedByNGRAN(BER_TLV_IE, tag=0x80):
+ _construct = GreedyBytes
+ class NotServedByNGRAN(BER_TLV_IE, tag=0x81):
+ _construct = GreedyBytes
+ class DefaultDstL2IdsForRxDisc(BER_TLV_IE, tag=0x99):
+ _construct = GreedyBytes
+ class UserInforIdForDiscovery(BER_TLV_IE, tag=0x8e):
+ _construct = GreedyBytes
+ class RSCInfoList(BER_TLV_IE, tag=0x8b):
+ _construct = GreedyBytes
+ class DefaultDstL2IdsForTxRxDirect(BER_TLV_IE, tag=0x9a):
+ _construct = GreedyBytes
+ class ProSeConfigDataForU2URelayUE(BER_TLV_IE, tag=0xa0,
+ nested=[ValidityTimer, ServedByNGRAN, NotServedByNGRAN,
+ DefaultDstL2IdsForRxDisc, UserInforIdForDiscovery,
+ RSCInfoList, DefaultDstL2IdsForTxRxDirect]):
+ pass
+ def __init__(self, fid='4f07', sfid=0x07, name='EF.5G_PROSE_U2URU',
+ desc='5G ProSe configuration data for UE-to-UE relay UE', **kwargs):
+ super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_5G_PROSE_U2URU.ProSeConfigDataForU2URelayUE
+
+# TS 31.102 Section 4.4.13.9 (Rel 18)
+class EF_5G_PROSE_EU(TransparentEF):
+ class PKMFAddressInformation(BER_TLV_IE, tag=0x93):
+ Ipv4AddrList = PrefixedArray(Int8ub, Int32ub)
+ Ipv6AddrList = PrefixedArray(Int8ub, Bytes(16))
+ _construct = Struct('flags'/FlagsEnum(Byte, ipv4=1, ipv6=2, fqdn=4),
+ 'ipv4_addr_list'/If(this.flags.ipv4, Ipv4AddrList),
+ 'ipv6_addr_list'/If(this.flags.ipv6, Ipv6AddrList),
+ 'fqdn'/Prefixed(Int8ub, Utf8Adapter(GreedyBytes)))
+ class ProSeConfigDataForEndUE(BER_TLV_IE, tag=0xa0,
+ nested=[EF_5G_PROSE_U2URU.ValidityTimer,
+ EF_5G_PROSE_U2URU.ServedByNGRAN,
+ EF_5G_PROSE_U2URU.NotServedByNGRAN,
+ EF_5G_PROSE_U2URU.DefaultDstL2IdsForRxDisc,
+ EF_5G_PROSE_U2URU.UserInforIdForDiscovery,
+ EF_5G_PROSE_U2URU.RSCInfoList,
+ EF_5G_PROSE_U2URU.DefaultDstL2IdsForTxRxDirect,
+ PKMFAddressInformation]):
+ pass
+ def __init__(self, fid='4f08', sfid=0x08, name='EF.5G_PROSE_EU',
+ desc='5G ProSe configuration data for end UE', **kwargs):
+ super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_5G_PROSE_EU.ProSeConfigDataForEndUE
+
# TS 31.102 Section 4.4.13 (Rel 17)
class DF_5G_ProSe(CardDF):
def __init__(self, fid='5ff0', name='DF.5G_ProSe', desc='Files for 5G ProSe purpose', **kwargs):
@@ -1289,9 +1349,62 @@
EF_5G_PROSE_U2NRU(service=3),
EF_5G_PROSE_RU(service=4),
EF_5G_PROSE_UIR(service=5),
+ # Rel 18 additions
+ EF_5G_PROSE_U2URU(service=6),
+ EF_5G_PROSE_EU(service=7),
]
self.add_files(files)
+# TS 31.102 Section 4.4.14.2 (Rel 18)
+class EF_5MBSUECONFIG(TransparentEF):
+
+ class Plmn(BER_TLV_IE, tag=0x80):
+ _construct = Struct('plmn'/PlmnAdapter(Bytes(3)),
+ 'nid'/COptional(Bytes(6)))
+ class Tmgi(BER_TLV_IE, tag=0x81):
+ TmgiEntry = Struct('tmgi'/Bytes(6),
+ 'usd_fid'/HexAdapter(Bytes(2)),
+ 'service_type'/FlagsEnum(Byte, mbs_service_announcement=1, mbs_user_service=2))
+ _construct = GreedyRange(TmgiEntry)
+ class NrArfcnList(BER_TLV_IE, tag=0x82):
+ _construct = GreedyRange(Bytes(4))
+ class DNN(BER_TLV_IE, tag=0x83):
+ _construct = GreedyBytes
+ class SNSSAI(BER_TLV_IE, tag=0x84):
+ _construct = GreedyBytes
+ class PduInfoList(BER_TLV_IE, tag=0xa1, nested=[DNN, SNSSAI]):
+ pass
+ class Plmn5mbsPreconfiguration(BER_TLV_IE, tag=0xa0,
+ nested=[Plmn, Tmgi, NrArfcnList, PduInfoList]):
+ pass
+ def __init__(self, fid='4f01', sfid=None, name='EF.5MBSUECONFIG',
+ desc='5MBS UE pre-configuration', **kwargs):
+ super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_5MBSUECONFIG.Plmn5mbsPreconfiguration
+
+# TS 31.102 Section 4.4.14.3 (Rel 18)
+class EF_5MBSUSD(TransparentEF):
+ """There can be any number of these files with undefined FID; the FIDs are contained
+ in EF.5BMSUECONFIG. FID range is 4f08...4fff"""
+ class USD(BER_TLV_IE, tag=0x80):
+ _construct = GreedyBytes
+ def __init__(self, fid, sfid=None, name='EF.5MBSUSD',
+ desc='5MBS User Service Description', **kwargs):
+ super().__init__(fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = USD
+
+
+# TS 31.102 Section 4.4.14 (Rel 18)
+class DF_5MBSUECONFIG(CardDF):
+ def __init__(self, fid='5ff1', name='DF.5MBSUECONFIG', desc='', **kwargs):
+ super().__init__(fid=fid, name=name, desc=desc, **kwargs)
+ files = [
+ EF_5MBSUECONFIG(),
+ # EF_5MBSUSD() wouild have to be dynamically registered based on EF_5MBSUECONFIG content
+ ]
+ self.add_files(files)
+
+
# TS 31.102 Section 4.4.11.18 (Rel 17)
class EF_5GSEDRX(TransparentEF):
def __init__(self, fid='4f10', sfid=0x10, name='EF.5GSEDRX',
@@ -1556,7 +1669,17 @@
EF_ePDGSelection('6ff6', None, 'EF.ePDGSelectionEm',
desc='ePDG Selection Information for Emergency Services', service=(110, 111)),
EF_FromPreferred(service=114),
+ EF_IMSConfigData(service=115),
+ # TODO: EF.TVCONFIG
+ # TODO: EF.3GPPPSDATAOFF
+ # TODO: EF.3GPPPSDATAOFFservicelist
+ EF_XCAPConfigData(service=120),
+ # TODO: EF.EARFCNList
+ EF_MuDMiDConfigData(service=134),
EF_eAKA(),
+ EF_OCST(service=148),
+ EF_AC_GBAUAPI(service=68),
+ EF_IMSDCI(service=150),
# FIXME: DF_SoLSA service=23
DF_PHONEBOOK(),
DF_GSM_ACCESS(),
@@ -1569,6 +1692,7 @@
DF_SNPN(service=[143,146]),
DF_5G_ProSe(service=139),
DF_SAIP(),
+ DF_5MBSUECONFIG(service=147),
]
if has_imsi:
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37526?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I68ca15084f9654468bd37526c02a66322085b25b
Gerrit-Change-Number: 37526
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
1
0