SIM300 interfacing with ATmega16 (Recieve SMS)

Status
Not open for further replies.

xenomorph117

Newbie level 1
Joined
Apr 27, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,289
Hello everyone,

Im trying to recieve SMS from SIM300 module by passing commands through ATmega16 and displaying it on the LCD. I can send AT+CMGR=<index> command to the gsm module but can only get the response as:

+CMGR: "REC READ","+919483486213",,"13/04/29,17:33:34+22"

instead of:

+CMGR: "REC READ","+919483486213",,"13/04/29,17:33:34+22"
<message body>

As you can see, I am successful in communicating with the GSM module but cannot parse the received message properly. I am unable to display the message body and only the aforementioned header is being displayed.

Kindly advise
 


Depends on how you read your result. If you are visualizing this on the LCD then I think something is wrong with your code. You are probably using a C function whose delimiter is the carriage return present after "13/04/29,17:33:34+22". I this you should paste your code anyway.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…