SIMCOM SMS AT

From ElectroDragon
Revision as of 02:06, 28 May 2020 by Chao (talk | contribs) (Created page with " == SMS == === Setup === * AT+CMGF=1 // text mode * AT+CSCS="GSM" === Send SMS === * AT+CMGS="18576608994" // end 0x1A to end == Receive SMS == * AT+CNMI? -> +CNMI: 2,1,0,0,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SMS

Setup

  • AT+CMGF=1 // text mode
  • AT+CSCS="GSM"

Send SMS

  • AT+CMGS="18576608994" // end 0x1A to end

Receive SMS

  • AT+CNMI? -> +CNMI: 2,1,0,0,0
  • Receive on time mssage: +CMTI: "SM",5
  • Location at index 5
  • read by AT+CMGR=5


Read CMD Read feedback example Read Feedback Description Write Command Header text
AT+CPMS? +CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3>,<total3> +CPMS:"SM",2,50,"ME",0,50,"MT",2,100 - -
AT+CMGL=? - - - -
- - - AT+CMGR=1 read message at index 1
Example Example Example Example Example
Example Example Example Example Example