<div dir="ltr">btw, you may want to move this discussion to the simtrace mailing list instead of openbsc, I think it fits there better.<div><br></div><div>Lukas</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, May 8, 2013 at 1:46 PM, Lukas Kuzmiak <span dir="ltr"><<a href="mailto:lukash@backstep.net" target="_blank">lukash@backstep.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hey there,<div><br></div><div>it seems to me the pySim was trying to update 6f30 file (not sure why):</div><div class="im"><div><span style="font-family:arial,sans-serif;font-size:13px">  self._scc.update_binary('6f30'</span><span style="font-family:arial,sans-serif;font-size:13px">, hplmn + 'ff' * (tl-3))</span><br>

</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div><span style="font-family:arial,sans-serif;font-size:13px">and got back 0x9804 instead of 0x9000, which means you don't have sufficient permissions to update that file - either pin verification went wrong or you need some other key to update that file, not sure what permissions are set of 6f30 file there.</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Hopes this will help you debugging it.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>

</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Cheers!</span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-family:arial,sans-serif;font-size:13px">Lukas</span></div>
</font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, May 8, 2013 at 1:38 PM, Martin Nagy <span dir="ltr"><<a href="mailto:nugett@centrum.sk" target="_blank">nugett@centrum.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi all,<br>
After buying a super Sim Kit (16 in 1) from China, I tried the reader (green PCB inside a blue transparent plastic case with a blue LED) and SIM (identified as a fakesupersim) with pysim tool. However i am getting the following error:<br>


<br>
/pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z 1234 -j 1 -t auto<br>
Insert card now (or CTRL-C to cancel)<br>
Autodetected card type fakemagicsim<br>
Generated card parameters :<br>
 > Name    : 26C3<br>
 > SMSP    : e1ffffffffffffffffffffffff058100945555ffffffffffff000000<br>
 > ICCID   : 8949262427518313026<br>
 > MCC/MNC : 262/42<br>
 > IMSI    : 262422461512085<br>
 > Ki      : 7b74741a1ee14337ec23f9ab92a13648<br>
 > OPC     : ccd867d60797d8d45354a51b3ef568ff<br>
<br>
Programming ...<br>
Traceback (most recent call last):<br>
  File "./pySim-prog.py", line 530, in <module><br>
    card.program(cp)<br>
  File "/home/nadicek/pysim/pysim/pySim/cards.py", line 231, in program<br>
    self._scc.update_binary('6f30', hplmn + 'ff' * (tl-3))<br>
  File "/home/nadicek/pysim/pysim/pySim/commands.py", line 53, in update_binary<br>
    return self._tp.send_apdu_checksw(pdu)<br>
  File "/home/nadicek/pysim/pysim/pySim/transport/__init__.py", line 87, in send_apdu_checksw<br>
    raise RuntimeError("SW match failed ! Expected %s and got %s." % (sw.lower(), rv[1]))<br>
RuntimeError: SW match failed ! Expected 9000 and got 9804.<br>
<br>
I checked mailing lists and haven’t found anybody who had similar problem with pysim. Also I have tried forcing different models of SIM, but nothing is working. Obviously I can remove this check from the script file (__init__.py in /pySim/transport), however somebody had a reason to put such condition there. I would like to ask if it is safe to remove that line of code and the purpose of that line of code.<br>


<br>
Thanks a lot and best regards<br>
<span><font color="#888888">Martin<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>