Multitech MultiModem Cell MTCBA-C1 User's Guide Page 120

  • Download
  • Add to my manuals
  • Print
  • Page
    / 135
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 119
Chapter 20 – Host Application Scenarios
Multi-Tech Systems, Inc. CDMA C1 AT Commands Reference Guide (PN S000478C) 120
SMS
Mobile Originated (MO) Messages
The AT+CMGS command is used to originate SMS messages. Up to 140 characters may be sent in a text
message. Note that a ctrl-Z terminates the message text entry. The Short Message Service Control Commands
section contains more information. For example:
at+cmgs="9195551212"
> hi, there.<ctrl-Z>
+CMGS: 150
OK
+WORG:
+WCNT: 6
+WEND: 29
It is recommended that you enable ASCII mode for text messages using the AT+WSCL command.
Sending Binary Data
Binary data can be sent as short messages using AT+CMGS command. Since the usual text entry terminator,
ctrl-Z, might be legitimate data, you define the message length in bytes in the AT+CMGS command. At the text
entry prompt, enter the bytes of the message. The message is sent when the number of bytes equal to the
message length has been entered.
at+cmgs="9195551212",10
> hi, there.
+CMGS: 151
OK
+WORG:
+WCNT: 6
+WEND: 29
It is recommended that you enable octet mode for binary messages using the AT+WSCL command.
Sending Text to Email Address
Many carriers support SMS-to-email gateways, allowing you to send short messages to an e-mail address.
To send a message to an email address, enter 6245 (this spells mail) in the Address field, enter the recipient's
email address in the beginning of the message field, followed by a space and then the text of the message.
Note: 6245 – SMS gateway number for most carriers.
Up to 140 characters may be sent in a text message. The count includes recipient‘s email address, space and the
message to be sent.
For example:
at+cmgs="6245"
>[email protected] hi, there.<ctrl-Z>
+CMGS: 150
OK
+WORG:
+WCNT: 6
+WEND: 29
Mobile Terminated (MT) Messages
The device reports the receipt of messages using the +CMT unsolicited response. The contents of the +CMT
unsolicited response and the disposition of the received short message itself are determined by the +CNMI
command. The message can be transmitted to the TE or can be stored in non-volatile memory on the device. For
example, to transmit a received message to the TE:
at+cnmi=2,2,2,1,0
OK
+WANS: 3
+WCNT: 6
+CMT: "9195551212","09/07/20,13:43:55",129,0,2,0,,10
hi there.
+WEND: 25
Page view 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 134 135

Comments to this Manuals

No comments