Posted on 2004-10-05
Could someone please explain the parameters (or arguments) that the AT+CMGI command takes? I'm trying to send and receive SMSes from a GSM modem (Falcom Tango) and that works fine using the AT+CMGI=1,1 to set notification on and AT+CNMI=3,2 to set the modem to text mode. But when I try to receive SMSes from my Nokia 6230 cellphone, I can read SMSes sent to it from itself, but not from another GSM modem. What my application does is scan through all the SMSes on the modem looking for any unread SMSes. It doesn't rely on events triggered by the serial port or anything like that. If I knew what the parameters for the AT+CMGI command are, I could maybe fix the problem. Basically, I don't need the modem to let me know when an SMS is received. I constantly read all SMS memory locations looking for unread SMSes. It must just store the SMS on either the phone's memory or on the SIM card. On that topic, how do I control that? And how can I determine how many SMSes the phone and the SIM card can store? If I'm going to go through all the SMSes, I have to know the upper limit... To read the SMSes at the moment Im using AT+CMGR=x where x is the SMS number. Is this reading the SMSes stored on the phone/modem or on the SIM card? How do I control that?
Any help will be greatly appreciated.