GPRS Shield Receiving SMS

Hi,
I have not much experience in programming microcontrollers, this is why I have a problem.
I bought the GPRS shield and I managed to make calls and send some SMS via terminal using your sketches from the garden.
But now I am trying to receive and interpret incoming SMS.
How can I configure the shield to write the text of an incoming sms to the terminal?

Here is an example of the terminal output:

"
<0>ÿÿÿÿÿÿÿÿ
RDY

+CFUN: 1

+CPIN: READY

Call Ready
AT

OK
AT+CMGF=1

OK

+CMT: “+49xxxxxxxxxx”,"",“11/08/27,02:40:24+08”,145,32,0,0,"+497
"

The text I sent from my phone was “Test”.

Please can anyone help me?

Thank you

Ryanthusar

I’m no expert but, Have you tried AT+CMGL (pg 101 garden.seeedstudio.com/images/a/ … _V1_00.pdf )

Thank you for your reply jbaut.

Here is an example of what happens after sending "AT+CMGL=“REC READ” to the modem:

"Call Ready
AT+CMGF=1

OK
AT+CMGL=“REC READ”

+CMGL: 1,“REC READ”,"+49xxxxxxxxxx","",“11/08/26,22:53:14+08”,1
n
+CMGLE9",h
+CMGL: E9,6,p
+CMGL:E9,11eiifwsseGD614,an
"
I would like to get the messages itself shwn in plain text for interpreting them in an arduino sketch.

My problem is solved.

First of all the buffer size declared in NewSoftSerial.h was too small.
After I changed it from 64 to 128 I was able to read the received SMS using i.e. “AT-CMGR=1”

To write received SMS directly to the terminal I used the following comands:

AT+CMGF=1

and

AT+CNMI=3,2,2,1,0

the result is shown here:

<0>ÿÿÿÿÿÿÿÿ
RDY

+CFUN: 1

+CPIN: READY

Call Ready
AT

OK
AT+CMGF=1

OK
AT+CMGR=1

+CMGR: “REC READ”,"+49xxxxxxxxxxx","",“11/08/26,22:53:14+08”,145,32,0,0,"+491710760000",145,17
Dies ist ein Test

OK
AT+CMGR=2

+CMGR: “REC READ”,"+49xxxxxxxxxxx","",“11/08/26,23:00:05+08”,145,32,0,0,"+491710760000",145,14
Noch ein Test?

OK

+CMTI: “SM”,10
AT+CMGR=10

+CMGR: “REC UNREAD”,"+49xxxxxxxxxxx","",“11/08/27,13:52:46+08”,145,32,0,0,"+491710760000",145,26
Klappt es nun wie es soll?

OK
AT+CNMI=3,2,2,1,0

OK

+CMT: “+49xxxxxxxxxxx”,"",“11/08/27,13:57:01+08”,145,32,0,0,"+491710760000",145,10
Und jetzt?

I hope this helps others who have the same problems as I had.

How are you connecting? hardware or serial?

The GPRS shield is connected via D7 and D8 to arduino.
The sketch from Step 1 of the GPRS-wiki is running on the arduino.
The arduino is connected via USB to my PC running windows 7.
I use Ba@y++ Terminal v1.9b.

I hope I understood you right?

You are doing exactly right.

Thanks for the info, but how then can your receive a list of all the SMSes on the SIM? Even 128/256 buffer size is not enough? Is there another way to this? Will it help if you use the arduino’s serials?

Regards

T