Multi-Tech Systems MTCBA-G-U-F4 SMS Examples, Read a Stored Message, Delete a Stored Message

Page 27

Chapter 3 – Using Your Wireless Modem

View a List of Stored Messages. Type AT+CMGL=x <press Enter> For x, substitute one of the following:

"REC UNREAD" Shows received unread messages. "REC READ" Shows received read messages. "STO UNSENT" Shows stored unsent messages. "STO SENT" Shows stored sent messages.

"ALL" Shows messages.

The modem will respond AT+CMGL: 1,"REC UNREAD","8585551212",1...

The modem will continue until all UNREAD messages, numbers, and index number are listed.

Read a Stored Message.

Type AT+CMGR=x <press Enter>

The modem may respond with +CMGR: "REC READ", "8585551212", ......

Note: The x represents an index location.

Delete a Stored Message.

Type AT+CMGD=x,n <press Enter>

If you want to delete one message at a time, do not enter a value for n.

For n, substitute one of the following: 0 Delete message at location <include the index number> 1 Delete all READ messages.

2 Delete all READ and SENT messages.

3 Delete all READ, SENT, and UNSENT messages.

4 Delete ALL messages.

The modem will respond OK.

Note: The x represents an index location. The n stands for the type of messages to delete.

SMS Examples

Send Example

Send an SMS message to another SMS compatible device

at+cmgf=1 (set to text mode)

OK

at+cpms="SM","SM" (set memory storage when writing and sending SMS messages) +CPMS: 0,50,0,50

OK

at+cmgs="7632273726" (send message to the number specified in quotes)

>TEST message ONE. (Type message after the > symbol and hit <CTRL + Z> to send the message) +CMGS: 52

OK

Receive Examples

Receive Example 1: Receive SMS messages in text mode by saving to SIM memory – Notification via +CMTI unsolicited response code:

at+cmgf=1 (set to text mode)

OK

at+csms=0 (set to Phase 1) +CSMS: 1,1,1

OK

at+cnmi=2,1,0,0,0 (set to display +CMTI indication when SMS is received)

OK

at+cpms="SM","SM" (set the read and write storage of SMS to SIM) +CPMS: 0,50,0,50

OK

Multi-Tech Systems, Inc. MultiModem GPRS USB Wireless Modem User Guide

27

Image 27
Contents MultiModem Gprs Technical Support Country By Email By Phone Revision History Date DescriptionTrademarks and Logos World HeadquartersContents Product Description FeaturesSafety Package Contents Functions GSM/GPRS Modes General SpecificationsElectrical Specifications RF SpecificationsAntenna Specifications AT Command Reference GuidesInterfaces Connect the Antenna and USB Cable Activate Your Wireless AccountPhone Numbers for the Wireless Modem Insert the SIM Card into the HolderThis is an optional step Attach the Modem to a Flat SurfaceInstall the Modem Driver IntroductionPreliminaries Activation and Installation Activation and Installation Installing driver software… screen appears Installation of the Modem Click Close. The installation of drivers is now complete Installing the Serial Port Installing the Modem Driver in Windows Server 2008, XPActivation and Installation Page Select No, not this time and then click Next Installing the Modem DriverPage Page Completing the Found New Hardware Wizard screen appears Click Continue AnywayExample AT+WMBS=4,0. Press Enter Phone Number for the Wireless ModemExamples of Useful AT Commands Changing the Gprs BandEstablishing a Voice Call Verifying Signal StrengthChecking Network Registration and Roaming Status Checking the Modem’s IdentityUsing Short Message Services SMS Establishing a Circuit-Switched Data CSD ConnectionAnswering a Circuit-Switched Data CSD Connection Send an SMS message to another SMS compatible device SMS ExamplesRead a Stored Message Delete a Stored MessagePage Internet Access Connecting to the Gprs Network for Internet AccessRequirements Create Your Dial-Up Connection in Windows Vista, XP, 2003, Disconnecting the ConnectionSituation a The modem does not answer Troubleshooting ExamplesSolutions for ‘no connection through serial link’ situation Solutions for no carrier messageFrequently Asked Questions July How do I send an SMS message to an email account?
Related manuals
Manual 32 pages 23.62 Kb