laforge has uploaded this change for review.

View Change

saip-tool: Also dump RFM information in "info" command

example output:

Number of RFM instances: 2
RFM instanceAID: d276000005aa060200000000b00000 (-> TAR: b00000)
MSL: 0x16
RFM instanceAID: d276000005aa060200000000b00001 (-> TAR: b00001)
MSL: 0x16
ADF AID: a0000000871002ff33ffff8901010100

Change-Id: I534267c7420fc5bd96eaded6078e986161729073
---
M contrib/saip-tool.py
1 file changed, 30 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/29/37429/1
diff --git a/contrib/saip-tool.py b/contrib/saip-tool.py
index 4a9bec9..d73cc90 100755
--- a/contrib/saip-tool.py
+++ b/contrib/saip-tool.py
@@ -191,6 +191,18 @@
for key in sd.keys:
print("\tKVN=0x%02x, KID=0x%02x, %s" % (key.key_version_number, key.key_identifier, key.key_components))

+ # RFM
+ print()
+ rfms = pes.pe_by_type.get('rfm', [])
+ print("Number of RFM instances: %u" % len(rfms))
+ for rfm in rfms:
+ inst_aid = rfm.decoded['instanceAID']
+ print("RFM instanceAID: %s (-> TAR: %s)" % (b2h(inst_aid), b2h(inst_aid[-3:])))
+ print("\tMSL: 0x%02x" % rfm.decoded['minimumSecurityLevel'][0])
+ adf = rfm.decoded.get('adfRFMAccess', None)
+ if adf:
+ print("\tADF AID: %s" % b2h(adf['adfAID']))
+
def do_extract_apps(pes:ProfileElementSequence, opts):
apps = pes.pe_by_type.get('application', [])
for app_pe in apps:

To view, visit change 37429. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I534267c7420fc5bd96eaded6078e986161729073
Gerrit-Change-Number: 37429
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-MessageType: newchange