<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=SIMCOM_SMS_AT</id>
	<title>SIMCOM SMS AT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=SIMCOM_SMS_AT"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=SIMCOM_SMS_AT&amp;action=history"/>
	<updated>2026-06-08T00:28:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=SIMCOM_SMS_AT&amp;diff=26866&amp;oldid=prev</id>
		<title>Chao at 05:08, 10 June 2020</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=SIMCOM_SMS_AT&amp;diff=26866&amp;oldid=prev"/>
		<updated>2020-06-10T05:08:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Excute !! Feedback !! Read !! Feedback !! Write !! Feedback !! Test !! Feedback !! Description&lt;br /&gt;
|-&lt;br /&gt;
| AT+CNMI  || +CMTI:&amp;quot;SM&amp;quot;,2 || - || - || - || - || - || - || Set the new message remind, for example AT+CNMI=2,1, when set is on and message box is NOT full, message is stored at position 2&lt;br /&gt;
|-&lt;br /&gt;
| - || - || AT+CMGF? || +CMGF: 1 || AT+CMGF=0 || OK || - || - || &lt;br /&gt;
* Set the module message mode&lt;br /&gt;
* set either at PDU(0) or text mode(1)&lt;br /&gt;
|-&lt;br /&gt;
| -  || - || AT+CSCS? || +CSCS:&amp;quot;GSM&amp;quot; ||  AT+CSCS=&amp;quot;GSM&amp;quot; || OK || - || - || &lt;br /&gt;
* Set TE character set, set AT+CSCS=&amp;quot;GSM&amp;quot; for english only message&lt;br /&gt;
* or set AT+CSCS=&amp;quot;UCS2&amp;quot; for other lanuage&lt;br /&gt;
|-&lt;br /&gt;
| -  || - || - || - || - || - || - || - || -&lt;br /&gt;
|-&lt;br /&gt;
| -  || - || - || - || - || - || - || - || -&lt;br /&gt;
|-&lt;br /&gt;
| -  || - || - || - || - || - || - || - || -&lt;br /&gt;
|-&lt;br /&gt;
| -  || - || - || - || - || - || - || - || -&lt;br /&gt;
|-&lt;br /&gt;
| -  || - || - || - || - || - || - || - || -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== By AT Commands ==&lt;br /&gt;
* To end of send message, send 1A by hex&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command !! Description !! Return !! Result&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| AT+CMGR || read message, for exmple, AT+CMGR=1 to read message at position 1  || - || -&lt;br /&gt;
|-&lt;br /&gt;
| AT+CMGS || send message, send 180 bytes at GSM mode, or 70 Chinese character at UCS2 mode, AT+CMGS=&amp;quot;18576608994&amp;quot; || will return &amp;quot;&amp;gt;&amp;quot; and then type message, then end up with hex value 1A( 0X1A, &amp;quot;CTRL+Z&amp;quot;), send 1B to cancel &amp;quot;ESC&amp;quot;  || and finally return: +CMGS:156, in which 156 has meaning.&lt;br /&gt;
|-&lt;br /&gt;
| AT+CMGS (e.g. Chinese SMS) || set AT+CMGR=1; AT+CSMP=17,167,2,25; AT+CSCS=&amp;quot;UCS2&amp;quot; now the message can be by Unicode, AT+CMGS=&amp;quot;00310035003100320034003500330032003600370032&amp;quot; (number 15124532672) || will return &amp;quot;&amp;gt;&amp;quot; and then type message 00530049004D00390030003000414E2D82F1658777ED4FE153D190016D4B8BD5, end with 1A  || -&lt;br /&gt;
|-&lt;br /&gt;
| AT+CMGD || delete message, to delete message at postion 1: AT+CMGD=1 || OK || -&lt;br /&gt;
|-&lt;br /&gt;
| AT+CPMS || inquiry or set message storage settings || AT+CPMS? to check how many message can be stored maximally and how many message stored ||：+CPMS:&amp;quot;SM&amp;quot;,1,50, means support 50 sms max and 1 sms are stored now&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== send SMS steps (EN) ===&lt;br /&gt;
[[File:Send en sms.jpg|thumbnail]]&lt;br /&gt;
* General send SMS steps&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
AT+CSCA=&amp;quot;+8613800755500&amp;quot; -&amp;gt; OK // set message center&lt;br /&gt;
AT+CMGF=1 // text mode &lt;br /&gt;
AT+CSCS=&amp;quot;GSM&amp;quot; // EN mode&lt;br /&gt;
AT+CMGS=&amp;quot;18576608994&amp;quot;&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Enter content, and end up with 1A to send, or 1B to cancel.&lt;br /&gt;
&lt;br /&gt;
=== read SMS steps (EN) ===&lt;br /&gt;
[[File:Read en sms.jpg|thumbnail]]&lt;br /&gt;
pre-setup&lt;br /&gt;
 AT+CMGF=1  // set message mode - text&lt;br /&gt;
 AT+CSCS=&amp;quot;GSM&amp;quot; // set message language mode - EN &lt;br /&gt;
 AT+CNMI=2,1 // set new message remind&lt;br /&gt;
