herlesupreeth has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/17522 )


Change subject: pySim-read.py: Use the method declared in cards.py to read IMSI
......................................................................

pySim-read.py: Use the method declared in cards.py to read IMSI

Change-Id: I2709b040d956a3a2b9210aa78c82a6ccf482f761
---
M pySim-read.py
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/22/17522/1

diff --git a/pySim-read.py b/pySim-read.py
index 5052f32..5899049 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -124,9 +124,9 @@
                print("ICCID: Can't read, response code = %s" % (sw,))

        # EF.IMSI
-       (res, sw) = scc.read_binary(['3f00', '7f20', '6f07'])
+       (res, sw) = card.read_imsi()
        if sw == '9000':
-               print("IMSI: %s" % (dec_imsi(res),))
+               print("IMSI: %s" % (res,))
        else:
                print("IMSI: Can't read, response code = %s" % (sw,))


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/17522
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I2709b040d956a3a2b9210aa78c82a6ccf482f761
Gerrit-Change-Number: 17522
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <[email protected]>
Gerrit-MessageType: newchange

Reply via email to