Simple AT Command (5)-SMS command
In short message-related commands, the parameters involved are relatively concentrated, so the list is given first, and the descriptions are not repeated in the subsequent command details. Common parameter definitions:
Character Type: indicates that the parameter must be given in the form of a string with quotation marks, for example, "name"; INTEGER: indicates that the parameter is given as a number; other types are generally enumeration types, which vary according to different applicability. For details, refer to the prompts in the table to find the protocol. <alpha> character information corresponding to the address in the phone book of the simplified type. For the format, see + CSCS.
The length of the information body <data>. When the PDU mode (+ CMGF = 0) is used, it indicates the number of TPDU bytes.
1 AT + CSMS
Select Message Service: Select short Message Service.
2 AT + CPMS
Preferred Message Storage: select Message Storage.
3 AT + CMGF
Select the Short Message Format for Message Format.
0 PDU Mode
1 TEXT mode
4 AT + CSCA
Service Center Address: Set the Address of the Short Message Service Center.
5 AT + CSCB
Select Cell Broadcast Message Types Select the Cell Broadcast information type.
For example: + CSCB: 0, "26214,229, 50, 3, 24536,29719, 1536,101,228, 255", "0"
6 AT + CNMI
New Message Indications to TE New Message indication
+ CNMI :( list of supported <mode> s), (list of supported <mt> s), (list of supported <bm> s ), (list of supported <ds> s), (list of supported <bfr> s)
Store the message to the SIM card and send a notification to TE. For other classes, directly forward the short message to TE: + CMT: [<alpha>], <length> <CR> <LF> <pdu> (PDU Mode)
7 AT + CMGL
List messages
(In PDU mode) + CMGL: (0, 1, 2, 3, 4) and (in TEXT mode) + CMGL: ("rec unread", "rec read", "sto unsent ", "sto sent", "ALL") in TEXT mode
(+ CMGF = 1)
8 AT + CMGR
Read Message
PDU mode:
TEXT mode:
+ CMGR: "rec read", "+ 8613798290312", "", "13/12/: 38: 44 + 32"
Chinese text message:
+ CMGR: 0, "", 36
+ CMGR: "rec read", "+ 8613798290312", "", "13/12/: 48: 01 + 32"
9 AT + CMGS
Send Message Send Short Message
10 AT + CMSS
Send Message From Storage Send saved Short Messages
11 AT + CMGW
Write Message To Memory Write short Message