Guide to common AT commands for SMS cats

Source: Internet
Author: User
Tags cmss
Guide to common AT commands for SMS cats

AT command SMS plays an important role in CAT Communication. It can use AT command to control many behaviors of mobile phones, including dialing numbers, button control, fax, and GPRS.

Basic AT command usage:

1. Test Command)

Add "=?" After the AT command ?" It constitutes a test command. For example, "AT + CSCS = ?" All supported character sets are listed.

2. Read Command)

Add "?" After the AT command It constitutes a READ command. For example, "AT + CSCS ?" The current settings are listed.

3. Execute Command)

Generally, add "=" and command parameters after the AT command. Some commands, such as the AT + CMGR command, can be directly executed without parameters.

Taking wavecom gsm modem as an example, the common AT instruction sets and Development references are as follows:

Command name Usage Description
CSMS Select Information Service
0 compatible with GSM07.05 Phase 2 version 4.7.0
1 compatible with GSM07.05 Phase 2 + version
T + CSMS = 0
+ CSMS: 1, 1
AT + CSMS = 1
+ CSMS: 1, 1
SMS-MO
SMS-MT
SMS-CB (community broadcast)
All supported
CNMA New SMS received confirmation
CPMS Preferred SMS storage Zone
SM is the SIM card area and BM is the memory area. The default value is SM.
AT + CPMS =?
+ CPMS: ("SM", "BM"), ("SM "))
AT + CPMS = "SM"
+ CPMS: 3,25, 3,25
AT + CPMS = "BM"
+ CPMS: 0, 20, 3, 25
(1) read and delete information
(2) write and publish information
Used 1, total 1, used 2, total 2
CMGF Set the SMS encoding mode (1 text format, 0 is PDU format)
CSAS Store information related to CSCA and CSMP on E2PROM
CRES Restore relevant information from E2PROM
CSDH Display text format parameters (1 is displayed, 0 is not displayed)
AT + CDSH = 1

+ CMT: "+ 8613501154105", "01/09/12,18: 04: 09 + 32", 8613800100500, 4, "+", 3
AAA

AT + CSDH = 0
+ CMT: "+ 8613501154105", "01/09/12, 18: 04: 48 + 32"
AAA

Related information includes + CMTI, + CMT, + CDS, + CMGR, + CMGL

The two examples on the left are the same for sending and receiving messages with AAA content.

CNMI SMS output mode
AT + CNMI =, 0

+ CMT: "+ 8613501154105", "01/09/13, 11: 04: 09 + 32"
AAA

AT + CNMI = 2, 1, 0, 0

+ CMTI: "SM", 4

Among them, the second digit determines whether the SMS is directly output or saved in "SM ".

The two examples on the left are the same as the SMS for sending and receiving AAA content. If the value is 0, no SMS is received.

CMGR Read information stored in "SM"
AT + CMGR = 1
+ CMGR: "rec read", "+ 8613501154102", "01/08/: 46: 47 + 32"
X000E8

AT + CMGR = 4
+ CMGR: "rec unread", "+ 8613501154105", "01/09/13, 11: 02: 06 + 32"
AAA

AT + CMGR = 2
+ CMGR: "rec read", "+ 8613501154105", "01/08/: 32: 34 + 32"
DCS format error
At + cmgf = 0; + cmgr = 2
+ CMGR: 1, 26
08916830000000000005f0040d91683100000000000001f500081080326123432306004400460044

Read 1st
Source 13501154102

Read 4th
Source 13501154105

When reading 2nd entries, the system encounters a DCS format error. After converting it to the PDU format, it reads the data.
Source 13501154105

CMGL Information List, (+ CMGL: Index, type, length <content> =
AT + CMGL = 4
+ CMGL: 1, 1, 26
08916830000000000005f0040d91683100000000000001f200001080000016474230658180c56c401
+ CMGL: 2, 1, 26
08916830000000000005f0040d91683100000000000001f500081080326123432306004400460044
+ CMGL: 3, 1, 32
08916830000000000005f0040d91683100000000000001f50008108032617116230c003400310032
003100320033
+ CMGL: 4, 1, 23
08916830000000000005f0040d91683100000000000001f500001090311120602303c16010
Type
"Rec unread" 0
"Rec read" 1
"Sto unsent" 2
"Sto sent" 3
"ALL" 4
CMGS Send SMS, which can be in text or PDU Mode
AT + CMGF = 1
OK
AT + CMGS = 13501154105
> AAA <^ Z>
+ CMGS: 204
OK

AT + CMGF = 0
OK
AT + CMGS = 18
> 0011000d9168310000000001_1f500040103414141 <^ Z>
+ CMGS: 205
OK

Send by text

Send by PDU

CMGW Write information to memory
AT + CMGW = "+ 8613501154105"
> AAA <^ Z>
+ CMGW: 5
OK

AT + CMGW = <lengh> <CR> <pdu> <^ Z>

Write by text

Write by PDU

CMSS Send information from memory
AT + CMSS = 5
+ CMSS: 207
OK

+ CMT:, 23
08916830000000000005f0040d91683100000000000001f500001090116163932303c16010

AT + CMSS = 5, + 8613501154102
+ CMSS: 210
OK

5th messages in the sent memory

Received Information

You can also send 5th messages to a specified user.

CSMP Set text format parameters, + CSMP: <fo> <vp> <pid> <dcs>
AT + CSMP?

+ CSMP: 1,167, 0, 0

The information is valid,
167 default
0-143: (VP + 1) * 5 minutes
143-167: 12 hours + (VP-143) * 30 minutes
168-196 (VP-166) * 1 day
197-255 (VP-192) * 1 week
CMGD Delete information, AT + CMGD = <index>
CSCA SMS Service Center Number
At + csca?
+ CSCA: "+ 8613800100500", 145
OK
Beijing Short Message Service Center Number
CSCB Select the community broadcast information type
WCBM Residential broadcast information identifier
WMSC Information Status correction
WMGO Information Rewriting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.