Pages: [1]   Go Down
Author Topic: ReceiveSMS example sketch  (Read 1566 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 4
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, 
I have some problems in receiving SMS message with the "ReceiveSMS" example sketch in the GSM library.
After the first SMS message, the programme does not receive any other messagge. I have to reset the programme in order to receive it.
Someone has had the same problem?  I am using an Italian SIM card in Italy.
thanks
Paolo
Logged


Madrid (Spain)
Offline Offline
Full Member
***
Karma: 0
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Could you activate debug mode replacing "GSM gsmAccess;" line with "GSM gsmAccess(true);"?. Post your serial output.
Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did what you suggest. This is the result:

SMS Messages Receiver
AT%13%
0 23>AT%13%%13%%10%OK%13%%10%%13%%10%Call Ready%13%%10%
AT+CGREG?%13%
23 54>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
54 85>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
85 116>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
116 19>AT+CGREG?%13%%13%%10%+CGREG: 0,1%13%%10%%13%%10%OK%13%%10%
AT+IFC=1,1%13%
19 36>AT+IFC=1,1%13%%13%%10%OK%13%%10%
AT+CMGF=1%13%
36 54>%19%%17%AT+CMGF=1%13%%13%%10%OK%13%%10%
AT+CLIP=1%13%
54 70>AT+CLIP=1%13%%13%%10%OK%13%%10%
ATE0%13%
70 81>ATE0%13%%13%%10%OK%13%%10%
AT+COLP=1%13%
81 87>%13%%10%OK%13%%10%
GSM initialized
Waiting for messages
AT+CMGL="REC UNREAD",1%13%
87 83>%13%%10%+CMGL: 9,"REC UNREAD","www.119.it","","2012/10/23 08:35:23+08"%13%%10%TIM ti informa - a tutela della tua privacy - che sono sta
Message received from:
www.119.it
TIM ti informa - a tutela della tua privacy - che sono state visualizzate informazioni sul tuo traffico telefonico nell'Area Clienti 119 Self Service.
END OF MESSAGE
AT+CMGD=9%13%MESSAGE DELETED
AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%AT+CMGL="REC UNREAD",1%13%


There are some SMS received from my Telephone company. Now I have unsubscribed this kind of SMS services. I must replay the test, but now I am traveling and I cannot try. Next days I will post the results.
thank-you
Logged


Offline Offline
Full Member
***
Karma: 4
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here I am
Attached you can find the log of the programm ReceiveSMS.

* putty.log (1.37 KB - downloaded 23 times.)
Logged


Pages: [1]   Go Up
Jump to: