<div dir="ltr">In this test it took 35 seconds (I was testing 5 seconds timeout here, with some more debug logs), but I think it's SIM's content dependent<br><br>mar 17 09:07:10 D2040 ModemManager[23597]: Waiting up to 5 seconds for SIM readiness (#QSS: 3)<br>mar 17 09:07:15 D2040 ModemManager[23597]: After SIM unlock: SIM readiness timeout 5 expired. Continuing...<br>mar 17 09:07:18 D2040 ModemManager[23597]: Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabling -> registered)<br>mar 17 09:07:45 D2040 ModemManager[23597]: (ttyACM3): <-- '#QSS: 3'
<br><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 17 Mar 2017 at 10:26 Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Mar 17, 2017 at 10:23 AM, Carlo Lobrano <<a href="mailto:c.lobrano@gmail.com" class="gmail_msg" target="_blank">c.lobrano@gmail.com</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> I tested your patch and it seems working fine, even if #QSS: 3 always<br class="gmail_msg">
> arrives very late respect any acceptable timeout (the modem reads all SIM<br class="gmail_msg">
> values, even sms, before signaling QSS:3).<br class="gmail_msg">
> Moreover, this change would be really helpful for the issue I reported in<br class="gmail_msg">
> "[PATCH] telit: lock/unlock CSIM operations by default" thread. I'm about to<br class="gmail_msg">
> write another email about that, because I need some help there.<br class="gmail_msg">
<br class="gmail_msg">
So, the "#QSS: 3" arrives way after the 1s timeout we added? how much<br class="gmail_msg">
after? Would it make sense to wait for #QSS: 3 and if not arrived,<br class="gmail_msg">
timeout with a longer value?<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Aleksander<br class="gmail_msg">
<a href="https://aleksander.es" rel="noreferrer" class="gmail_msg" target="_blank">https://aleksander.es</a><br class="gmail_msg">
</blockquote></div>