Re: GSM modem interfacing



abhay wrote:
hi,i m interfacing gsm modem to my microcontroller.i need to send sms
through it.
i am using AT commands for that.the command to send sms (AT+ CMGS)
terminates with
ctrl-Z.now in my program i hav tried all ways to send ctrl-Z at end of
my sms.but it takes this as
a character or string only.also i tried with ascii value of ctrl-Z but
of no use.

i am able to see the transmitted commands on hyper-terminal through
serial interface & also on serail window while debugging.
the commands are as follows with 2ms delay between each of them.

AT , AT+CMGF = 1, AT+CMGS = mobile no. , "message to be sent " ctrl-Z /
26 / ^Z


plz suggest some way.suggestions are also invited if you suspect some
other problem .

Do you send [CR][LF] at the end of each line?
Also, try this before sending messages: AT+CSMP=17,167,0,0[CR][LF]
What answers do you get from modem for each command? Why don't you try
first to introduce commands manually from a Hyperterminal? It would be
of much help.

Adrian

.



Relevant Pages

  • Re: how to send ctrl-Z in C language - modem interfacing
    ... i am using AT commands for that.the command to send sms ... ctrl-Z.now in my program i hav tried all ways to send ctrl-Z at end of ... And, critically, do this on a binary stream, not on a text stream. ...
    (comp.lang.c)
  • how to send ctrl-Z in C language - modem interfacing
    ... hi,i m interfacing gsm modem to my microcontroller.i need to send sms ... i am using AT commands for that.the command to send sms ... ctrl-Z.now in my program i hav tried all ways to send ctrl-Z at end of ...
    (comp.lang.c)
  • GSM modem interfacing
    ... hi,i m interfacing gsm modem to my microcontroller.i need to send sms ... i am using AT commands for that.the command to send sms ... ctrl-Z.now in my program i hav tried all ways to send ctrl-Z at end of ...
    (comp.arch.embedded)
  • Re: how to send ctrl-Z in C language - modem interfacing
    ... i am using AT commands for that.the command to send sms ... ctrl-Z.now in my program i hav tried all ways to send ctrl-Z at end of ...
    (comp.lang.c)
  • Apple Script - Terminal to SMTP
    ... Can I launch an AppleScript that then launches terminal to run a series of commands against my mail server? ... -- The full stop terminates the session to the server. ...
    (uk.comp.sys.mac)