<div dir="ltr">It seems that sometimes the decision to send the #QSS=0 is taken with some delay (with HE910) and in these cases it arrives quite late (10-13 seconds) and disabling the notifications and then re-enabling them later does not avoid it.<br>Considered this, I would go with ignoring #QSS unsolicited between +CFUN=4 and +CFUN=1. The vast majority of telit modems switches the SIM off so this unsolicited is expected (actually, only the latest LE910 V2 FW do not do that) and, of course, it's the only one we will receive 'till +CFUN=1. Moreover ignoring QSS requires a lot less code than disabling/enabling its emission.</div><br><div class="gmail_quote"><div dir="ltr">On Tue, 1 Aug 2017 at 13:14 Carlo Lobrano <<a href="mailto:c.lobrano@gmail.com">c.lobrano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Yes, I agree. That's why it's on a different patch</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, 1 Aug 2017, 13:12 Aleksander Morgado, <<a href="mailto:aleksander@aleksander.es" target="_blank">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 Tue, Aug 1, 2017 at 12:31 PM, Carlo Lobrano <<a href="mailto:c.lobrano@gmail.com" target="_blank">c.lobrano@gmail.com</a>> wrote:<br>
>> Aren't the sim hot swap unsolicited messages received always, regardless<br>
>> of whether the modem is enabled or disabled?<br>
><br>
> disabling_stopped function releases both ports contexts, so we don't receive<br>
> unsolicited on SIM swap ports.<br>
><br>
<br>
Wait, I don't think that's ok. The SIM swap ports context is allocated<br>
during initialization, and should exist until the object is destroyed.<br>
We shouldn't be removing this context when the disable() happens,<br>
otherwise we wouldn't get SIM hot swap events when the modem is<br>
disabled.<br>
<br>
--<br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div></blockquote></div>