Seeed-Studio / GPRS_SIM900

library for GPRS shield with sim900 module.
MIT License
138 stars 96 forks source link

Not able to read sms using code #16

Closed thoms6johny closed 6 years ago

thoms6johny commented 7 years ago

It never goes further than this statement on the serial moniter. gsm

lanselambor commented 7 years ago

@thoms6johny If you can send SMS then you can read SMS, try both two examples.

corn-flour commented 7 years ago

I am also experiencing the same problem. I have sent the command "AT+CNMI=2,2,0,0,0" and have changed the baud rate to 19200 (which works fine when I use it to call, receive calls or send sms). I can read the message in the serial using uart to usb, but I cannot read SMS using the example code, either the loophandle or the smsread one. Calling, receiving calls or sending sms work fine. image .

Seedler1981 commented 7 years ago

I am also having the same problem. SMSRead code intermittently works. There seems to be no reason to it. Sometimes it sees the messages, but most times it does not. The messages are definitely there because if I just use AT commands through serial debug, everything works fine, and messages can be seen and received. I believe it is something to do with the IsMessageUnread function in GPRS_ShielsArduino.cpp. It does not seem to be indexing messages, I think. Any ideas?

ortegafernando commented 6 years ago

see https://github.com/Seeed-Studio/GPRS_SIM900/issues/19