Discussion in "Embedded GSM Development" started by    amit251291    Jul 19, 2014.
Sat Jul 19 2014, 11:29 AM
I want to send and receive sms through gsm modem. I am using avr 128. I am able to send messages but I am not getting how should I receive a message.
To read a message I need to send AT+CMGR=1. This will read the first message. But to read that I need to read response of this command i.e. in turn I need to read UBR. Now the response of this command is big. so how should I read it ?? Also how should I take only message part from this response ??
How should I poll to check whether a message has arrived or not ??

please suggest me some good tutorial/code snippet / actual flow which will explain my doubts and help me to complete my code!
Mon Jul 21 2014, 05:15 AM
When you write data, it is written to UDR byte by byte same way when you are reading you need to read from UDR byte by byte and then store in an array. thats how you read it.

Try a search in forum for reading SMS from gsm modem you will find lot of examples. And there are many project based on 8051 for GSM modems which you can easily use for AVR as they are in C.

[Topic moved to Embedded GSM Development Forum]

Get Social


Powered by e107 Forum System


Mon Mar 01 2021, 10:00 PM
Olivia Johnson
Citibank expects Bitcoin to hit USD$300,000 by end of this year.



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 99, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123