<div dir="ltr"><div>Aleksander,</div><div><br></div><div>The Twilio Super SIM will send a Proactive Command NAA Initialization and Full File Change Notification to the terminal on the IMSI change. Some modems, like the Quectel BG95 or EC25 will send a URC if</div>+QUSIM: 1<br>if it is a USIM and <br>+QUSIM: 0 <br><div>if it's a regular SIM</div><div>no idea about other modems however.</div><div><br></div><div>I can arrange to get you a SIM for testing if needed as this is an area I'm interested in as well. I can also provide a SIMtrace2 pcap (or raw APDUs if preferred) capture of the communications between the terminal and the SIM if that would be helpful. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 3, 2023 at 6:24 AM Aleksander Morgado <<a href="mailto:aleksandermj@chromium.org">aleksandermj@chromium.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> > Does ModemManager support SIM application tool kit with proactive SIM<br>
> > commands? My assumption is most of these SIM application tool kit<br>
> > commands should be handled by the modem but I'm unclear what is the<br>
> > role of host CPU / ModemManager in these commands? For example, many<br>
> > SIMs support multi-IMSI i.e. depending on the location, a particular<br>
> > IMSI is used for network connection. When a SIM changes its IMSI, the<br>
> > SIM application tool kit applet sends a REFRESH proactive command to<br>
> > the host device (or modem). This instructs the device to re-read the<br>
> > data on the SIM, including the new IMSI.<br>
><br>
> Currently, ModemManager does not support any SIM application tool kit<br>
> commands. SIM toolkit apps displaying emergency numbers etc. are<br>
> currently not possible with ModemManager.<br>
><br>
> ><br>
> > So how shall ModemManager know that IMSI has been changed and what it<br>
> > is supposed to do? What is the role of ModemManager in handling these<br>
> > commands?<br>
><br>
> If the modem emits an AT URC / QMI / MBIM Indication, ModemManager<br>
> might be able to handle it, but I'm not sure.<br>
><br>
<br>
This is right. As we don't support generic SIM STK operations in MM.<br>
We currently only support the multi-IMSI scenario on QMI modems when<br>
they send an explicit notification about the change (e.g. UIM Refresh<br>
indication, see 5c0db3743209b78d8c7b7558e337e6df25951bae).<br>
<br>
I actually need to investigate the IMSI switch procedure while in<br>
MBIM, it's in my TODO list for the next weeks. I assume that maybe<br>
using the STK service we could be notified of the same.<br>
<br>
-- <br>
Aleksander<br>
</blockquote></div>