1

Topic: sim800/900

Actually a question on SIM800L.
How to learn number next unread ?
I so understand a unique variant - simply to be transited on all possible range of numbers and to read sms command "AT+CMGR xxx, 0" from 1 to ... And how many they can be?
Still it is possible to listen uart, but it is not my case, here a little differently logic in the code, and it is unreliable. Suddenly I will send the message and I will pass during this moment the notification message?

2

Re: sim800/900

It is possible to request all list of messages, text kilobytes come to the answer a continuous array with numbers for cmgr

3

Re: sim800/900

niXto
Yes, on AT+CMGL = "ALL", but that of free at all is a lot of storage. As a result to read all it is unreal, there is no place and if to read a part - that is chance to pass number  absolutely.

4

Re: sim800/900

If there not  it is possible in   all text transferred by the modem, ten RAM byte suffices smile

5

Re: sim800/900

niXto
That is possible in   all text transferred by the modem, ten RAM byte suffices
And how?
In general that I made an error above certainly - it is possible to read quite the first byte 50, there there will be number sms. It suffices to read it and to delete then.

6

Re: sim800/900

The title has rigidly given format, therefore the window filter catch numbers
it is necessary to delete from storage of the modem since there and at excess of a limit it them simply does not accept restriction from a network at once

7

Re: sim800/900

niXto
Since there and at excess of a limit it them simply does not accept restriction from a network
And how many  it can accept? He keeps them at itself(himself) in the memory?
Strange, on
alexey_public
AT+CMGL = "ALL"
Produces only OK and everything, nevertheless  to it leave, it sends them.

8

Re: sim800/900

It is necessary still by means of AT+CPMS to select storage to which are written and from which are read SMS.

9

Re: sim800/900

Maxz
Very interesting command:rotate:
I so understand for operation without saving on this a card it is necessary to select only AT+CPMS = "ME", "ME", "ME"?

10

Re: sim800/900

Yes, but it is necessary to consider that storage of the unit is restricted, if I correctly remember, 10 . Therefore, if exchange  frequent, it is desirable  at once on arrival unsolicited result code +CMTI: <mem>, <index> and to delete.

11

Re: sim800/900

Maxz
I remember, 10 .
Normally. At me is easier - sms are read out continuously and at once are deleted smile All the same in a basis cycle there is almost nothing to be engaged.