Change in pysim[master]: sysmiISIM-SJA2: add support for new card model / os version

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/.

dexter gerrit-no-reply at lists.osmocom.org
Wed Mar 11 11:36:06 UTC 2020


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


Change subject: sysmiISIM-SJA2: add support for new card model / os version
......................................................................

sysmiISIM-SJA2: add support for new card model / os version

There is a new card version with a different ATR, lets add the ATR for
this card to support it as well.

Change-Id: I222faea89c1df58c36a19b28449dffb84a956e74
Related: SYS#4817
---
M pySim/cards.py
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/57/17457/1

diff --git a/pySim/cards.py b/pySim/cards.py
index ec2724c..0f84834 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -984,6 +984,11 @@
 			atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2"
 			if scc.get_atr() == toBytes(atr):
 				return kls(scc)
+
+			# Try card model #3
+			atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 52 75 31 04 51 D5"
+			if scc.get_atr() == toBytes(atr):
+				return kls(scc)
 		except:
 			return None
 		return None

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I222faea89c1df58c36a19b28449dffb84a956e74
Gerrit-Change-Number: 17457
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200311/33cd4cc8/attachment.htm>


More information about the gerrit-log mailing list