Discussion in "Embedded GSM Development" started by    amit251291    Jul 19, 2014.
Sat Jul 19 2014, 04:59 pm
#1
hello
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, 10:45 am
#2
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

Information

Powered by e107 Forum System

Downloads

Comments

AngeloFoown
Sat Apr 13 2024, 12:17 pm
JamesLex
Sat Apr 13 2024, 05:23 am
RobertWah
Fri Apr 12 2024, 08:01 pm
solar_qcor
Fri Apr 12 2024, 08:38 am
Rosalvascuth
Thu Apr 11 2024, 06:07 am
WilliamAmazy
Wed Apr 10 2024, 10:13 pm
slm_pkPn
Wed Apr 10 2024, 08:43 pm
LaurenBramn
Wed Apr 10 2024, 02:08 pm