mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-18 19:38:34 +03:00
cards: autodetect sysmosim-gr1
The sysmosim-gr1 lacks the auto detection feature because no autodetect is yet programmed inside the related class. - add autodetect for sysmosim-gr1 Change-Id: Iec1f1ab6824ff2328baedd731b08df997df4da01 Related: OS#3405
This commit is contained in:
@@ -387,6 +387,15 @@ class SysmoSIMgr1(GrcardSim):
|
||||
"""
|
||||
name = 'sysmosim-gr1'
|
||||
|
||||
@classmethod
|
||||
def autodetect(kls, scc):
|
||||
try:
|
||||
# Look for ATR
|
||||
if scc.get_atr() == toBytes("3B 99 18 00 11 88 22 33 44 55 66 77 60"):
|
||||
return kls(scc)
|
||||
except:
|
||||
return None
|
||||
return None
|
||||
|
||||
class SysmoUSIMgr1(Card):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user