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 4: Using the <strong>Commands</strong><br />

Sending Messages (Using <strong>AT</strong>+CMGS)<br />

Sends an SM from the H24 to the network in TEXT mode, the header parameters will be set<br />

according to CSMP settings. In text mode (+CMGF=1):<br />

<strong>AT</strong>+CMGS="054565028" //Writing a message to be sent to specified destination address<br />

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

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

+CMGS: 238<br />

//Message successfully sent. Returns the Message <strong>Reference</strong><br />

OK<br />

<strong>AT</strong>+CMGS="+97254565028",145 //Writing a message to be sent to specified destination address<br />

>message text <br />

+CMGS: 239<br />

//Message successfully sent. Returns the Message <strong>Reference</strong><br />

OK<br />

Deleting Messages (Using <strong>AT</strong>+CMGD)<br />

<strong>AT</strong>+CMGD=179<br />

//Delete a message using its index<br />

OK<br />

<strong>AT</strong>+CMGR=179<br />

//The message index is now empty<br />

+CMS ERROR: invalid memory index<br />

Delete a group of messages. Note that deletion of a number of messages may take a short time.<br />

<strong>AT</strong>+CMGD=1, 1<br />

//Delete all read messages<br />

OK<br />

<strong>AT</strong>+CMGD= 1,2<br />

//Delete all read and sent messages<br />

OK<br />

<strong>AT</strong>+CMGD= 1,3<br />

//Delete all read, sent and unsent messages<br />

OK<br />

<strong>AT</strong>+CMGD= 1,4<br />

//Delete all messages<br />

OK<br />

April 15, 2010 H24 - <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong> <strong>Manual</strong> 4-11

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

Saved successfully!

Ooh no, something went wrong!