Ads
Tom's Guide > Forum > Mobility Technologies > GSM > AT Commands AT+CMGS" SEND SHORT MESSAGE"

AT Commands AT+CMGS" SEND SHORT MESSAGE"

Forum Mobility Technologies : GSM AT Commands AT+CMGS" SEND SHORT MESSAGE"

Related Content
Can't find your answer?
Ask!
Word :    Username :           
 
- 0 +

hi friends

i am begineer in using at command.
till now i am suceeded in reading sms form sim memory and succeded in receiving the sms.

now i stuck with at+CMGS and AT+CMGC.
"
Write Command
If text mode (seeAT+CMGF=1)
AT+CMGS=<da>[, <toda>]<CR> Text can be entered. <CTRL-Z>/<ESC>
Response(s)
+CMGS: <mr>[, <scts>]
OK

"

What does this "da" and "toda" means .

plus where can i find good stuff regarding AT SMS commands.

ranjha

Reply to Ranjha
Register or log in to remove.
- 0 +

the simplest way to send SMS is just as follows:

Step (1):To set the format to text
AT+CMGF=1, then press Enter

Step (2):Set the receiver HP number
AT+CMGS=0123456789, then Enter

Step (3):Set the Message
Just key in the message then Ctrl+Z when done.

Reply to leonghz

Quote :

hi friends

i am begineer in using at command.
till now i am suceeded in reading sms form sim memory and succeded in receiving the sms.

now i stuck with at+CMGS and AT+CMGC.
"
Write Command
If text mode (seeAT+CMGF=1)
AT+CMGS=<da>[, <toda>]<CR> Text can be entered. <CTRL-Z>/<ESC>
Response(s)
+CMGS: <mr>[, <scts>]
OK

"

What does this "da" and "toda" means .

plus where can i find good stuff regarding AT SMS commands.

ranjha



buddy.. here da simply means "dastination address" ur mobile number
toda means "type of destination" eg: national,international,ISDN,Unknown etc...

Reply to super_byte

The following documents explains how to send SMS using at commands ( also unicode, other VP paramaters etc ):

http://www.smssolutions.net/tutorials/gsm/sendsmsat/

Reply to shibbyonline

If you don't have a lot of time it could be a good idea to use an SMS gateway, such as the Ozeki SMS Sending and SMS receiving Gateway available at http://www.ozekisms.com/sms_sending_software/index.php, because it does a lot of things that is very hard to implement: character conversion to unicode SMS messages, GSM 7 bit, segmentation and reassembly for multipart SMS messages with 8 bit reference numbering and 16 bit reference numbering, message delivered to network report, message delivered to handset report, message delivery failed report, etc. Not to talk about long term upgrade.

Tipp: In the trial version you can enable low level communication logging in the GSM modem connection, which gives you the ability to see what the software does. How it encodes the PDU-s. This is a good way to do some reverse engineering to see how to send SMS PDU's with AT+CMGS commands.

If you do a system now with a GSM modem, it might be possible that you will have to upgrade in the long term to higher capcity IP SMS connection, such as SMPP sms sending, UCP sms sending or CIMD2 sms sending. Remember, a GSM modem can only send 10 SMS meessages per minute, while an IP SMS connection will allow you to send 3000 or more SMS messages per minute. If you use an SMS Gateway, this upgrade can be done with a simple configuration.

Reply to willamike

the simplest way to send SMS is just as follows:

Step (1):To set the format to text
AT+CMGF=1, then press Enter

Step (2):Set the receiver HP number
AT+CMGS=0123456789, then Enter

Step (3):Set the Message
Just key in the message then Ctrl+Z when done.



here wat is that hp number.. is that phone number..?

Reply to mohamed bilal

what is the syntax of at*psstk="get input"?

AT*PSSTKI=1
OK
AT+CMGF=1
OK
AT*PSSTK="SETUP MENU",1,1
OK

*PSSTK: "END SESSION"
AT*PSSTK="GET ITEM LIST",8
*PSSTK: "GET ITEM LIST",1,1,4,"Top-Up Customer",0,0,0

*PSSTK: "GET ITEM LIST",2,2,4,"Top-Up Retailer",0,0,0

OK
AT*PSSTK="MENU SELECTION",1
OK

*PSSTK: "SELECT ITEM",1,4,"Top-Up Customer",0,0,1,0,0,6
AT*PSSTK="GET ITEM LIST",6
*PSSTK: "GET ITEM LIST",1,1,4,"Balance Transfer",0,0,0

*PSSTK: "GET ITEM LIST",2,2,4,"Balance Inquiry",0,0,0

*PSSTK: "GET ITEM LIST",3,3,4,"Last Transaction",0,0,0

*PSSTK: "GET ITEM LIST",4,4,4,"Check Trans ID",0,0,0

*PSSTK: "GET ITEM LIST",5,5,4,"Change PIN",0,0,0

*PSSTK: "GET ITEM LIST",6,6,4,"U-Top Up Help Line",0,0,0

OK
AT*PSSTK="SELECT ITEM",1,2,0,0
OK

*PSSTK: "GET INPUT",1,0,4,0,4,"Enter Customer Mobile Number",0,0,255,"",11,11,0


*PSSTK: "GET INPUT",1,0,4,0,4,"Enter Top-Up Amount",0,0,255,"",2,4,0
AT*PSSTK="GET INPUT",1,4,"03425100762",0,0
ERROR

plz tell me the exact syntax of get input so that error didnot occur

Thanks

Reply to usman_aamsons

I have written very detailed article on how to send long SMS using AT Commands.

Please refer [url=http://hiteshagja.com/send-long-sms/ ][/url]

Reply to hiteshagja
TomsGuide.com: Over 800,000 questions and answers to address all your high-tech questions. Sign up now! Its free!
Tom's Guide > Forum > Mobility Technologies > GSM > AT Commands AT+CMGS" SEND SHORT MESSAGE"
Go to:

There are 27 identified and unidentified users. To see the list of identified users, Click here.

Tom's Guide around the World