aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-read.py
diff options
context:
space:
mode:
authorSupreeth Herle <herlesupreeth@gmail.com>2020-03-19 12:49:16 +0100
committerSupreeth Herle <herlesupreeth@gmail.com>2020-04-01 11:05:26 +0200
commit6d66af653fc355697c7a53f420ffaecdcc2ade9f (patch)
treed8902cf4445beec198bd643d6b231e559616a28d /pySim-read.py
parentd1fb6fc3595acdabd1620ebcafb96439061bebfd (diff)
Move parsing of MSISDN to generic Card class
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-xpySim-read.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pySim-read.py b/pySim-read.py
index 1e1d39a..c2e63a0 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -200,13 +200,11 @@ if __name__ == '__main__':
# EF.MSISDN
try:
- # print(scc.record_size(['3f00', '7f10', '6f40']))
- (res, sw) = scc.read_record(['3f00', '7f10', '6f40'], 1)
+ (res, sw) = card.read_msisdn()
if sw == '9000':
- res_dec = dec_msisdn(res)
- if res_dec is not None:
- # (npi, ton, msisdn) = res_dec
- print("MSISDN (NPI=%d ToN=%d): %s" % res_dec)
+ # (npi, ton, msisdn) = res
+ if res is not None:
+ print("MSISDN (NPI=%d ToN=%d): %s" % res)
else:
print("MSISDN: Not available")
else: