Change in pysim[master]: pySim-read.py: Use the method declared in cards.py to read IMSI

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

herlesupreeth gerrit-no-reply at lists.osmocom.org
Wed Mar 18 11:05:09 UTC 2020


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 <herlesupreeth at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200318/029259d3/attachment.htm>


More information about the gerrit-log mailing list