Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SIM900 sms read and delete

Status
Not open for further replies.

zip

Junior Member level 3
Joined
Jun 8, 2010
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,467
I would like to wait in loop for sms message arrival on my SIM900 and when message is detected , read that message and delete it from the system.
What's bothering me is what if another message comes while I am working on this one (Unsolicited message info) and do delition.

What is proper algorithm to handle sms reading and deletion?
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,275
Helped
14,226
Reputation
28,713
Reaction score
12,920
Trophy points
1,393
Location
Bochum, Germany
Activity points
279,559
It's your decision if you want any unsolicited messages about SMS arrival. You can even have the SMS itself delivered in an unsolicited message instead of storing it to SIM card. We use this technique e.g. in TETRA terminals that don't have SMS storage to nonvolatile memory.

The default handling is storage to SIM card, respectively you won't miss it if you occasionally poll for unread messages. Or primarly rely on unsolicited delivery notification.
 

zip

Junior Member level 3
Joined
Jun 8, 2010
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,467
So if I undestood you right, I can get sms message as unsolicited info in whole (notification and message itself) without any query, just need to wait for available bytes to be read and process them?

Only thing I need to be sure is that my software reading com port be prepeared before messages come into the modem so I don't skip messages, right?

Tnx for helping out!

PS: I've found AT+CNMI command, but playing with options couldn't get it to output sms to screen, I work in text mode, maybe that is problem.
 
Last edited:

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,275
Helped
14,226
Reputation
28,713
Reaction score
12,920
Trophy points
1,393
Location
Bochum, Germany
Activity points
279,559
I don't use SIM900, but I according to the ATC manual, it should be possible with AT+CNMI.
 

zip

Junior Member level 3
Joined
Jun 8, 2010
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,467
That's it, BIGGGG TNX for this!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top