<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/25805">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pySim-shell: add cardinfo command<br><br>It may sometimes be helpful to get a bit of general information about<br>the card. To sort out problems it sometomes helps to get an idea what<br>card type an ICCID pySim-shell pySim-shell has in memory.<br><br>Change-Id: If31ed17102dc0108e27a5eb0344aabaaf19b19f9<br>---<br>M pySim-shell.py<br>1 file changed, 11 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/05/25805/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim-shell.py b/pySim-shell.py</span><br><span>index a0031a5..6ec6ae6 100755</span><br><span>--- a/pySim-shell.py</span><br><span>+++ b/pySim-shell.py</span><br><span>@@ -605,6 +605,17 @@</span><br><span>                else:</span><br><span>                        raise ValueError("error: cannot authenticate, no adm-pin!")</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+     def do_cardinfo(self, opts):</span><br><span style="color: hsl(120, 100%, 40%);">+          """Display information about the currently inserted card"""</span><br><span style="color: hsl(120, 100%, 40%);">+             self._cmd.poutput("Card info:")</span><br><span style="color: hsl(120, 100%, 40%);">+             self._cmd.poutput(" Name: %s" % self._cmd.card.name)</span><br><span style="color: hsl(120, 100%, 40%);">+                self._cmd.poutput(" ICCID: %s" % self._cmd.iccid)</span><br><span style="color: hsl(120, 100%, 40%);">+           self._cmd.poutput(" Class-Byte: %s" % self._cmd.card._scc.cla_byte)</span><br><span style="color: hsl(120, 100%, 40%);">+         self._cmd.poutput(" Select-Ctrl: %s" % self._cmd.card._scc.sel_ctrl)</span><br><span style="color: hsl(120, 100%, 40%);">+                self._cmd.poutput(" AIDs:")</span><br><span style="color: hsl(120, 100%, 40%);">+         for a in self._cmd.card._aids:</span><br><span style="color: hsl(120, 100%, 40%);">+                        print("  %s" % a)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> @with_default_category('ISO7816 Commands')</span><br><span> class Iso7816Commands(CommandSet):</span><br><span>    def __init__(self):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/25805">change 25805</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/+/25805"/><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: If31ed17102dc0108e27a5eb0344aabaaf19b19f9 </div>
<div style="display:none"> Gerrit-Change-Number: 25805 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>