MarcoMartines / GSM-GPRS-GPS-Shield

GSM/GPRS & GPS Shield Library for modules using SIM900/SIM908
GNU General Public License v2.0
208 stars 152 forks source link

AT+CMGR=1 returns only headers #30

Open YokiToki opened 8 years ago

YokiToki commented 8 years ago

Hey there! I enable messages about new SMS

AT+CNMI=2,2,0,0,0

OK

and when received sms, output like this.

+CMT: "+79XXXXXXXXX","1","15/09/23,01:34:03+24"
Test

But when I read message, output only before <CR><LF> I don't see text of message.

AT+CMGR=1

+CMGR: "REC READ","+79XXXXXXXXX","1","15/09/23,00:34:17+24"

AT+CMGL="ALL"

+CMGL: 1,"REC READ","+79XXXXXXXXX","1","15/09/23,00:34:17+24"
+CMGL: 2,"REC READ","+79XXXXXXXXX","1","15/09/23,01:34:03+24"

I use following code for test this. SMSGSM.GetSMS and SMSGSM.GetAuthorizedSMS receive only phone number without sms text.

I use this shield: _57

AT+GSV

SIMCOM_Ltd
SIMCOM_SIM900
Revision:1137B05SIM900M64_ST_ENHAN