<div dir="ltr"><div>I've been looking into the feasibility of supporting SIM hot swap on a MBIM modem.<br></div><div><br></div><div>If ModemManager observes MBIM_CID_SUBSCRIBER_READY_STATUS notifications, it should be able to detect when the SIM is removed, and then put the modem in the disabled state. If ModemManager continues to monitor MBIM_CID_SUBSCRIBER_READY_STATUS notifications, it should be able to detect when the SIM is re-inserted. ModemManager will need to recheck if the SIM is PIN locked when it tries to re-enable the modem. Does it make sense?</div>
<div><br></div><div>I guess handling the re-insertion of SIM may not be straightforward due to the way that ModemManager currently handles PIN unlock (during initialization and not enabling) and monitors unsolicited events (only when the 3GPP interface is enabled). It may still be useful to handle the SIM removal.</div>
<div><br></div><div>Thanks,</div><div>Ben</div></div>