By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,140 Members | 1,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,140 IT Pros & Developers. It's quick & easy.

How can read sms from GSM modem using AT command

P: 1
Hi,I am syedur Rahman.

Expand|Select|Wrap|Line Numbers
  1. protected void ReadSMS_Click(object sender, EventArgs e)
  2. {
  3. openport();//Port Related function
  6. // Select SIM storage
  7. serialport.WriteLine("AT+CPMS=" + Environment.NewLine);
  8. System.Threading.Thread.Sleep(200);
  9. // Read the messages
  10. txtreadmessage.Text = serialport.ReadExisting();
  11. serialport.WriteLine("AT+CMGL=" + Environment.NewLine);
  12. System.Threading.Thread.Sleep(200);
  13. serialport.Close();
  14. }
Without debugging error i can not read sms from GSM Modem. Can you send sample code in click event in c#. I huge googling but i can not success.
Dec 2 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.