EmbDev.net

Forum: µC & Digital Electronics Send SMS via GSM-Modem that is automatically saved by recipient


Author: Bill B. (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi,

I'm currently using the following commands to send am SMS (from µC + GSM 
Modem)

AT+CMGF=1
OK
AT+CSCS="GSM"
OK
AT+CSCA="+436640501",145 (für A1)
OK
AT+CSMP=17,167,0,240
OK
AT+CMGS="xxx" //xxx stands for my phone number

This code works, but when I get the SMS on my phone I am asked if I want 
to save this message. Usually when I get a SMS it is stored 
automatically, so I think I might have missed or set a configuration 
wrong in the code.

THX in advance

Author: Zulu (Guest)
Posted on:

Rate this post
0 useful
not useful
>I might have missed or set a configuration wrong in the code

This is possibly true. Would you please read the docs and tell us?
If you could, by oppurtunity, take notice of the type and make of the 
GSM modem, and tell us, we could restrict our answers from considering 
"all" modems to the one you use. Its just a proposal. My keyboard is 
near end of lifetime. ;-)

Author: Bill B. (Guest)
Posted on:

Rate this post
0 useful
not useful
I'm using a SIM300D, but I think that's irrelevant because the 
AT-commands are standardized.

In the AT-command guide and the data- and  applicationsheets I found 
nothing that helped me understand that behaviour.

I used the the example SMS text application from the manual.

Author: Mauricio (Guest)
Posted on:

Rate this post
0 useful
not useful
Use AT+CSMP=17,167,0,241 instead of AT+CSMP=17,167,0,240 and that´s all, 
with 240 value you´re sending a notification and not a SMS Message.

Hope this helps.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.