22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIM5218</strong> Serial <strong>AT</strong> Command Set<br />

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

<strong>AT</strong>+CMGSEX=[,][,, ,<br />

]Text is<br />

entered.<br />

<br />

If PDU mode(<strong>AT</strong>+CMGF=<br />

0):<br />

<strong>AT</strong>+CMGSEX=<br />

PDU is entered<br />

<br />

If text mode (<strong>AT</strong>+CMGF=1) and sending successfully:<br />

+CMGSEX: <br />

OK<br />

If PDU mode(<strong>AT</strong>+CMGF=0) and sending successfully:<br />

+CMGSEX: <br />

OK<br />

If sending fails:<br />

ERROR<br />

If sending fails:<br />

+CMS ERROR: <br />

Defined values<br />

<br />

Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default<br />

alphabet characters) are converted to characters of the currently selected TE character set, type of<br />

address given by .<br />

<br />

TP-Destination-Address, Type-of-Address octet in integer format. (When first character of is<br />

+ (IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.<br />

<br />

Integer type value indicating in the text mode (<strong>AT</strong>+CMGF=1) the length of the message body<br />

> (or ) in characters; or in PDU mode (<strong>AT</strong>+CMGF=0), the length of the actual TP<br />

data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length)<br />

<br />

Message Reference<br />

GSM 03.40 TP-Message-Reference in integer format.<br />

<br />

The segment number for long sms<br />

<br />

The total number of the segments for long sms. It’s range is from 2 to 255.<br />

NOTE In text mode, the maximum length of an SMS depends on the used coding scheme: For<br />

single SMS, it is 160 characters if the 7 bit GSM coding scheme is used; For multiple long sms, it is<br />

153 characters if the 7 bit GSM coding scheme is used.<br />

Examples<br />

<strong>AT</strong>+CMGSEX="13012832788", 190, 1, 2(TEXT MODE)<br />

> ABCD<br />

+CMGSEX: 190<br />

OK<br />

<strong>AT</strong>+CMGSEX="13012832788", 190, 2, 2(TEXT MODE)<br />

<strong>SIM5218</strong>_Serial _<strong>AT</strong>C_V1.36 116<br />

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!