14.03.2015 Views

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3: <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong><br />

+CMGS, Send SM to Network<br />

This command sends an SM from the H24 to the network. The message reference value is<br />

returned to the H24 upon successful delivery of the message.<br />

Valid will be any value between 128-255.<br />

The header parameters in TEXT mode will be set according to CSMP settings.<br />

Note: Any character sent by the TE to the H24 before H24 has reported a result of <strong>AT</strong>+CMGS<br />

operation, will abort <strong>AT</strong>+CMGS command execution. However, if SMS was already sent<br />

to network and sending operation was successful, the result of operation "+CMGS "<br />

will be reported by H24.<br />

If after aborting <strong>AT</strong>+CMGS command execution and before result of operation was<br />

reported by H24, a second <strong>AT</strong>+CMGS command is executed, then the result of the second<br />

<strong>AT</strong>+CMGS operation only will be reported by H24.<br />

Command Type Syntax Response/Action Remarks<br />

Set<br />

If text mode (+CMGF=1):<br />

+CMGS=[,]<br />

text is entered<br />

If PDU mode (+CMGF=0):<br />

+CMGS=<br />

PDU is entered<br />

+CMGS: <br />

+CMS ERROR: <br />

The Set command<br />

validates the input<br />

parameters, sends the<br />

SM to network and<br />

reports the result of<br />

the operation to the<br />

H24.<br />

The following table shows the +CMGS parameters.<br />

Table 3-48: +CMGS Parameters<br />

<br />

<br />

<br />

<br />

<br />

Description<br />

Destination address in quoted string. This field contains a single MIN number.<br />

Type of DA. Value between 128-255 (according to GSM 23.040, 9.1.2.5). If this field<br />

is not given and first character of is '+' , will be 145, otherwise 129.<br />

Size of message in PDU mode format, in octets, excluding SMSC data.<br />

Sent message reference number.<br />

PDU Message header and contents in PDU mode format. See description in Table 3-49.<br />

Example<br />

<strong>AT</strong>+CMGS="064593042",129<br />

>This is the message body // ends the prompt text mode and returns to<br />

regular <strong>AT</strong> command mode<br />

OK<br />

<strong>AT</strong>+CMGF=0<br />

OK<br />

<strong>AT</strong>+CMGS=24<br />

>079179521201009511FF0B917962543940F20008001400410042004300440045 <br />

+CMGS: 128<br />

OK<br />

April 15, 2010 H24 - <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong> <strong>Manual</strong> 3-85

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!