A complete set of AT commands for cdma sms cats and AT commands for Secondary Development of cdma sms cats

Source: Internet
Author: User
Tags control characters cmss

CDMA module text message

1. send text messages
Eg. Send the English Short Message "123abc" and use the corresponding ASCII code to send it.
At + wscl = // set to send an English text message OK
OK
At + cmgs = "13601193264" // different from the GSM module, the CDMA module must add a text message number
Quotation marks
123abc <Ctrl-z> // enter the content, and then press Ctrl + Z to send
+ Cmgs: 1
OK
Return Code :
+ Cmgs: N indicates that the message is sent successfully, and N indicates the serial number.
2. Send a Chinese text message
The Chinese text message sent by CDMA does not use the PDU format, but directly sends its Unicode code.
Eg. Send a Chinese Short Message "hello" whose Unicode code: 0x60a8 0x597d
At + wscl = 6, 4 <CR>
At + cmgs = "13600193264" <CR>
60a8597d <Ctrl-z>
Return code:
+ Cmgs: N indicates that the message is sent successfully, and N indicates the serial number.
Note: Program When sending data, it should be 0x60, 0xa8, 0x59, 0x7d. For short messages in Chinese, the control characters must also be represented by their uncode. The end of the message content is marked with an ending character, so its ending character should also be in unicode format. That is to say, this method cannot be used in the Super Terminal, because the <Ctrl-z> entered from the keyboard is not in unicode format and only ASCII code. The correct end character in the program should be 0x00 0x1a.
3. Likewise, the CDMA module can send Chinese characters, English letters, and numbers together, all of which are sent using the corresponding Unicode code.

Module read/write column Short Message

1. By setting at + cnmi, the short message will have different prompts
At + cnmi =, 0 // if the second parameter is set to 1
OK
At + cmgs = 13823372605
> Hello, how are you? // Enter the sent content and press Ctrl + Z to send it.
+ Cmgs: 3
OK
+ Cmti: "SM", 12 // receive the message + cmti:
At + cmgr = 12 // read the short message
+ Cmgr: "rec unread", "+ 8613823372605", "03/03/11, 15: 56: 25 + 00"
Hello, how are you?

OK

At + cnmi =, 0 // if the second parameter is set to 2
OK
At + cmgs = 13826672605
> Hello
+ Cmgs: 57
OK

+ CMT: "+ 8613826672605", "03/03/10: 21: 31 + 00"
Hello // receive the short message + CMT:, the content is displayed directly
Note: At + cmgr = <n> // read the nth Short Message

2. write short messages at + cmgw send at + CMSS
At + cmgw = 13826672605 // write short messages
> Nice to meet you! // Short Message Content
+ Cmgw: 1

OK
At + CMSS = 1 // send the first stored Short Message
+ CMSS: 83

OK
+ CMT: "+ 861386672605", "03/03/: 51: 40 + 00" // receive short message
Nice to meet you!

3. list short messages at + cmgl
At + cmgl = "all" // list all messages
+ Cmgl: 1, "Sto unsent", "13823372605 ",,
Nice to meet you1
+ Cmgl: 2, "rec unread", "+ 8613826672605", "03/03/13, 17: 07: 40 + 00"
Hello

OK

At + cmgl = "rec read" // list read messages in text format
+ Cmgl: 2, "rec read", "+ 8613826672605", "03/03/13, 17: 07: 40 + 00"
Hello

4. Delete short message at + cmgd
At + cmgd = <n> Delete the short message <n>
At + cmgd = delete all short messages that have been read
At + cmgd = delete all short messages that have been read and sent
At + cmgd = 1, 3 Delete all short messages that have been read, sent, and not sent
At + cmgd = delete all short messages
Note: Sometimes the short message fails to be sent. It may be because memory is full and can be deleted at + cmgd =.

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.