mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-23 22:08:34 +03:00
cards: all UICC should use sel_ctrl="0400" and SIM "0000"
Hence move this from the derived classes into the respective base classes SimCardBase and UiccCardBase Change-Id: Iad197c2b560c5ea05c54a122144361de5742aafd
This commit is contained in:
@@ -86,6 +86,7 @@ class SimCardBase(CardBase):
|
||||
def __init__(self, scc: LinkBase):
|
||||
super(SimCardBase, self).__init__(scc)
|
||||
self._scc.cla_byte = "A0"
|
||||
self._scc.sel_ctrl = "0000"
|
||||
|
||||
def probe(self) -> bool:
|
||||
df_gsm = DF_GSM()
|
||||
@@ -98,6 +99,7 @@ class UiccCardBase(SimCardBase):
|
||||
def __init__(self, scc: LinkBase):
|
||||
super(UiccCardBase, self).__init__(scc)
|
||||
self._scc.cla_byte = "00"
|
||||
self._scc.sel_ctrl = "0004" # request an FCP
|
||||
# See also: ETSI TS 102 221, Table 9.3
|
||||
self._adm_chv_num = 0xA0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user