" as a response from modem , after i enter text to message, i terminated it w click to read..." />
 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World of Microcontrollers & Microprocessors :: Forums :: GSM Discussion :: Embedded GSM Development
 
<< Previous thread | Next thread >>
sending SMS using GSM module & Microcontroller
Page 1 of 3    [1] 2 3
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage, majoka
Author Post
mangesh24
Sat Sep 24 2011, 06:19PM
Registered Member #35678
Joined: Sat Sep 24 2011, 05:59PM
Location (Home Town): london
Posts: 3
Hi friends,
I am trying to send SMS using GSM modem, after i send destination mobile number I am receiving "\r\n> " as a response from modem , after i enter text to message, i terminated it with "0x1A" character, further i am getting response as "\r\n" from the modem but not \r\nOK\r\n. Can anyone tell me the possible error?
for what time i should wait for receiving the ok response?
Please help
Back to top
majoka
Sun Sep 25 2011, 08:17AM

Registered Member #22104
Joined: Thu Sep 10 2009, 03:04PM
Location (Home Town): Wah Cantt, Pakistan
Posts: 3900
@ mangesh24
ru using sim300dz modem or any other
ru checking it on hyper terminal or doing with controller
if using controller post code
Back to top
mangesh24
Mon Sep 26 2011, 05:13PM
Registered Member #35678
Joined: Sat Sep 24 2011, 05:59PM
Location (Home Town): london
Posts: 3
@majoka, Thanks for the reply.
While debugging this problem, i found one another problem with getting connected to wireless network,
If i send the AT+CRQ command to ask signal strength, i got the response as "error: operation not allowed", currently i am trying to solve this issue, also i get CREG response as 0,0 so might be i need to do more for establishing the connection with GSM network(The setting is Auto connect by-default).
Please help me more on this.
Thanks for the reply.
Back to top
mangesh24
Mon Sep 26 2011, 05:16PM
Registered Member #35678
Joined: Sat Sep 24 2011, 05:59PM
Location (Home Town): london
Posts: 3
@majoka,
Sorry,forgot to answer your questions,
I am using Sierra wireless GSM modem SL8082 family with micro-controller.
Back to top
kirangowle
Tue Sep 27 2011, 05:53AM

Registered Member #26972
Joined: Thu Mar 18 2010, 09:18AM
Location (Home Town): Bangalore, Karnataka
Posts: 587
mangesh24 wrote ...

@majoka,
Sorry,forgot to answer your questions,
I am using Sierra wireless GSM modem SL8082 family with micro-controller.


All GSM modems are wireless.
Do you have datasheet/brochure of SL8082. i am not finding it.
Before connecting to controller did you checked response on hyper terminal?
Back to top
majoka
Tue Sep 27 2011, 06:44AM

Registered Member #22104
Joined: Thu Sep 10 2009, 03:04PM
Location (Home Town): Wah Cantt, Pakistan
Posts: 3900
when u type CREG
it should reply as
http://www.shapeshifter.se/2008/04/30/list-of-at-commands/
Back to top
dspicmicro
Wed Sep 28 2011, 05:10AM

Registered Member #34009
Joined: Thu May 12 2011, 08:33AM
Location (Home Town): maran
Posts: 45
hello sir;
sir i have completed receiving SMS through GSM module(sim300) .now i want to send SMS to any other mobile from my GSM module .plz help me in the sense at command to send sms (any data) to any other mobile.


Thankyou!
Back to top
kirangowle
Wed Sep 28 2011, 05:23AM

Registered Member #26972
Joined: Thu Mar 18 2010, 09:18AM
Location (Home Town): Bangalore, Karnataka
Posts: 587
Hi,
Which controller are you using?
Test this in your hyper terminal first.
AT+CMGS="9845XXXXX"(ENTER)
>Type your msg here and press ctrl+z to send the msg.

The same thing you implement in your design.
Share your code for more understanding.
Back to top
majoka
Wed Sep 28 2011, 07:48AM

Registered Member #22104
Joined: Thu Sep 10 2009, 03:04PM
Location (Home Town): Wah Cantt, Pakistan
Posts: 3900
@ dspicmicro
follow kiran suggestion
also same logic is in controller as well as on hyper terminal
Back to top
bbld
Wed Dec 14 2011, 10:00PM
Registered Member #36597
Joined: Wed Dec 14 2011, 09:42PM
Location (Home Town): vietnam
Posts: 7
try this code,hope it helps
void send_sms(char phonE[15],char *m)
{

fprintf(SIM300,"AT+CMGS=");
putc(34);//char "

fprintf(SIM300,phonE);
putc(34);//char "

putc(13);//enter CR
delay_ms(1000);//waiting for char ">"
fprintf(SIM300,m);
delay_ms(1000);
putc(26);//CTRL+Z => start send message

}
Back to top
Page 1 of 3    [1] 2 3  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

© 2010 Rickey's World
Render time: 0.0723 sec, 0.0085 of that for queries. DB queries: 69. Memory Usage: 2,900kB