aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-read.py
diff options
context:
space:
mode:
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-xpySim-read.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pySim-read.py b/pySim-read.py
index 44e7dae..55b43d7 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -118,6 +118,16 @@ if __name__ == '__main__':
except Exception as e:
print("GID1: Can't read file -- %s" % (str(e),))
+ # EF.GID2
+ try:
+ (res, sw) = scc.read_binary(EF['GID2'])
+ if sw == '9000':
+ print("GID2: %s" % (res,))
+ else:
+ print("GID2: Can't read, response code = %s" % (sw,))
+ except Exception as e:
+ print("GID2: Can't read file -- %s" % (str(e),))
+
# EF.SMSP
(res, sw) = scc.read_record(['3f00', '7f10', '6f42'], 1)
if sw == '9000':