We have written an application that receives and send SMS messages via Nokia 5110/Wavecom attached to COM port. Whenever there is a new SMS message coming we get an indication from phone to our application as +CMTI: "SM",1 for memory location numbered 1. So we read that SMS from SIM using AT command AT+CMGR=1. Now my question is, while I am reading from SIM, if another message arrives at SIM at same moment and I get another indication, what will happen? Will my reading operation be discarded or SMSC will wait for my reading operation to finish. My program is multithreaded in sense that we uses separate threads for reading from SIM, sending outbound SMS messages.
I will repeat my question. What happens if I am reading from SIM and I get another message indication or what happens when I issue AT+CMGR=1 and while NOKIA is transferring data to my application, I get another +CMTI?