AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page142of233
SIM Detection Mode-#SIMDET
#SIMDET - SIM Detection Mode
AT#SIMDET=
<mode>
Set command specifies the SIM Detection mode.
Parameter:
<mode> - SIM Detection mode
0 - ignore SIMIN pin and simulate the status
“SIM Not Inserted”
1 - ignore SIMIN pin and simulate the status
“SIM Inserted”
2 - automatic SIM detection through SIMIN Pin (default)
AT#SIMDET?
Read command returns the currently selected Sim Detection Mode in the format:
#SIMDET: <mode>,<simin>
where:
<mode> - SIM Detection mode, as before
<simin> - SIMIN pin real status
0 - SIM not inserted
1 - SIM inserted
AT#SIMDET=?
Test command reports the supported range of values for parameter <mode>
Write to I2C - #I2CWR
#I2CWR – Write to I2C
AT#I2CWR=
<sdaPin>, <sclPin>,
<deviceId>,
<registerId>, <len>
This command is used to Send Data to an I2C peripheral connected to module GPIOs
<sdaPin>: GPIO number for SDA . Valid range is “any input/output pin” (see
“Hardware User’s Guide”.)
<sclPin>: GPIO number to be used for SCL. Valid range is “any output pin” (see
“Hardware User’s Guide”).
<deviceId>: address of the I2C device, with the LSB, used for read\write command.
It doesn’t matter if the LSB is set to 0 or to 1. 10 bit addressing supported.
Value has to be written in hexadecimal form (without 0x).
<registerId>: Register to write data to , range 0..255. Value has to be written in
hexadecimal form (without 0x).
<len>: number of data to send. Valid range is 1-254.
The module responds to the command with the prompt '>' and awaits for the data to
send.