<div dir="ltr"><div class="gmail_default" style=""><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">Hi all,</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">I'm trying to update some modem data according to an unsolicited event.</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">Telit modems have an unsolicited indication #QSS (Query SIM Status) which is emitted when the SIM status changes (e.g. SIM removed/inserted). </font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">My intention is to register an handler to this notification and somehow trigger an update of the SIM related data when a #QSS event occurs, the problem is how to update those data?</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">I tried a bit with some "update" functions like `mm_iface_modem_update_lock_info`, but since the SIM is not there anymore those command fail and the data (e.g. sim locked status, unlocked retries, etc.) do not change. Moreover, I tried with a modified version of modem_load_unlock_retries that unset the value of the retries (mm_unlock_retries_unset), but that doesn't seem to change the cached values (mmcli -m 0 still reports the old valued of unlock retries).</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">I think I am missing somenthing and/or that I need a more systematic approach, like repeating the steps done when a modem is first initialized. Is this possible?</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">Best regards,<br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">Carlo</font></div><div style="font-family:arial,helvetica,sans-serif"><br></div></div></div>