<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/26203">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ts_51_011: add status word definition<br><br>There is no status word definition given in the SIM profile. Lets add<br>one to be complete<br><br>Change-Id: I01f2643a93e4a9b2ce2f95134aa5d773179d9b1c<br>---<br>M pySim/ts_51_011.py<br>1 file changed, 38 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py</span><br><span>index c146a79..73d569e 100644</span><br><span>--- a/pySim/ts_51_011.py</span><br><span>+++ b/pySim/ts_51_011.py</span><br><span>@@ -976,6 +976,43 @@</span><br><span> </span><br><span> class CardProfileSIM(CardProfile):</span><br><span>     def __init__(self):</span><br><span style="color: hsl(0, 100%, 40%);">-        super().__init__('SIM', desc='GSM SIM Card', cla="a0", sel_ctrl="0000", files_in_mf=[DF_TELECOM(), DF_GSM()])</span><br><span style="color: hsl(120, 100%, 40%);">+        sw = {</span><br><span style="color: hsl(120, 100%, 40%);">+          'Normal': {</span><br><span style="color: hsl(120, 100%, 40%);">+            '9000': 'Normal ending of the command',</span><br><span style="color: hsl(120, 100%, 40%);">+            '91xx': 'normal ending of the command, with extra information from the proactive SIM containing a command for the ME',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9exx': 'length XX of the response data given in case of a SIM data download error',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9fxx': 'length XX of the response data',</span><br><span style="color: hsl(120, 100%, 40%);">+            },</span><br><span style="color: hsl(120, 100%, 40%);">+          'Postponed processing': {</span><br><span style="color: hsl(120, 100%, 40%);">+            '9300': 'SIM Application Toolkit is busy. Command cannot be executed at present, further normal commands are allowed',</span><br><span style="color: hsl(120, 100%, 40%);">+            },</span><br><span style="color: hsl(120, 100%, 40%);">+          'Memory management': {</span><br><span style="color: hsl(120, 100%, 40%);">+            '920x': 'command successful but after using an internal update retry routine X times',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9240': 'memory problem',</span><br><span style="color: hsl(120, 100%, 40%);">+            },</span><br><span style="color: hsl(120, 100%, 40%);">+          'Referencing management': {</span><br><span style="color: hsl(120, 100%, 40%);">+            '9400': 'no EF selected',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9402': 'out of range (invalid address)',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9404': 'file ID not found or pattern not found',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9408': 'file is inconsistent with the command',</span><br><span style="color: hsl(120, 100%, 40%);">+            },</span><br><span style="color: hsl(120, 100%, 40%);">+          'Security management': {</span><br><span style="color: hsl(120, 100%, 40%);">+            '9802': 'no CHV initialized',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9804': 'access condition not fulfilled, unsuccessful CHV verification or authentication failed',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9808': 'in contradiction with CHV status',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9810': 'in contradiction with invalidation status',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9840': 'unsuccessful verification, CHV blocked, UNBLOCK CHV blocked',</span><br><span style="color: hsl(120, 100%, 40%);">+            '9850': 'increase cannot be performed, Max value reached',</span><br><span style="color: hsl(120, 100%, 40%);">+            },</span><br><span style="color: hsl(120, 100%, 40%);">+          'Application independent errors': {</span><br><span style="color: hsl(120, 100%, 40%);">+            '67xx': 'incorrect parameter P3',</span><br><span style="color: hsl(120, 100%, 40%);">+            '6bxx': 'incorrect parameter P1 or P2',</span><br><span style="color: hsl(120, 100%, 40%);">+            '6dxx': 'unknown instruction code given in the command',</span><br><span style="color: hsl(120, 100%, 40%);">+            '6exx': 'wrong instruction class given in the command',</span><br><span style="color: hsl(120, 100%, 40%);">+            '6fxx': 'technical problem with no diagnostic given',</span><br><span style="color: hsl(120, 100%, 40%);">+            },</span><br><span style="color: hsl(120, 100%, 40%);">+          }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        super().__init__('SIM', desc='GSM SIM Card', cla="a0", sel_ctrl="0000", files_in_mf=[DF_TELECOM(), DF_GSM()], sw=sw)</span><br><span>     def decode_select_response(self, data_hex:str) -> Any:</span><br><span>       return _decode_select_response(data_hex)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/26203">change 26203</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/26203"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I01f2643a93e4a9b2ce2f95134aa5d773179d9b1c </div>
<div style="display:none"> Gerrit-Change-Number: 26203 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>