Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys now i am in a SMS project. I need to send and receive SMS through modem. I done COM port opening module and SMSSending module.But i cannot find how to read sms from the modem and also i need to notify my application when the SMS is received.I don't know how to achieve this. If any one know guide me....

Thanks in advance
ganesh_IT
Posted
Comments
Sandeep Mewara 16-Feb-11 1:37am    
Tried Google?
ThatsAlok 16-Feb-11 3:21am    
yeap google is good options.. however hardware manual too

Have you tried modem manual for same. this is quite hardware specific programming. only hardware manual can let you know who it support sms reading/writing and notification.

since you are using old COM Port..AT command list is different for different hardware.
 
Share this answer
 
i am also struck up wit this.. if you found anything please help me
thanks...
 
Share this answer
 
Hi surajking123,

I figure out some ideas for reading SMS.Here is the details.

First we have to set the operation mode for modem
AT+CMGF=1 //text opeartion mode

Then we have to select the location where we are going to read sms in SIM or Phone/Modem Memory
AT+CPMS="SM" // sim. for Phone/Modem Memory AT+CPMS="ME"

AT+CMGL="ALL" //list all the sms in sim
AT+CMGL="REC READ" // list all already readed sms
AT+CMGL="REC UNREAD" // list all unreaded sms
AT+CMGR=1 //read the first sms
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900