https://osmocom.org/
https://osmocom.org/favicon.ico?1664741409
2020-02-26T17:46:09Z
Open Source Mobile Communications
pySim - Bug #4419: CardConnectionException: Failed to transmit with protocol T0. Transaction failed.
https://osmocom.org/issues/4419?journal_id=17550
2020-02-26T17:46:09Z
fixeria
<ul></ul><p>More details:</p>
<ul>
<li>Common card / reader details:
<ul>
<li>Card type: sysmoUSIM-SJS1</li>
<li>Reader: OMNIKEY AG 3121</li>
</ul></li>
</ul>
<ul>
<li>My machine, Arch Linux:
<ul>
<li>Python versions: 2.7 vs 3.8</li>
<li>pyscard version: 1.9.9 [1]</li>
</ul></li>
</ul>
<ul>
<li>Jenkins build slave [2] (also affected):
<ul>
<li>Python versions: 2.7 vs 3.5</li>
<li>pyscard version: 1.9.4</li>
</ul></li>
</ul>
<ul>
<li>pySim versions / commits:
<ul>
<li><a class="external" href="https://gerrit.osmocom.org/c/pysim/+/15504">https://gerrit.osmocom.org/c/pysim/+/15504</a></li>
<li>on top of <a class="external" href="https://gerrit.osmocom.org/c/pysim/+/17152">https://gerrit.osmocom.org/c/pysim/+/17152</a></li>
</ul></li>
</ul>
<p>[1] <a class="external" href="https://www.archlinux.org/packages/community/x86_64/python-pyscard/">https://www.archlinux.org/packages/community/x86_64/python-pyscard/</a><br />[2] <a class="external" href="https://jenkins.osmocom.org/jenkins/job/gerrit-pysim/338/a1=default,a2=default,a3=default,a4=default,label=simtester/console">https://jenkins.osmocom.org/jenkins/job/gerrit-pysim/338/a1=default,a2=default,a3=default,a4=default,label=simtester/console</a></p>
pySim - Bug #4419: CardConnectionException: Failed to transmit with protocol T0. Transaction failed.
https://osmocom.org/issues/4419?journal_id=17551
2020-02-26T19:17:31Z
fixeria
<ul></ul><p>Here is the difference:</p>
<pre><code class="diff syntaxhl"><span class="p">@@ -545,855 +545,21 @@</span> winscard_svc.c:361:ContextThread() Received command: TRANSMIT from client 15
readerfactory.c:848:RFReaderInfoById() RefReader() count was: 1
winscard.c:1595:SCardTransmit() Send Protocol: T=0
ifdhandler.c:1302:IFDHTransmitToICC() usb:076b/3022:libudev:0:/dev/bus/usb/001/002 (lun: 0)
<span class="gd">-commands.c:1623:CmdXfrBlockAPDU_extended() T=0 (extended): 7 bytes
--> 000000 6F 07 00 00 00 00 1E 00 00 00 00 A4 00 04 02 2F E2
-<- 000000 80 02 00 00 00 00 1E 00 00 00 61 20
</span><span class="gi">+commands.c:1623:CmdXfrBlockAPDU_extended() T=0 (extended): 5 bytes
+-> 000000 6F 05 00 00 00 00 1E 00 00 00 00 A4 00 04 02
+<- 000000 80 00 00 00 00 00 1E 40 FE 00
+commands.c:1523:CCID_Receive Card absent or mute
+ifdwrapper.c:543:IFDTransmit() Card not transacted: 612
+winscard.c:1620:SCardTransmit() Card not transacted: 0x80100016
</span></code></pre>
<p>This APDU comes from pySim/commands.py, SimCardCommands.select_file().</p>
pySim - Bug #4419: CardConnectionException: Failed to transmit with protocol T0. Transaction failed.
https://osmocom.org/issues/4419?journal_id=17552
2020-02-26T19:21:40Z
fixeria
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p><a class="external" href="https://gerrit.osmocom.org/c/pysim/+/17280">https://gerrit.osmocom.org/c/pysim/+/17280</a> commands: Python 3 fix: properly distinguish str and list</p>
pySim - Bug #4419: CardConnectionException: Failed to transmit with protocol T0. Transaction failed.
https://osmocom.org/issues/4419?journal_id=17613
2020-03-02T07:30:09Z
fixeria
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>Merged.</p>