SMS message index | Telit Cinterion IoT Developer Community
June 11, 2015 - 7:39pm, 3598 views
We are using the BSG2 and need to process the incoming SMSes one at a time.
The read SMS AT command (AT+CMGR) ***** an index number (its location value) for the message that is being queried. However, there does not appear to be an AT command that will give a list of indices (location values) to the messages that have been received but have not been read yet.
The available AT command AT+CMGL=REC UNREAD provides unread messages with the index number, message data, originating address, etc. We need to just get the index numbers without the other detail so we can process the incoming messages independently. Is this supported and, if so, how is it done?
Aure you using TEXT **** or PDU ****?
at+cmgl=4 or AT+cmgl="all" will list all the stored SMS, depends of the **** your are using
Pay attention to the setup of the comand AT+CPMS, that's where you are storing the incomming SMS.
Somewhere over the rainbow!!! Looking for the Oz Land!!!
Maybe getting notifications about each incoming short message would be interesting for you.
Please check the AT+CNMI command for that (for example AT+CNMI=2,1).
simple SMS receiving can be done like this
once you get the receiving SMS URC you can fetch the SMS like this:
from time to time you need to delete the old SMS in store: