William,
Wait! The above is for SD card. Sorry about my misunderstanding your question. There are AT commands that are available to detect the SIM. One way to do it on an mPower is to use the radio-query utility:
root@mtcap:/home/admin# radio-query –sim-status
{
“isSimInserted” : false
}
It returns whether the SIM is inserted/detected. This is an abstracted higher level implementation that works for all the radios supported by mPower software. To do this for a Quectel or Telit radio specifically implemented on your own it is different.
For Quectel you would use the “AT+QSIMSTAT?” command and parse its output.
For Telit you would use the “AT#SIMDET?” command and parse its output.
Jeff
-
This reply was modified 4 years, 5 months ago by Jeff Hatch.