when get SM notification reminder on serial&lt;br /&gt;
 &amp;quot;SM&amp;quot;,  2 // 2 messages in inbox&lt;br /&gt;
 AT+CMGR=2 // read message at position 2, AT+CMGL=&amp;quot;ALL&amp;quot; is to read all&lt;br /&gt;
 AT+CMGD=2 // delete SMS at position 2&lt;br /&gt;
* message will be received in unicode or hex, please convert the text&lt;br /&gt;
&lt;br /&gt;
=== send SMS steps (CN) ===&lt;br /&gt;
[[File:Send cn sms.jpg|thumbnail]]&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
AT+CMGF=1 // set message mode - text&lt;br /&gt;
AT+CSCS=&amp;quot;UCS2&amp;quot; // set message language mode - other language &lt;br /&gt;
AT+CSMP=17,167,2,25 // set the text mode parameters&lt;br /&gt;
AT+CMGS=&amp;quot;00310035003100320034003500330032003600370032&amp;quot; // this is the phone number in UCS2 &lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* after this, enter text message in HEX &amp;quot;00530049004D003700360030003000584E2D658777ED4FE16D4B8BD5&amp;quot;, end up with 1A&lt;br /&gt;
=== resend SMS steps (CN) ===&lt;br /&gt;
[[File:Read cn sms.jpg|thumbnail]]&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
AT+CMGF=1    	 // set message mode - text&lt;br /&gt;
AT+CSCS=&amp;quot;GSM&amp;quot;	// set message language mode - EN&lt;br /&gt;
AT+CNMI=2,1   	// set new message remind&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Read new message - &amp;gt; AT+CMGR=21        // message number 21&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SMS ==&lt;br /&gt;
=== Setup ===&lt;br /&gt;
* AT+CMGF=1 // text mode &lt;br /&gt;
* AT+CSCS=&amp;quot;GSM&amp;quot;&lt;br /&gt;
=== Send SMS ===&lt;br /&gt;
* AT+CMGS=&amp;quot;18576608994&amp;quot; // end 0x1A to end&lt;br /&gt;
&lt;br /&gt;
== Receive SMS ==&lt;br /&gt;
* AT+CNMI? -&amp;gt; +CNMI: 2,1,0,0,0&lt;br /&gt;
&lt;br /&gt;
* Receive on time mssage: +CMTI: &amp;quot;SM&amp;quot;,5&lt;br /&gt;
* Location at index 5&lt;br /&gt;
* read by AT+CMGR=5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Read CMD !! Read feedback example !! Read Feedback Description !! Write Command !! Header text&lt;br /&gt;
|-&lt;br /&gt;
| AT+CPMS? || +CPMS: &amp;lt;mem1&amp;gt;,&amp;lt;used1&amp;gt;,&amp;lt;total1&amp;gt;,&amp;lt;mem2&amp;gt;,&amp;lt;used2&amp;gt;,&amp;lt;total2&amp;gt;,&amp;lt;mem3&amp;gt;,&amp;lt;used3&amp;gt;,&amp;lt;total3&amp;gt; || +CPMS:&amp;quot;SM&amp;quot;,2,50,&amp;quot;ME&amp;quot;,0,50,&amp;quot;MT&amp;quot;,2,100 || -|| -&lt;br /&gt;
|-&lt;br /&gt;
| AT+CMGL=? || -|| -|| -|| -&lt;br /&gt;
|-&lt;br /&gt;
| -|| -|| -|| AT+CMGR=1 || read message at index 1&lt;br /&gt;
|-&lt;br /&gt;
| Example || Example || Example || Example || Example&lt;br /&gt;
|-&lt;br /&gt;
| Example || Example || Example || Example || Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[category: SIMCOM AT]]&lt;br /&gt;
[[category: SMS]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>