Re: SIM Application toolkit commands
The method Mr. Lad mentions allows the user/UE to trigger switching to the "next IMSI" in the default list. The applet on the SIM also triggers its own change based upon information in the Envelope Event Download Location Status or Proactive Command Provide Local Information. In either of these events, if "Normal Service" is reported, the applet will look at the MCC of the roaming network and determine if there is an IMSI designated for use in that country. The applet will then change EF_IMSI and send a REFRESH of the type SIM Initialization and Full File Change Notification to the terminal to tell it to come back in and refresh everything the modem knows about the SIM. When this REFRESH happens that is when you see the +URC on the quectel modems I mentioned previously via the terminal. On Tue, May 9, 2023 at 8:36 PM Amol Lad wrote: > > >> 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 > >> +QUSIM: 1 > >> if it is a USIM and > >> +QUSIM: 0 > >> if it's a regular SIM > >> no idea about other modems however. > >> > > > You mean the +QUSIM URC is sent to the host whenever the Full File > > Change Notification is received by the terminal on the IMSI change? > > i.e. no need to STK supported by the host in this case, right? > > >> 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. > >> > > > How do you instruct the SIM to switch IMSI? > > One way is mentioned here: > > https://www.twilio.com/docs/iot/supersim/super-sim-multi-imsi-applet#force-a-switch-to-the-next-imsi > > > > > -- > Aleksander > -- > The information in this email communication (inclusive of attachments) is > confidential to 4RF Limited and the intended recipient(s). If you are not > the intended recipient(s), please note that any use, disclosure, > distribution or copying of this information or any part thereof is strictly > prohibited and that the author accepts no liability for the consequences of > any action taken on the basis of the information provided. If you have > received this email in error, please notify the sender immediately by > return email and then delete all instances of this email from your system. > 4RF Limited will not accept responsibility for any consequences associated > with the use of this email (including, but not limited to, damages > sustained as a result of any viruses and/or any action or lack of action > taken in reliance on it). > >
Re: SIM Application toolkit commands
>> 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 >> +QUSIM: 1 >> if it is a USIM and >> +QUSIM: 0 >> if it's a regular SIM >> no idea about other modems however. >> > You mean the +QUSIM URC is sent to the host whenever the Full File > Change Notification is received by the terminal on the IMSI change? > i.e. no need to STK supported by the host in this case, right? >> 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. >> > How do you instruct the SIM to switch IMSI? One way is mentioned here: https://www.twilio.com/docs/iot/supersim/super-sim-multi-imsi-applet#force-a-switch-to-the-next-imsi -- Aleksander
Re: SIM Application toolkit commands
Hey, > 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 > +QUSIM: 1 > if it is a USIM and > +QUSIM: 0 > if it's a regular SIM > no idea about other modems however. > You mean the +QUSIM URC is sent to the host whenever the Full File Change Notification is received by the terminal on the IMSI change? i.e. no need to STK supported by the host in this case, right? > 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. > How do you instruct the SIM to switch IMSI? -- Aleksander
Re: SIM Application toolkit commands
Aleksander, 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 +QUSIM: 1 if it is a USIM and +QUSIM: 0 if it's a regular SIM no idea about other modems however. 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. On Wed, May 3, 2023 at 6:24 AM Aleksander Morgado wrote: > > > Does ModemManager support SIM application tool kit with proactive SIM > > > commands? My assumption is most of these SIM application tool kit > > > commands should be handled by the modem but I'm unclear what is the > > > role of host CPU / ModemManager in these commands? For example, many > > > SIMs support multi-IMSI i.e. depending on the location, a particular > > > IMSI is used for network connection. When a SIM changes its IMSI, the > > > SIM application tool kit applet sends a REFRESH proactive command to > > > the host device (or modem). This instructs the device to re-read the > > > data on the SIM, including the new IMSI. > > > > Currently, ModemManager does not support any SIM application tool kit > > commands. SIM toolkit apps displaying emergency numbers etc. are > > currently not possible with ModemManager. > > > > > > > > So how shall ModemManager know that IMSI has been changed and what it > > > is supposed to do? What is the role of ModemManager in handling these > > > commands? > > > > If the modem emits an AT URC / QMI / MBIM Indication, ModemManager > > might be able to handle it, but I'm not sure. > > > > This is right. As we don't support generic SIM STK operations in MM. > We currently only support the multi-IMSI scenario on QMI modems when > they send an explicit notification about the change (e.g. UIM Refresh > indication, see 5c0db3743209b78d8c7b7558e337e6df25951bae). > > I actually need to investigate the IMSI switch procedure while in > MBIM, it's in my TODO list for the next weeks. I assume that maybe > using the STK service we could be notified of the same. > > -- > Aleksander >
Re: SIM Application toolkit commands
> > Does ModemManager support SIM application tool kit with proactive SIM > > commands? My assumption is most of these SIM application tool kit > > commands should be handled by the modem but I'm unclear what is the > > role of host CPU / ModemManager in these commands? For example, many > > SIMs support multi-IMSI i.e. depending on the location, a particular > > IMSI is used for network connection. When a SIM changes its IMSI, the > > SIM application tool kit applet sends a REFRESH proactive command to > > the host device (or modem). This instructs the device to re-read the > > data on the SIM, including the new IMSI. > > Currently, ModemManager does not support any SIM application tool kit > commands. SIM toolkit apps displaying emergency numbers etc. are > currently not possible with ModemManager. > > > > > So how shall ModemManager know that IMSI has been changed and what it > > is supposed to do? What is the role of ModemManager in handling these > > commands? > > If the modem emits an AT URC / QMI / MBIM Indication, ModemManager > might be able to handle it, but I'm not sure. > This is right. As we don't support generic SIM STK operations in MM. We currently only support the multi-IMSI scenario on QMI modems when they send an explicit notification about the change (e.g. UIM Refresh indication, see 5c0db3743209b78d8c7b7558e337e6df25951bae). I actually need to investigate the IMSI switch procedure while in MBIM, it's in my TODO list for the next weeks. I assume that maybe using the STK service we could be notified of the same. -- Aleksander
Re: SIM Application toolkit commands
Hi, On Thu, 2023-04-27 at 08:22 +, Amol Lad wrote: > Hi, > > Does ModemManager support SIM application tool kit with proactive SIM > commands? My assumption is most of these SIM application tool kit > commands should be handled by the modem but I'm unclear what is the > role of host CPU / ModemManager in these commands? For example, many > SIMs support multi-IMSI i.e. depending on the location, a particular > IMSI is used for network connection. When a SIM changes its IMSI, the > SIM application tool kit applet sends a REFRESH proactive command to > the host device (or modem). This instructs the device to re-read the > data on the SIM, including the new IMSI. Currently, ModemManager does not support any SIM application tool kit commands. SIM toolkit apps displaying emergency numbers etc. are currently not possible with ModemManager. > > So how shall ModemManager know that IMSI has been changed and what it > is supposed to do? What is the role of ModemManager in handling these > commands? If the modem emits an AT URC / QMI / MBIM Indication, ModemManager might be able to handle it, but I'm not sure. > > Following link gives an example of multi IMSI SIMs and SIM > application tool kit commands > > https://www.twilio.com/docs/iot/supersim/super-sim-multi-imsi-applet > > (As per the specs, list of MANDATORY application toolkit features > (from ETSI TS 102 223) :- > > * Poll Interval > * Status > * Timer > * Provide local information (MCC, MNCsend sms command, IMEI, NMR) > * Setup Menu > * Terminal Profile > * Events (timer expiration, location status) > * Refresh > * More time > ) > > Any advise in this regard is highly appreciated. > > Thanks > Amol > > Hi, > > Does ModemManager support SIM application tool kit with proactive SIM > commands? My assumption is most of these SIM application tool kit > commands should be handled by the modem but I'm unclear what is the > role of host CPU / ModemManager in these commands? For example, many > SIMs support multi-IMSI i.e. depending on the location, a particular > IMSI is used for network connection. When a SIM changes its IMSI, the > SIM application tool kit applet sends a REFRESH proactive command to > the host device (or modem). This instructs the device to re-read the > data on the SIM, including the new IMSI. > > So how shall ModemManager know that IMSI has been changed and what it > is supposed to do? What is the role of ModemManager in handling these > commands? > > Following link gives an example of multi IMSI SIMs and SIM > application tool kit commands > > https://www.twilio.com/docs/iot/supersim/super-sim-multi-imsi-applet > > (As per the specs, list of MANDATORY application toolkit features > (from ETSI TS 102 223) :- > > * Poll Interval > * Status > * Timer > * Provide local information (MCC, MNCsend sms command, IMEI, NMR) > * Setup Menu > * Terminal Profile > * Events (timer expiration, location status) > * Refresh > * More time > ) > > Any advise in this regard is highly appreciated. > > Thanks > Amol > Kind regards, Dylan
SIM Application toolkit commands
Hi, Does ModemManager support SIM application tool kit with proactive SIM commands? My assumption is most of these SIM application tool kit commands should be handled by the modem but I'm unclear what is the role of host CPU / ModemManager in these commands? For example, many SIMs support multi-IMSI i.e. depending on the location, a particular IMSI is used for network connection. When a SIM changes its IMSI, the SIM application tool kit applet sends a REFRESH proactive command to the host device (or modem). This instructs the device to re-read the data on the SIM, including the new IMSI. So how shall ModemManager know that IMSI has been changed and what it is supposed to do? What is the role of ModemManager in handling these commands? Following link gives an example of multi IMSI SIMs and SIM application tool kit commands https://www.twilio.com/docs/iot/supersim/super-sim-multi-imsi-applet (As per the specs, list of MANDATORY application toolkit features (from ETSI TS 102 223) :- * Poll Interval * Status * Timer * Provide local information (MCC, MNCsend sms command, IMEI, NMR) * Setup Menu * Terminal Profile * Events (timer expiration, location status) * Refresh * More time ) Any advise in this regard is highly appreciated. Thanks Amol