Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reading messages from GSM modem

Status
Not open for further replies.

kumarprabhatn

Newbie level 4
Joined
Feb 19, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,324
Hi there.. I m planning to use Atmel AVR µC to interface with GSM modem.. Message is sent from a cell phone to GSM modem in text mode.. Now all i wanted to know is how does µC reads it.. I know that AT+CMGR=1 reads messages.. and reply recieved should be +CMGR: "REC READ","+504860XXX",,"04/02/24,15:03:20-00"
Message OK
But how to read it using µC serially using RS232.. I mean, when I give command AT+CMGR=1, is {+CMGR: "REC READ","+504860XXX",,"04/02/24,15:03:20-00"
Message OK} entirely sent serially to µC or only the message ??? So does that mean that after copying the data recieved serially, to read the actual message I must increment memory counter by 57(decimal) to reach address pointing to the message??? Please reply.. its urgent..
Thanks..
 

It's basically necessary to decode the responses to AT commands (as well as unsolicited responses, if you have enabled them in your modem communication). I strongly suggest, to decode the responses rather than just skipping a fixed number of characters, cause the field length may be variable. Also you may observe a different count of white spaces and other detail differences between modem manufacturers.

Cause it's a common topic, you should be able to find a lot of SMS AT command sample code at the internet.
 
i am facing the same problem.. i hope that u have figured out its solution. please help me. i want to read a sms from controller decode it and then according to the received message, control corresponding attached devices.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top