Hi Harald, Holger,<div><br></div><div>I've tried couple of things, here are the results:</div><div><br></div><div>- I've connected a osmocom-like ftdi cable and gathered a trace from there (not sure if i can somehow enable more debug msgs, haven't done any special setup, if you want me to take it with some more verbosity being set somehow - please let me know. trace is attached).</div>
<div><br></div><div>- I've put one printf() into the apdu_split_in method, it seems the buffer is somehow getting scrambled from the beginning, it shows something like:</div><div><br></div><div><div>Lukass-MacBook-Air:host lukash$ ./simtrace </div>
<div>simtrace - GSM SIM and smartcard tracing</div><div>(C) 2010 by Harald Welte <<a href="mailto:laforge@gnumonks.org">laforge@gnumonks.org</a>></div><div><br></div><div>Entering main loop</div><div>unknown simtrace msg type 0xa4</div>
<div>apdu_split_in() reached.</div><div>APDU: a4 6f 05 9f 0f a0 c0 </div><div>apdu_split_in() reached.</div><div>apdu_split_in() reached.</div><div>.... and so on (tons of times).</div><div><br></div><div>so the APDUs are somehow going back and forth (as apdu_split_in is being called over and over) but simtrace is having some troubles displaying/parsing them.</div>
<div><br></div><div>I've found some more simcards behaving like this, Harald - if you want me to send you one for testing please send me your address, I'll be happy to do that - or I can bring it to 28c3 too - I'll leave that up to u.</div>
<div><br></div><div>Cheers,</div><div>Lukas</div><br><div class="gmail_quote">On Wed, Dec 14, 2011 at 4:45 PM, Holger Hans Peter Freyther <span dir="ltr"><<a href="mailto:holger@freyther.de">holger@freyther.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12/14/2011 04:07 PM, Harald Welte wrote:<br>
<br>
><br>
>> Any idea what might be causing this?<br>
><br>
> not really at this point.  If you have an extra simcard of that type,<br>
> you could mail it to me and I could look into it.<br>
<br>
</div>Hi,<br>
<br>
no idea if you already tried this. It appears that the communication between<br>
phone and SIM is working (e.g. entering PIN and such), so maybe it is the<br>
apdu_split.c in the host utility that fails to behave? You could verify that<br>
'apdu_split_in' is called?<br>
<br>
<br>
<br>
</blockquote></div><br></div>