Click here to Skip to main content
Sign Up to vote bad
good
See more: MFCATCommands
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 15 Feb '11 - 19:25

Comments
Sandeep Mewara - 16 Feb '11 - 1:37
Tried Google?
ThatsAlok - 16 Feb '11 - 3:21
yeap google is good options.. however hardware manual too

3 solutions

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.
  Permalink  
i am also struck up wit this.. if you found anything please help me
thanks...
  Permalink  
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
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 286
1 Mohammed Hameed 268
2 Sergey Alexandrovich Kryukov 218
3 Mayur_Panchal 143
4 Santhosh G_ 108
0 Sergey Alexandrovich Kryukov 8,216
1 OriginalGriff 6,271
2 CPallini 3,528
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 2 Mar 2011
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid