<div dir="ltr"><div>Hi Reinhard,<br><br></div>thanks for the suggestion.<br><br>Yes, +CPINR is not supported by all Telit modems (e.g. LE910 and LE910 V2), so I opted for the command with wider support. Changing the timeout can be a solution and I'll made some tests.<br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 13 Mar 2017 at 22:42 Reinhard Speyerer <<a href="mailto:rspmn@arcor.de">rspmn@arcor.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Mar 13, 2017 at 03:48:51PM +0000, Carlo Lobrano wrote:<br class="gmail_msg">
> Hi Salvador,<br class="gmail_msg">
><br class="gmail_msg">
> I'll look into this CSIM lock thing, but with a newer FW version I'm<br class="gmail_msg">
> actually getting responses to CSIM and the next messages (see logs below).<br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
Hi Carlo,<br class="gmail_msg">
<br class="gmail_msg">
I performed some manual testing with a HE910-G running firmware 12.00.008<br class="gmail_msg">
and a o2 DE SIM (not USIM) today and while the mobile always responds to<br class="gmail_msg">
AT+CSIM the second AT+CSIM takes much longer before returning the response:<br class="gmail_msg">
<br class="gmail_msg">
  at+cpin="xxxx"<br class="gmail_msg">
  OK<br class="gmail_msg">
  # first AT+CSIM completes in less than 0.5 seconds<br class="gmail_msg">
  AT+CSIM=10,0020000100<br class="gmail_msg">
  +CSIM: 4,"6E00"<br class="gmail_msg">
  OK<br class="gmail_msg">
  # second AT+CSIM completes in about 8 seconds<br class="gmail_msg">
  AT+CSIM=10,0020000100<br class="gmail_msg">
  +CSIM: 4,"6E00"<br class="gmail_msg">
  OK<br class="gmail_msg">
  +PACSP1<br class="gmail_msg">
<br class="gmail_msg">
Perhaps it might help to increase the corresponding timeout for this step<br class="gmail_msg">
and only use AT+CSIM if the mobile firmware does not support AT+CPINR.<br class="gmail_msg">
AT+CPINR also returns the correct status for a SIM (which the AT+CSIM<br class="gmail_msg">
method currently doesn't):<br class="gmail_msg">
<br class="gmail_msg">
  at+cpinr="SIM*"<br class="gmail_msg">
  +CPINR: SIM PIN,3,3<br class="gmail_msg">
  +CPINR: SIM PUK,10,10<br class="gmail_msg">
  +CPINR: SIM PIN2,3,3<br class="gmail_msg">
  +CPINR: SIM PUK2,10,10<br class="gmail_msg">
  OK<br class="gmail_msg">
<br class="gmail_msg">
Regards,<br class="gmail_msg">
Reinhard<br class="gmail_msg">
</blockquote></div>