Our carrier board has an esim (sim1) and a physical sim (sim2)
By default the sim1 is used (esim is always “inserted”/soldered)
How can our application detect if sim2 is inserted while still being switched to sim1.
Current test procedure:
- AT+QDSIM? → 0 (sim1 is used)
- AT+QSIMSTAT? → 0,1 (sim1 is inserted)
- AT+QDSIM=1 (switch to sim2)
- < Reboot of modem for above function to take effect >
- AT+QSIMSTAT? → 0,0 (sim2 is not inserted)
— If no sim in inserted in 2nd sim slot, switch back to sim slot 1 — - AT+QDSIM=0 (switch back to sim1)
- < Reboot of modem for above function to take effect >
As you can see, if the 2nd sim is not inserted, the modem needs to be rebooted twice in order to be usable again.