Hey!

>
> I'm currently working on the Fibocom plugin and while adding SIM hot swap 
> support, I noticed that every time the SIM is inserted/removed, the entire 
> modem is destroyed and recreated.
> The answer may be obvious but I just wanted to make sure that this is the 
> normal behavior?
>

Yes, this is normal behavior.

The SIM hotswap logic was introduced in later releases of the
ModemManager API, and in order to avoid needing to modify the users of
the MM API, the decision was taken to treat a SIM hotswap event as a
full modem object destruction followed by a new modem object creation.
The old modem object had the old SIM, while the newly created modem
object has the new one.

Reply via email to