Read the result of GSM Modem

Read the result of GSM modem after send a SMS message using AT Command

Page 1 of 1

1 Replies - 2948 Views - Last Post: 21 July 2009 - 05:01 PM Rate Topic: -----

#1 holamundo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-July 09

Read the result of GSM Modem

Posted 21 July 2009 - 10:19 AM

'Initialize the Modem 
Port.WriteLine("AT" & vbCr) 
'Set the type of the message=TEXT
Port.WriteLine("AT+CMGF=1" & vbCr) 
'Set the phone number
Puerto.WriteLine("AT+CMGS=""" & PhoneNumber.Trim() & """" & vbCr) 
'send the message
Port.WriteLine(Message.Trim() + ChrW(26))

'----------Here I need to know what happen ----------
'----------if the result code was OK---------------------
'----------if I use Port.ReadLine, I read all ------------
'----------what can I do  to read only the result ------
'----------of my message..



This post has been edited by holamundo: 21 July 2009 - 01:39 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Read the result of GSM Modem

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 421
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Read the result of GSM Modem

Posted 21 July 2009 - 05:01 PM

Do you have a question/problem related to the code you posted?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1